Skip to content

Commit

Permalink
fix: 预构建cjs的间接依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
c0dedance committed Nov 2, 2023
1 parent 53783cb commit 92a2d89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/node/plugin-r-press/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ export function pluginConfig(
localsConvention: 'camelCaseOnly',
},
},
optimizeDeps: {
include: [
'react-helmet-async',
'react-dom',
'react-dom/client',
'lodash-es',
],
},
}
},
configureServer(server) {
Expand Down

0 comments on commit 92a2d89

Please sign in to comment.