Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ describeNode18Plus("vite 6 bundle", () => {
});

describeNode18Plus("webpack 5 bundle", () => {
const viteRoot = path.join(__dirname, "input", "webpack5");
const webpackRoot = path.join(__dirname, "input", "webpack5");
const tempDir = createTempDir();

beforeEach(() => {
execSync("yarn install", { cwd: viteRoot, stdio: "inherit" });
execSync("yarn install", { cwd: webpackRoot, stdio: "inherit" });
execSync("yarn webpack build", {
cwd: viteRoot,
cwd: webpackRoot,
stdio: "inherit",
env: { ...process.env, SENTRY_TEST_OVERRIDE_TEMP_DIR: tempDir },
});
Expand All @@ -81,13 +81,13 @@ describeNode18Plus("webpack 5 bundle", () => {
});

describeNode18Plus("rollup bundle", () => {
const viteRoot = path.join(__dirname, "input", "rollup4");
const rollupRoot = path.join(__dirname, "input", "rollup4");
const tempDir = createTempDir();

beforeEach(() => {
execSync("yarn install", { cwd: viteRoot, stdio: "inherit" });
execSync("yarn install", { cwd: rollupRoot, stdio: "inherit" });
execSync("yarn rollup --config rollup.config.js", {
cwd: viteRoot,
cwd: rollupRoot,
stdio: "inherit",
env: { ...process.env, SENTRY_TEST_OVERRIDE_TEMP_DIR: tempDir },
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { defineConfig } from "rollup";
import { sentryRollupPlugin } from "@sentry/rollup-plugin";
import { join } from "path";
import { join, dirname } from "path";
import { fileURLToPath } from "url";

const __dirname = new URL(".", import.meta.url).pathname;
const __dirname = dirname(fileURLToPath(import.meta.url));

export default defineConfig({
input: { index: join(__dirname, "..", "bundle.js") },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { defineConfig } from "vite";
import { sentryVitePlugin } from "@sentry/vite-plugin";
import { join } from "path";
import { join, dirname } from "path";
import { fileURLToPath } from "url";

const __dirname = dirname(fileURLToPath(import.meta.url));

export default defineConfig({
clearScreen: false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { sentryWebpackPlugin } from "@sentry/webpack-plugin";
import { join } from "path";
import { join, dirname } from "path";
import { fileURLToPath } from "url";

const __dirname = new URL(".", import.meta.url).pathname;
const __dirname = dirname(fileURLToPath(import.meta.url));

export default {
devtool: "source-map-debugids",
Expand Down
Loading