-
Notifications
You must be signed in to change notification settings - Fork 122
Update systemjs-builder to 0.15.17 #665
Comments
After some investigations using (systemjs-debugger) I found that in systemjs-builder version 0.15.17 entry module.exports doesn't contain default property as 0.15.13 has systemjs-builder version 0.15.13 Imports
- src/main/components/user/user.module.min.js
- entry
- module
- exports
- default
- _configBlocks
- _invokeQueue
- _runBlocks
- config
- controller
- ... systemjs-builder version 0.15.17 Imports
- src/main/components/user/user.module.min.js
- entry
- module
- exports
- _configBlocks
- _invokeQueue
- _runBlocks
- config
- controller
- ... I know that in version 0.15.17 should be use option exportDefault: true method, but not working. |
So when running the builder, it's providing Try running your build with |
@guybedford, Yes, this is the behavior I'm facing. I'm using { exportDefault : true } property as mention in 0.15.17 release note but apparently did not bring any changes to builded file even if I put exportDefault property or not. |
@nflorian yes this was actually a breaking change in 0.15.17. Try importing |
We are importing our bundle like this: System.import('user.module.min.js').then(value) => {
// In 0.15.13 promise value contains default property
// value.default == { _configBlocks, _invokeQueue, _runBlocks, config, controller ... }
// In 0.15.17 promise value doesn't contain default property anymore
// value == { _configBlocks, _invokeQueue, _runBlocks, config, controller ... }
} In 0.15.17 Release Notes you wrote about using "options.exportDefault" for legacy module formats. "options.exportDefault option for static builds to indicate only the default export of the ES module should be the module value of the static module output, with automatic setting of this option for legacy module formats (#591)" What is not very clear:
Thanks |
@nflorian the reason for this is that legacy modules would always look like |
Hi,
We are trying to update systemjs and systemjs-builder to latest versions:
current -> latest
"systemjs": "^0.19.23", -> 0.19.36
"systemjs-builder": "0.15.13", -> 0.15.26
After updating systemjs to version 0.19.36 everything is working properly, but after updating systemjs-builder starting with version 0.15.17 it's not working anymore.
My Build.js file contains next configuration:
Below you can see the only two changes I can see on systemjs-builder version 0.15.17 compared to 0.15.13.
systemjs-builder version 0.15.13
systemjs-builder version 0.15.17
I can't figure out if i'm doing something wrong or si something else.
It seems there is a common issue with this version (0.15.17).
Thanks for help
The text was updated successfully, but these errors were encountered: