Skip to content

Commit 17cfb87

Browse files
committed
(enh) add example to rollup build against CDN/esm modules
1 parent b966ec2 commit 17cfb87

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// rollup.config.js
2+
import commonjs from "@rollup/plugin-commonjs";
3+
4+
export default {
5+
input: "test/builds/cdn_build_as_esm.mjs",
6+
output: {
7+
file: "build/bundle.js",
8+
format: "iife",
9+
},
10+
plugins: [
11+
commonjs({
12+
include: "build/**", // Default: undefined
13+
exclude: ["node_modules/**"], // Default: undefined
14+
}),
15+
],
16+
};

0 commit comments

Comments
 (0)