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 1.0.0-next.41 to 1.0.0-next.42

4

dist/index.d.ts

@@ -11,5 +11,7 @@ import { Plugin } from 'vite';

*
* set to `false` to skip reading config from a file
*
* @see https://vitejs.dev/config/#root
*/
configFile?: string;
configFile?: string | false;
/**

@@ -16,0 +18,0 @@ * A `picomatch` pattern, or array of patterns, which specifies the files the plugin should

@@ -260,3 +260,3 @@ var __defProp = Object.defineProperty;

md5.update(input);
const hash = toSafe(md5.digest("base64")).substr(0, hash_length);
const hash = toSafe(md5.digest("base64")).slice(0, hash_length);
hashes[input] = hash;

@@ -460,2 +460,5 @@ return hash;

async function loadSvelteConfig(viteConfig, inlineOptions) {
if (inlineOptions.configFile === false) {
return;
}
const configFile = findConfigToLoad(viteConfig, inlineOptions);

@@ -462,0 +465,0 @@ if (configFile) {

{
"name": "@sveltejs/vite-plugin-svelte",
"version": "1.0.0-next.41",
"version": "1.0.0-next.42",
"license": "MIT",

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

"dependencies": {
"@rollup/pluginutils": "^4.2.0",
"@rollup/pluginutils": "^4.2.1",
"debug": "^4.3.4",

@@ -64,7 +64,7 @@ "kleur": "^4.1.4",

"diff-match-patch": "^1.0.5",
"esbuild": "^0.14.31",
"rollup": "^2.70.1",
"svelte": "^3.46.6",
"tsup": "^5.12.4",
"vite": "^2.9.1"
"esbuild": "^0.14.36",
"rollup": "^2.70.2",
"svelte": "^3.47.0",
"tsup": "^5.12.5",
"vite": "^2.9.5"
},

@@ -76,3 +76,3 @@ "scripts": {

},
"readme": "# @sveltejs/vite-plugin-svelte\n\nThe official [Svelte](https://svelte.dev) plugin for [Vite](https://vitejs.dev).\n\n## Usage\n\n```js\n// vite.config.js\nimport { defineConfig } from 'vite';\nimport { svelte } from '@sveltejs/vite-plugin-svelte';\n\nexport default defineConfig({\n\tplugins: [\n\t\tsvelte({\n\t\t\t/* plugin options */\n\t\t})\n\t]\n});\n```\n\n## Documentation\n\n- [Plugin options](../../docs/config.md)\n- [FAQ](../../docs/faq.md)\n\n## License\n\n[MIT](./LICENSE)\n"
"readme": "# @sveltejs/vite-plugin-svelte\n\nThe official [Svelte](https://svelte.dev) plugin for [Vite](https://vitejs.dev).\n\n## Usage\n\n```js\n// vite.config.js\nimport { defineConfig } from 'vite';\nimport { svelte } from '@sveltejs/vite-plugin-svelte';\n\nexport default defineConfig({\n plugins: [\n svelte({\n /* plugin options */\n })\n ]\n});\n```\n\n## Documentation\n\n- [Plugin options](../../docs/config.md)\n- [FAQ](../../docs/faq.md)\n\n## License\n\n[MIT](./LICENSE)\n"
}

@@ -13,7 +13,7 @@ # @sveltejs/vite-plugin-svelte

export default defineConfig({
plugins: [
svelte({
/* plugin options */
})
]
plugins: [
svelte({
/* plugin options */
})
]
});

@@ -20,0 +20,0 @@ ```

@@ -17,3 +17,3 @@ import * as crypto from 'crypto';

md5.update(input);
const hash = toSafe(md5.digest('base64')).substr(0, hash_length);
const hash = toSafe(md5.digest('base64')).slice(0, hash_length);
hashes[input] = hash;

@@ -20,0 +20,0 @@ return hash;

@@ -32,2 +32,5 @@ import { createRequire } from 'module';

): Promise<Partial<Options> | undefined> {
if (inlineOptions.configFile === false) {
return;
}
const configFile = findConfigToLoad(viteConfig, inlineOptions);

@@ -34,0 +37,0 @@ if (configFile) {

@@ -358,5 +358,7 @@ /* eslint-disable no-unused-vars */

*
* set to `false` to skip reading config from a file
*
* @see https://vitejs.dev/config/#root
*/
configFile?: string;
configFile?: string | false;

@@ -363,0 +365,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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