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 3.0.1 to 3.0.2

14

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

@@ -39,3 +39,2 @@ "author": "dominikg",

"dependencies": {
"@sveltejs/vite-plugin-svelte-inspector": "^2.0.0-next.0 || ^2.0.0",
"debug": "^4.3.4",

@@ -46,3 +45,4 @@ "deepmerge": "^4.3.1",

"svelte-hmr": "^0.15.3",
"vitefu": "^0.2.5"
"vitefu": "^0.2.5",
"@sveltejs/vite-plugin-svelte-inspector": "^2.0.0"
},

@@ -55,6 +55,6 @@ "peerDependencies": {

"@types/debug": "^4.1.12",
"esbuild": "^0.19.7",
"sass": "^1.69.5",
"svelte": "^4.2.7",
"vite": "^5.0.2"
"esbuild": "^0.19.12",
"sass": "^1.70.0",
"svelte": "^4.2.9",
"vite": "^5.0.11"
},

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

@@ -19,3 +19,3 @@ import * as svelte from 'svelte/compiler';

const scriptLangRE =
/<!--[^]*?-->|<script (?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=["']?([^"' >]+)["']?[^>]*>/;
/<!--[^]*?-->|<script (?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=["']?([^"' >]+)["']?[^>]*>/g;

@@ -141,3 +141,3 @@ /**

...dynamicCompileOptions
}
}
: compileOptions;

@@ -189,6 +189,14 @@

let lang = 'js';
for (const match of code.matchAll(scriptLangRE)) {
if (match[1]) {
lang = match[1];
break;
}
}
return {
filename,
normalizedFilename,
lang: code.match(scriptLangRE)?.[1] || 'js',
lang,
// @ts-ignore

@@ -195,0 +203,0 @@ compiled,

@@ -123,3 +123,3 @@ import { readFileSync } from 'node:fs';

...dynamicCompileOptions
}
}
: compileOptions;

@@ -126,0 +126,0 @@ const endStat = statsCollection?.start(filename);

@@ -34,3 +34,3 @@ import fs from 'node:fs';

css: type === 'style' || type === 'all'
}
}
: false,

@@ -37,0 +37,0 @@ ...svelteRequest.query.compilerOptions

@@ -66,3 +66,3 @@ import { createRequire } from 'node:module';

: // eslint-disable-next-line no-undef
require;
require;

@@ -69,0 +69,0 @@ // avoid loading cached version on reload

@@ -202,3 +202,3 @@ /* eslint-disable no-unused-vars */

partialAccept: !!viteConfig.experimental?.hmrPartialAccept
},
},
compilerOptions: {

@@ -555,3 +555,3 @@ css,

);
});
});
}

@@ -558,0 +558,0 @@ if (options.disableDependencyReinclusion === true) {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc