-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: account for sourcemap in meta info
We need to use a different method for getting the meta info because `locate` is used to help construct the source map that references the preprocessed Svelte file. If we would now add source maps to that `locate` function it would go the the original source directly which means skipping potentially intermediate source maps which we would need in other situations. fixes #8360 closes #8362
- Loading branch information
1 parent
3858321
commit c917eb1
Showing
5 changed files
with
168 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,135 +1,136 @@ | ||
{ | ||
"name": "svelte", | ||
"version": "4.0.0-next.2", | ||
"description": "Cybernetically enhanced web apps", | ||
"type": "module", | ||
"module": "src/runtime/index.js", | ||
"main": "src/runtime/index.js", | ||
"files": [ | ||
"src", | ||
"types", | ||
"compiler.*", | ||
"register.js", | ||
"index.d.ts", | ||
"store.d.ts", | ||
"animate.d.ts", | ||
"transition.d.ts", | ||
"easing.d.ts", | ||
"motion.d.ts", | ||
"action.d.ts", | ||
"elements.d.ts", | ||
"README.md" | ||
], | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"browser": { | ||
"import": "./src/runtime/index.js" | ||
}, | ||
"import": "./src/runtime/ssr.js" | ||
}, | ||
"./compiler": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/compiler/index.js", | ||
"require": "./compiler.cjs" | ||
}, | ||
"./action": { | ||
"types": "./types/index.d.ts" | ||
}, | ||
"./animate": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/runtime/animate/index.js" | ||
}, | ||
"./easing": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/runtime/easing/index.js" | ||
}, | ||
"./internal": { | ||
"import": "./src/runtime/internal/index.js" | ||
}, | ||
"./motion": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/runtime/motion/index.js" | ||
}, | ||
"./store": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/runtime/store/index.js" | ||
}, | ||
"./transition": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/runtime/transition/index.js" | ||
}, | ||
"./elements": { | ||
"types": "./elements.d.ts" | ||
} | ||
}, | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
"format": "prettier . --cache --plugin-search-dir=. --write", | ||
"check": "prettier . --cache --plugin-search-dir=. --check", | ||
"test": "vitest run && echo \"manually check that there are no type errors in test/types by opening the files in there\"", | ||
"build": "rollup -c && pnpm types", | ||
"generate:version": "node ./scripts/generate-version.js", | ||
"dev": "rollup -cw", | ||
"posttest": "agadoo src/internal/index.js", | ||
"prepublishOnly": "pnpm build", | ||
"types": "node ./scripts/generate-dts.js", | ||
"lint": "eslint \"{src,test}/**/*.{ts,js}\" --cache" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/sveltejs/svelte.git", | ||
"directory": "packages/svelte" | ||
}, | ||
"keywords": [ | ||
"UI", | ||
"framework", | ||
"templates", | ||
"templating" | ||
], | ||
"author": "Rich Harris", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/sveltejs/svelte/issues" | ||
}, | ||
"homepage": "https://svelte.dev", | ||
"dependencies": { | ||
"@ampproject/remapping": "^2.2.1", | ||
"@jridgewell/sourcemap-codec": "^1.4.15", | ||
"acorn": "^8.8.2", | ||
"aria-query": "^5.2.1", | ||
"axobject-query": "^3.2.1", | ||
"code-red": "^1.0.3", | ||
"css-tree": "^2.3.1", | ||
"estree-walker": "^3.0.3", | ||
"is-reference": "^3.0.1", | ||
"locate-character": "^3.0.0", | ||
"magic-string": "^0.30.0", | ||
"periscopic": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.34.3", | ||
"@rollup/plugin-commonjs": "^24.1.0", | ||
"@rollup/plugin-json": "^6.0.0", | ||
"@rollup/plugin-node-resolve": "^15.0.2", | ||
"@sveltejs/eslint-config": "^6.0.4", | ||
"@types/aria-query": "^5.0.1", | ||
"@types/estree": "^1.0.1", | ||
"@types/node": "^14.14.31", | ||
"agadoo": "^3.0.0", | ||
"dts-buddy": "^0.1.7", | ||
"esbuild": "^0.17.19", | ||
"happy-dom": "^9.18.3", | ||
"jsdom": "^21.1.1", | ||
"kleur": "^4.1.5", | ||
"rollup": "^3.20.2", | ||
"source-map": "^0.7.4", | ||
"tiny-glob": "^0.2.9", | ||
"typescript": "^5.0.4", | ||
"vitest": "^0.31.1" | ||
} | ||
} | ||
"name": "svelte", | ||
"version": "4.0.0-next.2", | ||
"description": "Cybernetically enhanced web apps", | ||
"type": "module", | ||
"module": "src/runtime/index.js", | ||
"main": "src/runtime/index.js", | ||
"files": [ | ||
"src", | ||
"types", | ||
"compiler.*", | ||
"register.js", | ||
"index.d.ts", | ||
"store.d.ts", | ||
"animate.d.ts", | ||
"transition.d.ts", | ||
"easing.d.ts", | ||
"motion.d.ts", | ||
"action.d.ts", | ||
"elements.d.ts", | ||
"README.md" | ||
], | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"browser": { | ||
"import": "./src/runtime/index.js" | ||
}, | ||
"import": "./src/runtime/ssr.js" | ||
}, | ||
"./compiler": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/compiler/index.js", | ||
"require": "./compiler.cjs" | ||
}, | ||
"./action": { | ||
"types": "./types/index.d.ts" | ||
}, | ||
"./animate": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/runtime/animate/index.js" | ||
}, | ||
"./easing": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/runtime/easing/index.js" | ||
}, | ||
"./internal": { | ||
"import": "./src/runtime/internal/index.js" | ||
}, | ||
"./motion": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/runtime/motion/index.js" | ||
}, | ||
"./store": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/runtime/store/index.js" | ||
}, | ||
"./transition": { | ||
"types": "./types/index.d.ts", | ||
"import": "./src/runtime/transition/index.js" | ||
}, | ||
"./elements": { | ||
"types": "./elements.d.ts" | ||
} | ||
}, | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
"format": "prettier . --cache --plugin-search-dir=. --write", | ||
"check": "prettier . --cache --plugin-search-dir=. --check", | ||
"test": "vitest run && echo \"manually check that there are no type errors in test/types by opening the files in there\"", | ||
"build": "rollup -c && pnpm types", | ||
"generate:version": "node ./scripts/generate-version.js", | ||
"dev": "rollup -cw", | ||
"posttest": "agadoo src/internal/index.js", | ||
"prepublishOnly": "pnpm build", | ||
"types": "node ./scripts/generate-dts.js", | ||
"lint": "eslint \"{src,test}/**/*.{ts,js}\" --cache" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/sveltejs/svelte.git", | ||
"directory": "packages/svelte" | ||
}, | ||
"keywords": [ | ||
"UI", | ||
"framework", | ||
"templates", | ||
"templating" | ||
], | ||
"author": "Rich Harris", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/sveltejs/svelte/issues" | ||
}, | ||
"homepage": "https://svelte.dev", | ||
"dependencies": { | ||
"@ampproject/remapping": "^2.2.1", | ||
"@jridgewell/sourcemap-codec": "^1.4.15", | ||
"@jridgewell/trace-mapping": "^0.3.18", | ||
"acorn": "^8.8.2", | ||
"aria-query": "^5.2.1", | ||
"axobject-query": "^3.2.1", | ||
"code-red": "^1.0.3", | ||
"css-tree": "^2.3.1", | ||
"estree-walker": "^3.0.3", | ||
"is-reference": "^3.0.1", | ||
"locate-character": "^3.0.0", | ||
"magic-string": "^0.30.0", | ||
"periscopic": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.34.3", | ||
"@rollup/plugin-commonjs": "^24.1.0", | ||
"@rollup/plugin-json": "^6.0.0", | ||
"@rollup/plugin-node-resolve": "^15.0.2", | ||
"@sveltejs/eslint-config": "^6.0.4", | ||
"@types/aria-query": "^5.0.1", | ||
"@types/estree": "^1.0.1", | ||
"@types/node": "^14.14.31", | ||
"agadoo": "^3.0.0", | ||
"dts-buddy": "^0.1.7", | ||
"esbuild": "^0.17.19", | ||
"happy-dom": "^9.18.3", | ||
"jsdom": "^21.1.1", | ||
"kleur": "^4.1.5", | ||
"rollup": "^3.20.2", | ||
"source-map": "^0.7.4", | ||
"tiny-glob": "^0.2.9", | ||
"typescript": "^5.0.4", | ||
"vitest": "^0.31.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.