We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c3f36d commit 6f22397Copy full SHA for 6f22397
packages/enhanced-img/src/vite-plugin.js
@@ -35,12 +35,14 @@ export function image_plugin(imagetools_plugin) {
35
enforce: 'pre',
36
async configResolved(config) {
37
vite_config = config;
38
- for (const plugin of (config.plugins || [])) {
+ for (const plugin of config.plugins || []) {
39
if (plugin.name === name) {
40
break;
41
}
42
if (plugin.name === 'vite-plugin-svelte') {
43
- throw new Error('@sveltejs/enhanced-img must come before the Svelte or SvelteKit plugins');
+ throw new Error(
44
+ '@sveltejs/enhanced-img must come before the Svelte or SvelteKit plugins'
45
+ );
46
47
48
svelte_config = await loadSvelteConfig();
0 commit comments