Socket
Socket
Sign inDemoInstall

@sveltejs/vite-plugin-svelte

Package Overview
Dependencies
Maintainers
4
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/vite-plugin-svelte - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

src/utils/__tests__/compile.spec.ts

14

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc