bahmutov / compiled

Compiles the ES* bundle to your NodeJS version on install
https://glebbahmutov.com/blog/javascript-needs-compile-step/
41 stars 2 forks source link

How to treat UMD bundles? #3

Open bahmutov opened 8 years ago

bahmutov commented 8 years ago

That target the browser and the Node.

Janpot commented 8 years ago

Not sure if I understand the question 100% but could the following be an answer?

  1. compile a second file on postinstall that targets the browser specifically
  2. add a browser field to package.json like in https://github.com/defunctzombie/package-browser-field-spec
bahmutov commented 8 years ago

Yup, that is one solution, and probably should be added