forked from getsentry/sentry-javascript-bundler-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.mjs
More file actions
26 lines (25 loc) · 699 Bytes
/
rollup.config.mjs
File metadata and controls
26 lines (25 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import packageJson from "./package.json" with { type: "json" };
import modulePackage from "module";
export default {
platform: "node",
input: ["src/index.ts", "src/webpack5.ts", "src/component-annotation-transform.ts"],
external: [...Object.keys(packageJson.dependencies), ...modulePackage.builtinModules, "webpack"],
output: [
{
dir: "./dist/esm",
format: "esm",
exports: "named",
sourcemap: true,
entryFileNames: "[name].mjs",
chunkFileNames: "[name].mjs",
},
{
dir: "./dist/cjs",
format: "cjs",
exports: "named",
sourcemap: true,
entryFileNames: "[name].js",
chunkFileNames: "[name].js",
},
],
};