file-dialog icon indicating copy to clipboard operation
file-dialog copied to clipboard

main = file-dialog-min.js ?

Open houshuang opened this issue 7 years ago • 1 comments

Hi, thanks for making this module available. Would it make sense to link main to the minified file? I'm using this with Meteor, which supports Babel and import statements, but which expects libraries to be already transformed into ES5, so trying to build an app which includes this module fails at the uglify stage (because the code doesn't get run through Babel, even though my own code is ES6, and does get run through babel).

I guess eventually there might be a way to specify an ES5 and an ES6 main, since I understand that people using rollup etc want access to the unminified code...

houshuang avatar Apr 08 '17 05:04 houshuang

Probably not the minified version, however, I agree that the convention is that an npm package should be ES5 ready.

QuentinRoy avatar Aug 12 '17 08:08 QuentinRoy