aboutsummaryrefslogtreecommitdiffstats
path: root/test/bundler_smoke_tests/rollup-pure-esm.config.js
blob: 7476e7be20deee938f03bfb8b10e9d3504716be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()
	]
};