Skip to content

Commit

Permalink
refactor: change default prop order
Browse files Browse the repository at this point in the history
  • Loading branch information
oktaysenkan committed Oct 3, 2024
1 parent d74fc96 commit 14e6b40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/esbuild/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const IconifyPlugin = (options: IconifyOptions): Plugin => {
name: "esbuild-plugin-iconify",
setup(build) {
build.onResolve({ filter: new RegExp(`^${alias}$`) }, (args) => {
return { path: getIconsFilePath({ ...options, type: "esm" }) };
return { path: getIconsFilePath({ type: "esm", ...options }) };
});

build.onStart(async () => {
await loadIcons({ ...options, type: "esm" });
await loadIcons({ type: "esm", ...options });
});
},
};
Expand Down
4 changes: 2 additions & 2 deletions packages/vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export const IconifyPlugin = (options: IconifyOptions): PluginOption[] => [
name: "vite-plugin-iconify",
resolveId(source) {
if (source === alias)
return getIconsFilePath({ ...options, type: "esm" });
return getIconsFilePath({ type: "esm", ...options });

return null;
},
async buildStart() {
await loadIcons({ ...options, type: "esm" });
await loadIcons({ type: "esm", ...options });
},
},
];

0 comments on commit 14e6b40

Please sign in to comment.