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.
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: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!