-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ES6 Module Format? #434
Comments
@MeirionHughes why close this? |
Well its something I suggested while struggling to get this working via JSPM, system.js and TypeScript, I fixed the import issue in the end though; (typings on dt are wrong). I'll reopen if its useful. |
TL;DR: Does protobuf work with es6 modules via system.js? Details: I've converted to using just system.js and, alas, babel-cli with transform-es2015-modules-systemjs. The latter only transforms import/export for system.js. Hopefully <script type="module"... will land soon! I use package.json for my build tool .. yup I really do hate workflow! The two sets of transformations, src/ and test/apps/ are built via:
All this leads to the question: Does protobuf work with es6 modules via system.js? I've successfully used lots of non-es6 libraries using |
Closing this for now. Feel free to send a pull request if this is still a requirement. |
The current exports are proving to be a little difficult to use within TypeScript + System.js module loader. Specifically, the way dcodeIO/* export a default function seem to make it problematic (both when typed out in TypeScript and then when you try to use it in System.JS). (I think this is the relevant issue: microsoft/TypeScript#5073)
Would it be possible to have a separate es6-module format library?
The text was updated successfully, but these errors were encountered: