Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sveltejs/vite-plugin-svelte

Package Overview
Dependencies
Maintainers
4
Versions
109
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 4.0.0-next.7 to 4.0.0-next.8

12

package.json
{
"name": "@sveltejs/vite-plugin-svelte",
"version": "4.0.0-next.7",
"version": "4.0.0-next.8",
"license": "MIT",

@@ -40,3 +40,3 @@ "author": "dominikg",

"@sveltejs/vite-plugin-svelte-inspector": "^3.0.0-next.0||^3.0.0",
"debug": "^4.3.6",
"debug": "^4.3.7",
"deepmerge": "^4.3.1",

@@ -53,6 +53,6 @@ "kleur": "^4.1.5",

"@types/debug": "^4.1.12",
"esbuild": "^0.23.1",
"sass": "^1.77.8",
"svelte": "^5.0.0-next.242",
"vite": "^5.4.2"
"esbuild": "^0.24.0",
"sass": "^1.79.4",
"svelte": "^5.0.0-next.264",
"vite": "^5.4.8"
},

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

import fs from 'node:fs';
import process from 'node:process';
import { svelteInspector } from '@sveltejs/vite-plugin-svelte-inspector';

@@ -3,0 +4,0 @@ import { handleHotUpdate } from './handle-hot-update.js';

@@ -0,1 +1,2 @@

import process from 'node:process';
import { isCSSRequest, preprocessCSS, resolveConfig, transformWithEsbuild } from 'vite';

@@ -2,0 +3,0 @@ import { mapToRelative, removeLangSuffix } from './utils/sourcemaps.js';

@@ -139,2 +139,5 @@ import type { InlineConfig, ResolvedConfig } from 'vite';

*
* warnings emitted for files in node_modules are logged at the debug level, to see them run
* `DEBUG=vite-plugin-svelte:node-modules-onwarn pnpm build`
*
* @example

@@ -149,2 +152,3 @@ * ```

* ```
*
*/

@@ -151,0 +155,0 @@ onwarn?: (warning: Warning, defaultHandler: (warning: Warning) => void) => void;

@@ -1,2 +0,2 @@

import * as crypto from 'node:crypto';
import crypto from 'node:crypto';

@@ -3,0 +3,0 @@ const hashes = Object.create(null);

import { createFilter, normalizePath } from 'vite';
import * as fs from 'node:fs';
import * as path from 'node:path';
import fs from 'node:fs';
import path from 'node:path';
import process from 'node:process';
import { log } from './log.js';

@@ -5,0 +6,0 @@ import { DEFAULT_SVELTE_MODULE_EXT, DEFAULT_SVELTE_MODULE_INFIX } from './constants.js';

import { createRequire } from 'node:module';
import path from 'node:path';
import process from 'node:process';
import fs from 'node:fs';

@@ -4,0 +5,0 @@ import { pathToFileURL } from 'node:url';

@@ -229,3 +229,9 @@ /* eslint-disable no-console */

function warnDev(w) {
if (log.info.enabled) log.info(buildExtendedLogMessage(w));
if (w.filename?.includes('node_modules')) {
if (isDebugNamespaceEnabled('node-modules-onwarn')) {
log.debug(buildExtendedLogMessage(w), undefined, 'node-modules-onwarn');
}
} else if (log.info.enabled) {
log.info(buildExtendedLogMessage(w));
}
}

@@ -237,3 +243,9 @@

function warnBuild(w) {
if (log.warn.enabled) log.warn(buildExtendedLogMessage(w), w.frame);
if (w.filename?.includes('node_modules')) {
if (isDebugNamespaceEnabled('node-modules-onwarn')) {
log.debug(buildExtendedLogMessage(w), w.frame, 'node-modules-onwarn');
}
} else if (log.warn.enabled) {
log.warn(buildExtendedLogMessage(w), w.frame);
}
}

@@ -240,0 +252,0 @@

@@ -0,1 +1,2 @@

import process from 'node:process';
import { normalizePath } from 'vite';

@@ -2,0 +3,0 @@ import { isDebugNamespaceEnabled, log } from './log.js';

import path from 'node:path';
import process from 'node:process';

@@ -3,0 +4,0 @@ const IS_WINDOWS = process.platform === 'win32';

@@ -139,2 +139,5 @@ declare module '@sveltejs/vite-plugin-svelte' {

*
* warnings emitted for files in node_modules are logged at the debug level, to see them run
* `DEBUG=vite-plugin-svelte:node-modules-onwarn pnpm build`
*
* @example

@@ -149,2 +152,3 @@ * ```

* ```
*
*/

@@ -151,0 +155,0 @@ onwarn?: (warning: Warning, defaultHandler: (warning: Warning) => void) => void;

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