@sveltejs/vite-plugin-svelte
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "@sveltejs/vite-plugin-svelte", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"license": "MIT", | ||
@@ -41,5 +41,5 @@ "author": "dominikg", | ||
"debug": "^4.3.4", | ||
"deepmerge": "^4.3.0", | ||
"deepmerge": "^4.3.1", | ||
"kleur": "^4.1.5", | ||
"magic-string": "^0.29.0", | ||
"magic-string": "^0.30.0", | ||
"svelte-hmr": "^0.15.1", | ||
@@ -54,7 +54,7 @@ "vitefu": "^0.2.4" | ||
"@types/debug": "^4.1.7", | ||
"esbuild": "^0.17.9", | ||
"esbuild": "^0.17.12", | ||
"rollup": "^2.79.1", | ||
"svelte": "^3.55.1", | ||
"tsup": "^6.6.3", | ||
"vite": "^4.1.4" | ||
"svelte": "^3.57.0", | ||
"tsup": "^6.7.0", | ||
"vite": "^4.2.1" | ||
}, | ||
@@ -61,0 +61,0 @@ "scripts": { |
@@ -124,2 +124,10 @@ import { CompileOptions, ResolvedOptions } from './options'; | ||
const compiled = compile(finalCode, finalCompileOptions); | ||
// prevent dangling pure comments | ||
// see https://github.com/sveltejs/kit/issues/9492#issuecomment-1487704985 | ||
// uses regex replace with whitespace to keep sourcemap/character count unmodified | ||
compiled.js.code = compiled.js.code.replace( | ||
/\/\* [@#]__PURE__ \*\/(\s*)$/gm, | ||
' $1' | ||
); | ||
if (endStat) { | ||
@@ -126,0 +134,0 @@ endStat(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
365695
34
5768
+ Addedmagic-string@0.30.11(transitive)
- Removedmagic-string@0.29.0(transitive)
Updateddeepmerge@^4.3.1
Updatedmagic-string@^0.30.0