Kikobeats / finepack

Organizes and maintains readable your JSON files.
MIT License
19 stars 7 forks source link

Add 'browser', 'module', 'jsnext:main' as special keywords #38

Closed matteocng closed 7 years ago

matteocng commented 7 years ago

'module' and 'jsnext:main': these fields point to the ES2015 modules version of a library, featuring native ES2015 'import' and 'export', instead of the legacy, CommonJS format. They are supported by common bundlers such as Webpack 2 and Rollup.

'browser': this field "is provided by a module author as a hint to javascript bundlers or component tools when packaging modules for client side use".

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling afef6f397ef8e6d6b1f3d20c25ad5e4090afb9a9 on matteocng:add-browser-module-jsnext-keywords into 2a2b007c50bbc9d4975567e906f38c26d4902cbd on Kikobeats:master.

Kikobeats commented 7 years ago

Actually I know browser from npm and browserify build.

Let me study the rest of keywords before merge this, thanks for the PR!

Kikobeats commented 7 years ago

Related: http://2ality.com/2017/04/setting-up-multi-platform-packages.html