Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9114273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:09:48+00:00 2026-06-17T04:09:48+00:00

I try to manage a library with no AMD-Support that depends on 3 other

  • 0

I try to manage a library with no AMD-Support that depends on 3 other JS-files (https://github.com/augustl/js-epub).

I have to include the files in the following order:

<script type="text/javascript" src="zip/jszip.js"></script>
<script type="text/javascript" src="zip/jszip-load.js"></script>
<script type="text/javascript" src="zip/jszip-deflate.js"></script>
<script type="text/javascript" src="zip/jszip-inflate.js"></script>

at the moment I try to handle the dependencies via shim like that:

shim {

      "zip/jszip": {
        "deps": ["zip/jszip-deflate", "zip/jszip-inflate", "zip/jszip-load"],
        "exports": "JSZip"
      }
}

But the scripts are included in the wrong order. How can I manage that?

Best regards, hijolan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:09:49+00:00Added an answer on June 17, 2026 at 4:09 am

    The deps dependencies array defines scripts which need to load before the shimmed script. Your shim declaration it’s the wrong way around: you need to shim the modules which depend on jszip and list jszip as their dependency.

    shim: {
      "zip/jszip": {
        "deps": [],
        "exports": "JSZip"
      },
      "zip/jszip-load": {
        "deps": ["zip/jszip"],
        "exports": "JSZip"
      },
      "zip/deflate": {
        "deps": ["zip/jszip"],
        "exports": "JSZip"
      },
      "zip/inflate": {
        "deps": ["zip/jszip"],
        "exports": "JSZip"
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a library project I'm importing in other project. When I try to
When I try and run django, this is what I get: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python manage.py runserver
I want to try CMake to manage a new C++ project. However, some files
I try to use assignment_tag from django docs: https://docs.djangoproject.com/en/1.4/howto/custom-template-tags/#howto-custom-template-tags-simple-tags Test project: mysite/ manage.py polls/
I'm writing a software that depends on the Poco c++ library . I can
I have somehow managed to break my infopath form :( When I try to
try: html = urlopen('http://glbse.com/api/asset/' + asset.name) except: print 'error while updating the price of
I'd like to be able to manage my app dependencies in Mercurial such that
I've managed to get into a linux machine to try the HotKey library suggested
I'm attempting to use the ftplib library in Python to try and FTP some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.