Skip to content

Commit 72fe442

Browse files
committed
avoid posix
1 parent 86d08a5 commit 72fe442

File tree

1 file changed

+4
-2
lines changed
  • packages/integration-tests/fixtures/debug-ids-already-injected/input/webpack5

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { sentryWebpackPlugin } from "@sentry/webpack-plugin";
22
import { join, posix } from "path";
33
import { fileURLToPath } from "url";
4+
import { existsSync } from "fs";
45

56
const __dirname = fileURLToPath(import.meta.url);
67

78
console.log({
89
__dirname,
10+
existsDirname: existsSync(__dirname),
911
posixInput: posix.join(__dirname, "..", "bundle.js"),
1012
input: join(__dirname, "..", "bundle.js"),
1113
outputPath: posix.join(__dirname, "..", "..", "out", "webpack5"),
@@ -14,9 +16,9 @@ console.log({
1416
export default {
1517
devtool: "source-map-debugids",
1618
cache: false,
17-
entry: { index: posix.join(__dirname, "..", "bundle.js") },
19+
entry: { index: join(__dirname, "..", "bundle.js") },
1820
output: {
19-
path: posix.join(__dirname, "..", "..", "out", "webpack5"),
21+
path: join(__dirname, "..", "..", "out", "webpack5"),
2022
library: {
2123
type: "commonjs",
2224
},

0 commit comments

Comments
 (0)