These are chat archives for systemjs/systemjs

13th
Apr 2016
Gion Kunz
@gionkunz
Apr 13 2016 07:25
I'm somehow having a hard time to exclude dependencies from my bundle
I'm trying to exclude all modules from a library angular2 from my bundle using systemjs builder
I'm doing something like this builder.bundle('./src/main - angular2', './dist/my-bundle.js')
where src/main is my main entry point within my own code
No matter what I'm trying, angular modules keep getting added to my bundle
Does anyone have a similar use case / example on how to build a bundle without external dependencies included?
Gion Kunz
@gionkunz
Apr 13 2016 07:32
Oh, I might just got it working using:
  builder.config({
    meta: {
      'npm:angular2@2.0.0-beta.14*': {
        build: false
      },
      'npm:rxjs@5.0.0-beta.5*': {
        build: false
      }
    }
  });
So now I have a different issue. All the System.register calls inside my bundles only contain relative paths within the library I'm writing. Like src/core/core.ts. How can I re-write the module paths for the bundle only so that I get something like my-library/src/core/core.ts?
Gion Kunz
@gionkunz
Apr 13 2016 08:04
Okay, I found that the easiest is probably defining a path for this:
  paths: {
    "npm:*": "jspm_packages/npm/*",
    "github:*": "jspm_packages/github/*",
    "my-library/*": "src/*"
  },
now doing builder.bundle('my-library/main', './dist/my-bundle.js') results in de desired module paths within the bundle
Alexander Wieser
@crystalbyte
Apr 13 2016 13:23
Are imported global scripts automatically executed as they are when linked using the script tag?
Peter-Paul
@ppvg
Apr 13 2016 20:58
I'm trying to figure out how to get systems / rollup to skip some development-only dependencies.
Anyone here that has experience with that?
Joshua Wiens
@d3viant0ne
Apr 13 2016 23:05
@ppvg - @mgechev 's seed does a bit of that.