Skip to content

Commit 232936a

Browse files
committed
fix
1 parent 1ce188a commit 232936a

File tree

5 files changed

+8
-3084
lines changed

5 files changed

+8
-3084
lines changed

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"aria-query": "^5.3.1",
148148
"axobject-query": "^4.1.0",
149149
"esm-env": "^1.2.1",
150-
"esrap": "^1.3.0",
150+
"esrap": "^1.3.1",
151151
"is-reference": "^3.0.3",
152152
"locate-character": "^3.0.0",
153153
"magic-string": "^0.30.11",

packages/svelte/src/compiler/phases/3-transform/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ export function transform_component(analysis, source, options) {
3333
: client_component(analysis, options);
3434

3535
const js_source_name = get_source_name(options.filename, options.outputFilename, 'input.svelte');
36+
37+
// @ts-expect-error
3638
const js = print(program, {
3739
// include source content; makes it easier/more robust looking up the source map code
3840
// (else esrap does return null for source and sourceMapContent which may trip up tooling)
3941
sourceMapContent: source,
4042
sourceMapSource: js_source_name
4143
});
44+
4245
merge_with_preprocessor_map(js, options, js_source_name);
4346

4447
const css =
@@ -92,6 +95,7 @@ export function transform_module(analysis, source, options) {
9295
}
9396

9497
return {
98+
// @ts-expect-error
9599
js: print(program, {
96100
// include source content; makes it easier/more robust looking up the source map code
97101
// (else esrap does return null for source and sourceMapContent which may trip up tooling)

packages/svelte/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@
4040
"./tests/runtime-browser/test-ssr.ts",
4141
"./tests/*/samples/*/_config.js"
4242
],
43-
"exclude": ["./scripts/process-messages/templates/", "./src/compiler/optimizer/"]
43+
"exclude": ["./scripts/process-messages/templates/", "./scripts/_bundle.js", "./src/compiler/optimizer/"]
4444
}

0 commit comments

Comments
 (0)