Skip to content

Commit b3fbaa4

Browse files
committed
Use cjs for bundler configs
1 parent 27bae7f commit b3fbaa4

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

packages/integration-tests/fixtures/debug-ids-already-injected/input/rollup4/rollup.config.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import { defineConfig } from "rollup";
2-
import { sentryRollupPlugin } from "@sentry/rollup-plugin";
3-
import { join } from "path";
4-
5-
const __dirname = new URL(".", import.meta.url).pathname;
1+
/* eslint-disable @typescript-eslint/no-var-requires */
2+
const { defineConfig } = require("rollup");
3+
const { sentryRollupPlugin } = require("@sentry/rollup-plugin");
4+
const path = require("path");
65

76
export default defineConfig({
8-
input: { index: join(__dirname, "..", "bundle.js") },
7+
input: { index: path.join(__dirname, "..", "bundle.js") },
98
output: {
10-
dir: join(__dirname, "..", "..", "out", "rollup4"),
9+
dir: path.join(__dirname, "..", "..", "out", "rollup4"),
1110
sourcemap: true,
1211
sourcemapDebugIds: true,
1312
},

packages/integration-tests/fixtures/debug-ids-already-injected/input/webpack5/webpack.config.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import { sentryWebpackPlugin } from "@sentry/webpack-plugin";
2-
import { join } from "path";
3-
4-
const __dirname = new URL(".", import.meta.url).pathname;
1+
/* eslint-disable @typescript-eslint/no-var-requires */
2+
const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
3+
const path = require("path");
54

65
export default {
76
devtool: "source-map-debugids",
87
cache: false,
9-
entry: { index: join(__dirname, "..", "bundle.js") },
8+
entry: { index: path.join(__dirname, "..", "bundle.js") },
109
output: {
11-
path: join(__dirname, "..", "..", "out", "webpack5"),
10+
path: path.join(__dirname, "..", "..", "out", "webpack5"),
1211
library: {
1312
type: "commonjs",
1413
},

0 commit comments

Comments
 (0)