Skip to content

Commit f00b364

Browse files
authored
chore: switch to jrdigewell version of remapping library (#16587)
1 parent 548ad7b commit f00b364

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
"vitest": "^2.1.9"
167167
},
168168
"dependencies": {
169-
"@ampproject/remapping": "^2.3.0",
169+
"@jridgewell/remapping": "^2.3.4",
170170
"@jridgewell/sourcemap-codec": "^1.5.0",
171171
"@sveltejs/acorn-typescript": "^1.0.5",
172172
"@types/estree": "^1.0.5",

packages/svelte/src/compiler/preprocess/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @import { Processed, Preprocessor, MarkupPreprocessor, PreprocessorGroup } from './public.js' */
22
/** @import { SourceUpdate, Source } from './private.js' */
3-
/** @import { DecodedSourceMap, RawSourceMap } from '@ampproject/remapping' */
3+
/** @import { DecodedSourceMap, RawSourceMap } from '@jridgewell/remapping' */
44
import { getLocator } from 'locate-character';
55
import {
66
MappedCode,
@@ -25,7 +25,7 @@ class PreprocessResult {
2525

2626
// sourcemap_list is sorted in reverse order from last map (index 0) to first map (index -1)
2727
// so we use sourcemap_list.unshift() to add new maps
28-
// https://github.com/ampproject/remapping#multiple-transformations-of-a-file
28+
// https://github.com/jridgewell/sourcemaps/tree/main/packages/remapping#multiple-transformations-of-a-file
2929

3030
/**
3131
* @default []

packages/svelte/src/compiler/preprocess/private.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DecodedSourceMap } from '@ampproject/remapping';
1+
import { DecodedSourceMap } from '@jridgewell/remapping';
22
import { Location } from 'locate-character';
33
import { MappedCode } from '../utils/mapped_code.js';
44

packages/svelte/src/compiler/utils/mapped_code.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/** @import { Processed } from '../preprocess/public.js' */
33
/** @import { SourceMap } from 'magic-string' */
44
/** @import { Source } from '../preprocess/private.js' */
5-
/** @import { DecodedSourceMap, SourceMapSegment, RawSourceMap } from '@ampproject/remapping' */
6-
import remapping from '@ampproject/remapping';
5+
/** @import { DecodedSourceMap, SourceMapSegment, RawSourceMap } from '@jridgewell/remapping' */
6+
import remapping from '@jridgewell/remapping';
77
import { push_array } from './push_array.js';
88

99
/**

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)