Skip to content

Commit

Permalink
vite-plugin-symfony fix enforcePluginOrderingPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
lhapaipai committed Feb 9, 2024
1 parent dbfc747 commit 57f4f19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## v6.4.0

- vite-plugin-symfony : add exposedEnvVars option

- vite-plugin-symfony : fix enforcePluginOrderingPosition https://github.com/lhapaipai/vite-bundle/issues/80
## v6.3.6

- fix crossorigin attribute to Link header for scripts with type=module (@andyexeter)
Expand Down
2 changes: 1 addition & 1 deletion src/vite-plugin-symfony/src/entrypoints/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function symfonyEntrypoints(pluginOptions: VitePluginSymfonyEntry
viteConfig = config as ResolvedConfigWithOrderablePlugins;

if (pluginOptions.enforcePluginOrderingPosition) {
const pluginPos = viteConfig.plugins.findIndex((plugin) => plugin.name === "symfony");
const pluginPos = viteConfig.plugins.findIndex((plugin) => plugin.name === "symfony-entrypoints");
const symfonyPlugin = viteConfig.plugins.splice(pluginPos, 1);

const manifestPos = viteConfig.plugins.findIndex((plugin) => plugin.name === "vite:reporter");
Expand Down

0 comments on commit 57f4f19

Please sign in to comment.