These are chat archives for systemjs/systemjs

18th
Apr 2017
ThiagoFacchini
@ThiagoFacchini
Apr 18 2017 13:06
Hey @timfish how aurelia-bundler is handling import from external libraries?
Tim Fish
@timfish
Apr 18 2017 13:09
I'm bundling everything together, all dependencies and my code
module.exports = {
  "bundles": {
    "dist/bundle-app": {
      "includes": [
        // These are the libraries we're using
        "aurelia-framework",
.. snip
        "reflect-metadata",
        "text",
        "tslib",
        "uuid",
        // these are our app files
        "[**/*.js]",
        "**/*.html!text",
        "**/*.css!text",
        "**/*.json!text"
      ],
      "excludes": [
        "[*/**/*.spec.js]",
      ],
      "options": {
        "inject": true,
        "minify": false,
        "depCache": false,
        "rev": false,
        "sourceMaps": true,
        "sourceMapContents": true
      }
    }
  }
};
ThiagoFacchini
@ThiagoFacchini
Apr 18 2017 13:12
I'm curious because I'm about to use systemjs / builder, but my whole application is written in TypeScript, and inside my .TS files I'm importing external libraries ( e.g: immutable ), so I'm not sure if the external libraries would be bundled
Because as for as I understood, I should firstly compile from .TS to ES5 and then bundle... I'm afraid the import won't be bundled....