Named export 'diff' not found.
fprl opened this issue · 0 comments
fprl commented
Hey there,
The library looks really cool! I was testing it in one .ts
file and all working as expected but then in other file as soon as I import it, it yields:
import micromorph from 'micromorph';
Named export 'diff' not found. The requested module './dist/index.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from './dist/index.js';
const { default, diff, patch } = pkg;