mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
20 lines
443 B
JavaScript
20 lines
443 B
JavaScript
|
import path from "node:path";
|
||
|
import { fileURLToPath } from "node:url";
|
||
|
import resolve from "@rollup/plugin-node-resolve";
|
||
|
import commonjs from "@rollup/plugin-commonjs";
|
||
|
|
||
|
const dirname = path.dirname( fileURLToPath( import.meta.url ) );
|
||
|
|
||
|
export default {
|
||
|
input: `${ dirname }/src-esm-commonjs/main.js`,
|
||
|
output: {
|
||
|
dir: `${ dirname }/tmp/rollup-commonjs`,
|
||
|
format: "iife",
|
||
|
sourcemap: true
|
||
|
},
|
||
|
plugins: [
|
||
|
resolve(),
|
||
|
commonjs()
|
||
|
]
|
||
|
};
|