@sveltejs/vite-plugin-svelte
Advanced tools
Comparing version 1.0.0-next.41 to 1.0.0-next.42
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
440988
5746
Updated@rollup/pluginutils@^4.2.1