CJS-format exports from jspm
Lemmmy opened this issue · 0 comments
Lemmmy commented
I have a module that I installed from JSPM which has the following contents in index.js:
/* */
"format cjs";
export * from './LocalStorage';
export * from './LocalStorageEmitter';
This results in the following jspm errors:
MultipleErrors: /angular2-localstorage@0.1.0/index.js:1:1: Unexpected reserved word export
/angular2-localstorage@0.1.0/index.js:1:15: Semi-colon expected
/angular2-localstorage@0.1.0/index.js:2:1: Unexpected reserved word export
/angular2-localstorage@0.1.0/index.js:2:15: Semi-colon expected
I'm assuming this is something to do with ES6, but I really have no clue how to resolve this with the build. Could you offer a pointer please?