These are chat archives for systemjs/systemjs

2nd
Apr 2016
Peter Müller
@Munter
Apr 02 2016 12:06
jspm/systemjs takes over for browserify, yes. Makes it easier to know what dependencies run in what environment, but obviously adds a new tool chain you need to learn
Gregg Roemhildt
@roemhildtg
Apr 02 2016 16:27
@Munter Thanks for the tip!
Owen Densmore
@backspaces
Apr 02 2016 17:02

http://exploringjs.com/es6/ch_modules.html says:

Relative paths ('../model/user'): these paths are interpreted relatively to the location of the importing module. The file extension .js can usually be omitted

Is this correct? I'm using system.js with no configuration.

My confusion is between browser/node relative paths, and the above module relative paths.

Scott Williams
@scottwio
Apr 02 2016 18:31
Hi All, is there a way to set a basePath for a mapped resource like this
System.config({
  packages: {
    map: {
      rxjs: 'vendor/rxjs'
    },
    app: {
      format: 'register',
      defaultExtension: 'js'
    },
    rxjs: {
      defaultExtension: 'js',
      main: 'Rx.js',
      basePath: 'vendor/rxjs'
    }
  }
});
System.import('app.js').then(null, console.error.bind(console));