-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
enable ability to use rxjs-compat #2303
Comments
@danboone just update this file => https://github.com/mgechev/angular-seed/blob/master/tools/tasks/seed/bundle.rxjs.ts use this code const Builder = require('systemjs-builder');
const promisify = require('util').promisify;
const fs = require('fs');
async function bundleRxjs(){
const options = {
normalize: true,
runtime: false,
sourceMaps: true,
sourceMapContents: false,
minify: true,
mangle: false
};
const builder = new Builder('./');
builder.config({
paths: {
'n:*': 'node_modules/*',
'rxjs/*': 'node_modules/rxjs/*.js',
"rxjs-compat/*": "node_modules/rxjs-compat/*.js",
"rxjs/internal-compatibility": "node_modules/rxjs/internal-compatibility/index.js",
"rxjs/testing": "node_modules/rxjs/testing/index.js",
"rxjs/ajax": "node_modules/rxjs/ajax/index.js",
"rxjs/operators": "node_modules/rxjs/operators/index.js",
"rxjs/webSocket": "node_modules/rxjs/webSocket/index.js",
},
map: {
'rxjs': 'n:rxjs',
'rxjs-compat': 'n:rxjs-compat'
},
packages: {
'rxjs': { main: 'index.js', defaultExtension: 'js' },
"rxjs-compat": { main: "index.js", defaultExtension: "js" }
}
});
return builder.bundle('rxjs + rxjs/Rx', 'node_modules/.tmp/Rx.min.js', options)
.then(output => {
const writeFile = promisify(fs.writeFile);
const code = output.source.replace(/rxjs\/index/gm, 'rxjs');
return writeFile('node_modules/.tmp/Rx.min.js',
(options.sourceMaps)
? code + `\n//# sourceMappingURL=Rx.min.js.map`
: code);
});
} |
To add to this issue, rxjs-compat may be required by third-party libraries, not just by the application. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
I'm submitting a ... (check one with "x")
The text was updated successfully, but these errors were encountered: