patrick-steele-idem / morphdom

Fast and lightweight DOM diffing/patching (no virtual DOM needed)
MIT License
3.21k stars 129 forks source link

Add pkg.module key to support external rollup uses #104

Closed orestis closed 5 years ago

orestis commented 7 years ago

Hi,

I'm using rollup to bundle morphdom into my own applications. Since morphdom already uses ES2015 modules, it is as simple as adding a pkg.module entry to package.json to enable this:

  "module": "src/index.js",

I'm not an export on this whole ecosystem, but using a temporary fork with just this allowed rollup with rollup-plugin-node-resolve to correctly identify and bundle morphdom into my bundle.

Thanks!

snewcomer commented 5 years ago

added an es2015 && module entry #115

try out 2.5.2!