Skip to content

Commit b43690d

Browse files
authored
refactor(plugin-vue): use source-map-js (#247)
1 parent e779d16 commit b43690d

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

.github/renovate.json5

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"typescript",
1818

1919
// breaking changes
20-
"source-map", // `source-map:v0.7.0+` needs more investigation
2120
"kill-port", // `kill-port:^2.0.0 has perf issues (#8392)
2221
],
2322
}

packages/plugin-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"debug": "^4.3.4",
4444
"rollup": "^3.17.2",
4545
"slash": "^5.1.0",
46-
"source-map": "^0.6.1",
46+
"source-map-js": "^1.0.2",
4747
"vite": "^4.4.9",
4848
"vue": "^3.3.4"
4949
}

packages/plugin-vue/src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from 'node:path'
22
import fs from 'node:fs'
33
import type { SFCBlock, SFCDescriptor } from 'vue/compiler-sfc'
44
import type { PluginContext, TransformPluginContext } from 'rollup'
5-
import type { RawSourceMap } from 'source-map'
5+
import type { RawSourceMap } from 'source-map-js'
66
import type { EncodedSourceMap as TraceEncodedSourceMap } from '@jridgewell/trace-mapping'
77
import { TraceMap, eachMapping } from '@jridgewell/trace-mapping'
88
import type { EncodedSourceMap as GenEncodedSourceMap } from '@jridgewell/gen-mapping'

packages/plugin-vue/src/style.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { SFCDescriptor } from 'vue/compiler-sfc'
22
import type { ExistingRawSourceMap, TransformPluginContext } from 'rollup'
3-
import type { RawSourceMap } from 'source-map'
3+
import type { RawSourceMap } from 'source-map-js'
44
import { formatPostcssSourceMap } from 'vite'
55
import type { ResolvedOptions } from '.'
66

pnpm-lock.yaml

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)