npm install rollup-plugin-node-resolve rollup-plugin-json.Add it to the plugins inside
rollup.config.js
// Rollup configuration
...
plugins: [
rollupNodeResolve({
jsnext: true,
preferBuiltins: true,
browser: true
}),
rollupJson(),
...
]
** Notice the browser: true **
- Run your build again:
yarn run build
Voila!
Comments
powered by giscusComments are GitHub Discussions threads. Sign in with your GitHub account to leave a comment, react, or reply.