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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

- "You know what they say ‘Fool me once, strike one, but fool me twice… strike three.’" — Michael Scott

## 0.7.1

- fix(core): Fix vite complaining about CJS import of webpack-sources (#210)

## 0.7.0

This release introduces the `sourcemaps` option. This option switches to a new system of handling source maps in Sentry.
Expand Down
4 changes: 2 additions & 2 deletions packages/bundler-plugin-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { promisify } from "util";
import { getDependencies, getPackageJson, parseMajorVersion, stringToUUID } from "./utils";
import { glob } from "glob";
import { injectDebugIdSnippetIntoChunk, prepareBundleForDebugIdUpload } from "./debug-id";
import { SourceMapSource } from "webpack-sources";
import webpackSources from "webpack-sources";
import type { sources } from "webpack";

const ALLOWED_TRANSFORMATION_FILE_ENDINGS = [".js", ".ts", ".jsx", ".tsx", ".mjs"];
Expand Down Expand Up @@ -465,7 +465,7 @@ const unplugin = createUnplugin<Options, true>((userOptions, unpluginMetaContext
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
newSourceMap.sourcesContent = originalSourceMap.sourcesContent as string[];

const newSource = new SourceMapSource(
const newSource = new webpackSources.SourceMapSource(
newCode,
fileName,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
Expand Down