pull/14742/head
Rich Harris 2 years ago
parent 1ce188a892
commit 232936aa13

@ -147,7 +147,7 @@
"aria-query": "^5.3.1",
"axobject-query": "^4.1.0",
"esm-env": "^1.2.1",
"esrap": "^1.3.0",
"esrap": "^1.3.1",
"is-reference": "^3.0.3",
"locate-character": "^3.0.0",
"magic-string": "^0.30.11",

@ -33,12 +33,15 @@ export function transform_component(analysis, source, options) {
: client_component(analysis, options);
const js_source_name = get_source_name(options.filename, options.outputFilename, 'input.svelte');
// @ts-expect-error
const js = print(program, {
// include source content; makes it easier/more robust looking up the source map code
// (else esrap does return null for source and sourceMapContent which may trip up tooling)
sourceMapContent: source,
sourceMapSource: js_source_name
});
merge_with_preprocessor_map(js, options, js_source_name);
const css =
@ -92,6 +95,7 @@ export function transform_module(analysis, source, options) {
}
return {
// @ts-expect-error
js: print(program, {
// include source content; makes it easier/more robust looking up the source map code
// (else esrap does return null for source and sourceMapContent which may trip up tooling)

@ -40,5 +40,5 @@
"./tests/runtime-browser/test-ssr.ts",
"./tests/*/samples/*/_config.js"
],
"exclude": ["./scripts/process-messages/templates/", "./src/compiler/optimizer/"]
"exclude": ["./scripts/process-messages/templates/", "./scripts/_bundle.js", "./src/compiler/optimizer/"]
}

File diff suppressed because it is too large Load Diff

@ -84,8 +84,8 @@ importers:
specifier: ^1.2.1
version: 1.2.1
esrap:
specifier: ^1.3.0
version: 1.3.0
specifier: ^1.3.1
version: link:../../../../esrap
is-reference:
specifier: ^3.0.3
version: 3.0.3
@ -1139,9 +1139,6 @@ packages:
resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==}
engines: {node: '>=0.10'}
esrap@1.3.0:
resolution: {integrity: sha512-LPT4X5Ur2sGnkQscwgWXRPVDuQrbuJbrStLmVXVXd+lGQ/HoYmcAa47t0Egzw1bYHwhF0w+6DTkxL1Xctp10XQ==}
esrecurse@4.3.0:
resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
engines: {node: '>=4.0'}
@ -3388,11 +3385,6 @@ snapshots:
dependencies:
estraverse: 5.3.0
esrap@1.3.0:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.0
'@typescript-eslint/types': 8.2.0
esrecurse@4.3.0:
dependencies:
estraverse: 5.3.0

Loading…
Cancel
Save