Closed guest271314 closed 11 months ago
I figured it out reading test.js
const bundle = await rollup.rollup({ input: "src/script.js",...});
const { output } = await bundle.generate({ format: 'esm' });
const [{ fileName, source }] = output;
fs.writeFileSync(fileName, source);
lib/index.js
index.js.zip
rollup.config.js