Skip to content

Commit

Permalink
feat: esnext
Browse files Browse the repository at this point in the history
  • Loading branch information
宋兴国 committed May 24, 2024
1 parent 537d14e commit c6b4cab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/.vuepress/plugin/vuepress-plugin-demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const DemoPlugin = (options) => {
extendsBundlerOptions(bundlerOptions, app) {
// 修改 @vuepress/bundler-vite 的配置项
if (app.options.bundler.name === '@vuepress/bundler-vite') {
bundlerOptions.viteOptions.build.target ??= "es2019"
bundlerOptions.viteOptions.build.target ??= "esnext"
// bundlerOptions.viteOptions.esbuild.supported['top-level-await'] ??= "true"
}
console.log("bundlerOptions", bundlerOptions);
},
Expand Down

0 comments on commit c6b4cab

Please sign in to comment.