Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Bundle doesn't work #851

Open
nicbil opened this issue Jun 25, 2018 · 0 comments
Open

Bundle doesn't work #851

nicbil opened this issue Jun 25, 2018 · 0 comments

Comments

@nicbil
Copy link

nicbil commented Jun 25, 2018

It's my rx.builder.js
`
const Builder = require('systemjs-builder');

module.exports = function build(destination) {
const builder = new Builder('../ui/node_modules/');
builder.config({
map: {
'rxjs' : 'rxjs',
'rxjs-compat' : 'rxjs-compat',
"rxjs/internal-compatibility" : "rxjs/internal-compatibility",
"rxjs/testing" : "rxjs/testing",
"rxjs/ajax" : "rxjs/ajax",
"rxjs/operators" : "rxjs/operators",
"rxjs/webSocket" : "rxjs/webSocket",
},
packages: {
"rxjs" : { main: 'Rx.js', defaultExtension: "js" },
'rxjs-compat' : { main: 'index.js', defaultExtension: 'js'},
'rxjs/internal-compatibility' : { main: 'index.js', defaultExtension: 'js'},
'rxjs/operators' : { main: 'index.js', defaultExtension: 'js' },
'rxjs/testing' : { main: 'index.js', defaultExtension: 'js' },
'rxjs/ajax' : { main: 'index.js', defaultExtension: 'js' },
'rxjs/webSocket' : { main: 'index.js', defaultExtension: 'js' }
}
});

return builder.bundle('rxjs', rx.bundle.min.js, {
sourceMaps: true,
normalize: true,
runtime: false,
minify: true,
mangle: false
});
};
`

system.config.js
`
const bundles = {
"root:rx.bundle.min.js": [
"rxjs/",
"rxjs/operator/
",
"rxjs/observable/",
"rxjs/add/operator/
",
"rxjs/add/observable/",
"rxjs/util/
"
]
};

System.config({
  paths, map, {'rxjs': { defaultExtension: 'js' }}, bundles
});

`

Error: Unexpected token <Evaluating localhost:3008/rxjs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant