Closed bennlich closed 4 years ago
I was able to import nanohtml with rollup using the @rollup/plugin-commonjs module.
In main.js:
import html from 'nanohtml/lib/browser';
And my .babelrc.json:
{
"presets": [
["@babel/env", {"modules": false}]
]
}
Should I update the nanohtml readme with this method?
@bennlich if you could add that to the readme that would be great!
Kk! Have a look at: https://github.com/choojs/nanohtml/pull/172
merged 💃
In my main.js I have:
My .babelrc:
And when I try to
rollup
::( Any ideas what's going on here? Seems like babel is not transforming the module.exports statement in nanohtml/lib/append-child?
Versions: