Skip to content

Commit 6f22397

Browse files
committed
chore: format
1 parent 1c3f36d commit 6f22397

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/enhanced-img/src/vite-plugin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ export function image_plugin(imagetools_plugin) {
3535
enforce: 'pre',
3636
async configResolved(config) {
3737
vite_config = config;
38-
for (const plugin of (config.plugins || [])) {
38+
for (const plugin of config.plugins || []) {
3939
if (plugin.name === name) {
4040
break;
4141
}
4242
if (plugin.name === 'vite-plugin-svelte') {
43-
throw new Error('@sveltejs/enhanced-img must come before the Svelte or SvelteKit plugins');
43+
throw new Error(
44+
'@sveltejs/enhanced-img must come before the Svelte or SvelteKit plugins'
45+
);
4446
}
4547
}
4648
svelte_config = await loadSvelteConfig();

0 commit comments

Comments
 (0)