This package adds SystemJS Module Loader to your project.
You can use import
and export
syntax on both client/server side.
This package add .sys.js
extension to your app.
ES6 codes in .sys.js
extension files will be transpiled to systemjs loader
compatible files. For example:
foo.sys.js
import 'jQuery'
export const FOO = 'SYSTEM';
bar.sys.js
import {FOO} from `./foo`
console.log(FOO);
then use a System.import()
to load them
startup.js
// this will load on both side
System.import('bar');
You can also use it with meteor-typescript. Transpile ts
files to system
and amd
compatible js
files.
$ meteor add tsumina:meteor-systemjs
$ meteor add tsumina:meteor-typescript # add typescript compiler
This package use SystemJS default configuration. Full SystemJS API docs can be found on their Github repo.
See detail about SystemJS
- Bug fix, fix
Path reservation conflict
error when your have two or more files have exactly identical content.
- Better javascript syntax error output.
- Optimize javascript output.
- AMD loader bug fix.
- [breaking change]: Now ES6 compiler is bundle with this package. You can use
sys.js
extension to work withsystemjs loader
.
- Update systemjs to v0.19.6
- amd module load support
Code and documentation © 2015 TsumiNa Released under the MIT license.