Skip to content

Commit f772712

Browse files
committed
type: module
1 parent b3fbaa4 commit f772712

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

packages/integration-tests/fixtures/debug-ids-already-injected/input/rollup4/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"dependencies": {
34
"rollup": "^4"
45
}

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

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
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");
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;
56

67
export default defineConfig({
7-
input: { index: path.join(__dirname, "..", "bundle.js") },
8+
input: { index: join(__dirname, "..", "bundle.js") },
89
output: {
9-
dir: path.join(__dirname, "..", "..", "out", "rollup4"),
10+
dir: join(__dirname, "..", "..", "out", "rollup4"),
1011
sourcemap: true,
1112
sourcemapDebugIds: true,
1213
},

packages/integration-tests/fixtures/debug-ids-already-injected/input/webpack5/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"dependencies": {
34
"webpack": "^5",
45
"webpack-cli": "^6"

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

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

56
export default {
67
devtool: "source-map-debugids",
78
cache: false,
8-
entry: { index: path.join(__dirname, "..", "bundle.js") },
9+
entry: { index: join(__dirname, "..", "bundle.js") },
910
output: {
10-
path: path.join(__dirname, "..", "..", "out", "webpack5"),
11+
path: join(__dirname, "..", "..", "out", "webpack5"),
1112
library: {
1213
type: "commonjs",
1314
},

0 commit comments

Comments
 (0)