Skip to content

Commit 5de62e9

Browse files
fix: update @ampproject/remapping to @jridgewell/remapping (#5)
1 parent c5183b8 commit 5de62e9

File tree

4 files changed

+18
-40
lines changed

4 files changed

+18
-40
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Rollback to the state before the last commit. It throws an error if there is no
2424

2525
### `.generateMap()`
2626

27-
Supercharge the original `generateMap` method. Where there are multiple commits, it will generate a combined sourcemap using [`@ampproject/remapping`](https://github.com/ampproject/remapping).
27+
Supercharge the original `generateMap` method. Where there are multiple commits, it will generate a combined sourcemap using [`@jridgewell/remapping`](https://github.com/jridgewell/remapping).
2828

2929
### Example
3030

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"prepare": "simple-git-hooks"
4343
},
4444
"dependencies": {
45-
"@ampproject/remapping": "^2.3.0",
45+
"@jridgewell/remapping": "^2.3.0",
4646
"magic-string": "^0.30.17"
4747
},
4848
"devDependencies": {

pnpm-lock.yaml

Lines changed: 15 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable ts/no-unsafe-declaration-merging */
22
import type { DecodedSourceMap, MagicStringOptions, SourceMapOptions } from 'magic-string'
3-
import remapping from '@ampproject/remapping'
3+
import remapping from '@jridgewell/remapping'
44
import MagicString, { SourceMap } from 'magic-string'
55

66
// Thanks to @sxzz & @starknt for the solution

0 commit comments

Comments
 (0)