Core: Fix the exports setup to make bundlers work with ESM & CommonJS
[jquery.git] / test / bundler_smoke_tests / rollup-pure-esm.config.js
blob7476e7be20deee938f03bfb8b10e9d3504716be1
1 import path from "node:path";
2 import { fileURLToPath } from "node:url";
3 import resolve from "@rollup/plugin-node-resolve";
5 const dirname = path.dirname( fileURLToPath( import.meta.url ) );
7 export default {
8         input: `${ dirname }/src-pure-esm/main.js`,
9         output: {
10                 dir: `${ dirname }/tmp/rollup-pure-esm`,
11                 format: "iife",
12                 sourcemap: true
13         },
14         plugins: [
15                 resolve()
16         ]