Open midnight-wonderer opened 3 hours ago
It actually works after setting up the commonjs
plugin.
import { default as commonjs } from '@rollup/plugin-commonjs';
export default {
...rollupOptions,
plugins: [
...otherPlugins,
commonjs({
include: [
'node_modules/iter-tools*/**/*.js',
],
}),
],
};
I will leave the issue open in case this is unintended.
Feel free to close it if this is expected and the proper way to build the module.
Rollup complained about the package.
The problem is
index.mjs
does not export from.mjs
version of functions but.js
.Quick check
index.mjs
.Maybe I misunderstood something, or maybe there is something wrong with the build process. Could you clarify?