Skip to content

Commit

Permalink
fix: fix fflate issue with vite, fix #2430
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Nov 20, 2022
1 parent 6425447 commit 72d5d3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/md-enhance/src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const mdEnhancePlugin =
);
}

addViteSsrNoExternal({ app, config }, "vuepress-shared");
addViteSsrNoExternal({ app, config }, ["fflate", "vuepress-shared"]);

if (katexEnable && katexOptions.output !== "html")
addCustomElement({ app, config }, MATHML_TAGS);
Expand Down
2 changes: 1 addition & 1 deletion packages/search-pro/src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const searchProPlugin =
clientConfigFile: path.resolve(__dirname, "../client/config.js"),

extendsBundlerOptions: (config: unknown, app): void => {
addViteSsrNoExternal({ app, config }, "vuepress-shared");
addViteSsrNoExternal({ app, config }, ["fflate", "vuepress-shared"]);
},

onPrepared: (app): Promise<void> => prepareSearchIndex(app, options),
Expand Down

0 comments on commit 72d5d3b

Please sign in to comment.