Closed frankwallis closed 7 years ago
There is also __extends helper missing in tslib.es6.js. See my issue https://github.com/Microsoft/TypeScript/issues/9980.
Rollup also supports module field in package.json similar to jsnext:main.
Is there any reason why "export const" but not "export var" is used? All other code is ES5.
@dmitrage I have just added the __extends helper as well. Will wait for feedback on the const/var issue.
Ember CLI also would benefit from adding the __extends
functionality into tslib.es6.js
. We have a mild preference toward export var
, but can use it in either way.
/ping @mhegazy @rbuckton
This could be really useful, please have another look, thanks.
@imcotton, @dmitrage I have added the module
field to package.json
@mhegazy - I have refreshed this PR with the latest changes, can it now be merged?
@mhegazy - thank you
@mhegazy Thank you, btw could we anticipate that npm version includes this PR going to publish soon?
This enables support for using the
importHelpers
option withmodule: 'es6'
and then bundling the output with rollup, which automatically strips out any unused helper functions.