Closed timfish closed 7 years ago
Even with minify: false
bundling with ES6+ features fails and this is apparently because the 0.15 branch of systemjs-builder
still runs code through Traceur even with minify disabled.
Was there a reason (other than time constraints) that aurelia-bundler
was never updated to systemjs-builder@0.16
?
I'm currently working on a pull request for systemjs-builder
which updates to the latest uglify.
@timfish No, there's no reason to stay with v0.15 of the builder. Updating the version and will push the code out.
@timfish also will be nice if you submit a PR here after systemjs-builder get's updated with latest uglifyjs.
@ahmedshuhel Yes, will do. The PR should end up on systemjs-builder@0.16 and then I'll submit one here.
No problem. I will be updating the bundler to systemjs-builder@0.16 in the meantime.
@timfish upgraded to systemjs-builder@0.16.9
and pushed a release out. Let us know if that fixes the problem.
Hi there, could it be that the update to systemjs-builder 0.16 implies that jspm 0.16 is no longer supported and one has to move to jspm 0.17 beta?
My bundle works fine with aurelia-bundler 0.6.0 in a jspm 0.16 project, but the bundle is invalid once I update to 0.6.1 or newer. This is my error:
Error: (SystemJS) Cannot read property 'get' of undefined
at
var _retrieveGlobal = System.registry.get("@@global-helpers").prepareGlobal($__module.id, null, null);
This could relate to the breaking changes in systemjs-builder 0.16 (https://github.com/systemjs/builder/releases/tag/0.16.0) in favour of systemjs 0.20. Jspm 0.16 still uses systemjs 0.19 :(
@ahmedshuhel Turns out there was a reason that the dependency was never updated!
aurelia-bundler@0.6.2
Cannot build bundles for SystemJS @ 0.19. System.registry.get
was introduced in 0.20
@jp7677 @timfish I will look into it.
I'm having this exact issue. I have SystemJS 0.19, but when running bundled I have four dependencies that try to use System.registry.get("@@global-helpers...") which is a SystemJS 0.20 thing. I hope I don't have to upgrade to jspm 0.17, which is still in beta? I gave it a quick try a few weeks ago with disastrous results. Are you guys still looking into this?
I am trying to target the latest electron which has native async/await but I can't get bundling working at all due to https://github.com/systemjs/builder/issues/726
I'm using these settings:
Top of my config.js
And the TypeScript compiler is targeting:
SystemJS handles this all fine when running in development and loading all the files individually.
But on bundling I get the following error: