Skip to content

Commit

Permalink
fix: bump esrap dependency (#14765)
Browse files Browse the repository at this point in the history
* fix: bump esrap

* changeset

* ugh
  • Loading branch information
Rich-Harris authored Dec 19, 2024
1 parent d0f156c commit 7c6379a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-ducks-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: bump esrap dependency
2 changes: 1 addition & 1 deletion packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"aria-query": "^5.3.1",
"axobject-query": "^4.1.0",
"esm-env": "^1.2.1",
"esrap": "^1.3.1",
"esrap": "^1.3.2",
"is-reference": "^3.0.3",
"locate-character": "^3.0.0",
"magic-string": "^0.30.11",
Expand Down
1 change: 0 additions & 1 deletion packages/svelte/scripts/process-messages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ function transform(name, dest) {
ast.body.push(clone);
}

// @ts-expect-error
const module = esrap.print(ast);

fs.writeFileSync(
Expand Down
2 changes: 0 additions & 2 deletions packages/svelte/src/compiler/phases/3-transform/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export function transform_component(analysis, source, 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)
Expand Down Expand Up @@ -95,7 +94,6 @@ 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)
Expand Down
13 changes: 6 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7c6379a

Please sign in to comment.