Socket
Socket
Sign inDemoInstall

@sveltejs/vite-plugin-svelte

Package Overview
Dependencies
204
Maintainers
4
Versions
102
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.1 to 2.4.2

16

package.json
{
"name": "@sveltejs/vite-plugin-svelte",
"version": "2.4.1",
"version": "2.4.2",
"license": "MIT",

@@ -41,15 +41,15 @@ "author": "dominikg",

"magic-string": "^0.30.0",
"svelte-hmr": "^0.15.1",
"svelte-hmr": "^0.15.2",
"vitefu": "^0.2.4",
"@sveltejs/vite-plugin-svelte-inspector": "^1.0.2"
"@sveltejs/vite-plugin-svelte-inspector": "^1.0.3"
},
"peerDependencies": {
"svelte": "^3.54.0 || ^4.0.0-next.0",
"svelte": "^3.54.0 || ^4.0.0",
"vite": "^4.0.0"
},
"devDependencies": {
"@types/debug": "^4.1.7",
"esbuild": "^0.17.18",
"svelte": "^3.59.1",
"vite": "^4.3.5"
"@types/debug": "^4.1.8",
"esbuild": "^0.18.6",
"svelte": "^3.59.2",
"vite": "^4.3.9"
},

@@ -56,0 +56,0 @@ "scripts": {

@@ -128,9 +128,11 @@ import { compile, preprocess, walk } from 'svelte/compiler';

// 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 (isSvelte3) {
// 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) {

@@ -137,0 +139,0 @@ endStat();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc