You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
I'm not able to run anything needing transpilation even with the most basic configuration - attempt to run something ends with syntax error on node_modules/systemjs/dist/system.src.js:2823:8; when I try to log source param of the getSource function on this line I'm getting untranspiled code.
setTimeout(() => {
console.log('Hello from es6!');
}, 0);
Exact stack trace:
SyntaxError: Wrong syntax
at evaluate (http://10.0.0.13:8081/node_modules/systemjs/dist/system.src.js:2823:8)
at Anonymous function (http://10.0.0.13:8081/node_modules/systemjs/dist/system.src.js:3626:11)
at dynamicExecute (http://10.0.0.13:8081/node_modules/systemjs/dist/system.src.js:1145:5)
at doEvaluate (http://10.0.0.13:8081/node_modules/systemjs/dist/system.src.js:1092:7)
at ensureEvaluate (http://10.0.0.13:8081/node_modules/systemjs/dist/system.src.js:1000:3)
at Anonymous function (http://10.0.0.13:8081/node_modules/systemjs/dist/system.src.js:613:7)
at Anonymous function (http://10.0.0.13:8081/node_modules/promise-polyfill/promise.js:44:9)
versions (apart from promise-polyfill no other packages present):
Do I get it right that's what the following note in systemjs/doc/module-format.md states?
Note that ES6 modules are detected via the presence of import and export module syntax and no other features at all. This is because the transpilation applies to the module format specifically, not the language.
(I thought about adding a feature detection clarification in the plugin's readme.)
Activity
guybedford commentedon Sep 18, 2017
By default SystemJS won't transpile all code, only code it deems to be ES module code.
Try adding:
Or just specifically for the
index.jseven.tomasvarg commentedon Sep 19, 2017
This works, thanks!
Do I get it right that's what the following note in
systemjs/doc/module-format.mdstates?(I thought about adding a feature detection clarification in the plugin's readme.)
guybedford commentedon Sep 20, 2017
Yes exactly, if you'd like to clarify PR's welcome.