aurelia / skeleton-navigation

Starter kits for building a standard navigation-style app with Aurelia.
Creative Commons Zero v1.0 Universal
732 stars 512 forks source link

[Bug][skeleton-esnext] Bundle with "moment", can`t find the module moment when set "minify" to true #672

Closed XuJinNet closed 6 years ago

XuJinNet commented 8 years ago

injected jspm.config.js

"other-bundle-67086677c4.js": [
      "npm:jquery@3.1.1.js",
      "npm:jquery@3.1.1/dist/jquery.js",
      "npm:lodash@4.16.1/_Symbol.js",
      "npm:lodash@4.16.1/_arrayReduce.js",
      "npm:lodash@4.16.1/_asciiWords.js",
      "npm:lodash@4.16.1/_basePropertyOf.js",
      "npm:lodash@4.16.1/_baseToString.js",
      "npm:lodash@4.16.1/_createCompounder.js",
      "npm:lodash@4.16.1/_deburrLetter.js",
      "npm:lodash@4.16.1/_freeGlobal.js",
      "npm:lodash@4.16.1/_hasUnicodeWord.js",
      "npm:lodash@4.16.1/_root.js",
      "npm:lodash@4.16.1/_unicodeWords.js",
      "npm:lodash@4.16.1/deburr.js",
      "npm:lodash@4.16.1/isObjectLike.js",
      "npm:lodash@4.16.1/isSymbol.js",
      "npm:lodash@4.16.1/kebabCase.js",
      "npm:lodash@4.16.1/toString.js",
      "npm:lodash@4.16.1/words.js",
      "npm:moment@2.15.1.js",
      "npm:moment@2.15.1/moment.js",
      "npm:regenerator-runtime@0.9.5/runtime.js"
    ]

when run in browser, get the error: 630ea184-50b6-4d18-b860-48c266e6350a

when set "minify" to false in bundles.js, everything is all right.

skeleton-esnext 1.0.0 JSPM Version: 0.16.45 moment Version: 2.15.1 Framework Version: 1.0.3 Operating System: OSX 10.11.6 Node Version: 6.3.1 NPM Version: 3.10.3 Browser: All Language: ESNext

EisenbergEffect commented 8 years ago

@AshleyGrant Can you take a look at this?

Alexander-Taran commented 6 years ago

don't think it can be fixed. Had the same problem at the time. Had to create a separate bundle for moment

EisenbergEffect commented 6 years ago

Don't think it would be in our realm to address but rather something for moment probably.