aboutsummaryrefslogtreecommitdiffstats
path: root/test/bundler_smoke_tests/rollup-pure-esm.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bundler_smoke_tests/rollup-pure-esm.config.js')
-rw-r--r--test/bundler_smoke_tests/rollup-pure-esm.config.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/bundler_smoke_tests/rollup-pure-esm.config.js b/test/bundler_smoke_tests/rollup-pure-esm.config.js
new file mode 100644
index 000000000..7476e7be2
--- /dev/null
+++ b/test/bundler_smoke_tests/rollup-pure-esm.config.js
@@ -0,0 +1,17 @@
+import path from "node:path";
+import { fileURLToPath } from "node:url";
+import resolve from "@rollup/plugin-node-resolve";
+
+const dirname = path.dirname( fileURLToPath( import.meta.url ) );
+
+export default {
+ input: `${ dirname }/src-pure-esm/main.js`,
+ output: {
+ dir: `${ dirname }/tmp/rollup-pure-esm`,
+ format: "iife",
+ sourcemap: true
+ },
+ plugins: [
+ resolve()
+ ]
+};