diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 615368e6..b3d232da 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -17,7 +17,6 @@ "typescript", // breaking changes - "source-map", // `source-map:v0.7.0+` needs more investigation "kill-port", // `kill-port:^2.0.0 has perf issues (#8392) ], } diff --git a/packages/plugin-vue/package.json b/packages/plugin-vue/package.json index 5e301528..284b0270 100644 --- a/packages/plugin-vue/package.json +++ b/packages/plugin-vue/package.json @@ -43,7 +43,7 @@ "debug": "^4.3.4", "rollup": "^3.17.2", "slash": "^5.1.0", - "source-map": "^0.6.1", + "source-map-js": "^1.0.2", "vite": "^4.4.9", "vue": "^3.3.4" } diff --git a/packages/plugin-vue/src/main.ts b/packages/plugin-vue/src/main.ts index b4713ca8..7798d61c 100644 --- a/packages/plugin-vue/src/main.ts +++ b/packages/plugin-vue/src/main.ts @@ -2,7 +2,7 @@ import path from 'node:path' import fs from 'node:fs' import type { SFCBlock, SFCDescriptor } from 'vue/compiler-sfc' import type { PluginContext, TransformPluginContext } from 'rollup' -import type { RawSourceMap } from 'source-map' +import type { RawSourceMap } from 'source-map-js' import type { EncodedSourceMap as TraceEncodedSourceMap } from '@jridgewell/trace-mapping' import { TraceMap, eachMapping } from '@jridgewell/trace-mapping' import type { EncodedSourceMap as GenEncodedSourceMap } from '@jridgewell/gen-mapping' diff --git a/packages/plugin-vue/src/style.ts b/packages/plugin-vue/src/style.ts index 9a9d2af3..a5a2cb88 100644 --- a/packages/plugin-vue/src/style.ts +++ b/packages/plugin-vue/src/style.ts @@ -1,6 +1,6 @@ import type { SFCDescriptor } from 'vue/compiler-sfc' import type { ExistingRawSourceMap, TransformPluginContext } from 'rollup' -import type { RawSourceMap } from 'source-map' +import type { RawSourceMap } from 'source-map-js' import { formatPostcssSourceMap } from 'vite' import type { ResolvedOptions } from '.' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index af33d386..f0cc0f1d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -134,9 +134,9 @@ importers: slash: specifier: ^5.1.0 version: 5.1.0 - source-map: - specifier: ^0.6.1 - version: 0.6.1 + source-map-js: + specifier: ^1.0.2 + version: 1.0.2 vite: specifier: ^4.4.9 version: 4.4.9