Socket
Socket
Sign inDemoInstall

@sveltejs/vite-plugin-svelte

Package Overview
Dependencies
198
Maintainers
4
Versions
102
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-next.2 to 4.0.0-next.3

2

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

@@ -5,0 +5,0 @@ "author": "dominikg",

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

@@ -182,6 +183,11 @@ import { DEFAULT_SVELTE_MODULE_EXT, DEFAULT_SVELTE_MODULE_INFIX } from './constants.js';

const rollupFilter = createFilter(include, exclude);
return (filename) =>
rollupFilter(filename) &&
infixes.some((infix) => filename.includes(infix)) &&
extensions.some((ext) => filename.endsWith(ext));
return (filename) => {
const basename = path.basename(filename);
return (
rollupFilter(filename) &&
infixes.some((infix) => basename.includes(infix)) &&
extensions.some((ext) => basename.endsWith(ext))
);
};
}

@@ -188,0 +194,0 @@

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