mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix: exclude optimization in react, but include cjs dep
This commit is contained in:
@@ -16,4 +16,12 @@ export default defineConfig({
|
||||
server: {
|
||||
port: 3000
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ['@ionic/react', '@ionic/react-router'],
|
||||
/**
|
||||
* ESM dependencies that have a CJS dependency need to
|
||||
* include that dependency for optimization.
|
||||
*/
|
||||
include: ['@ionic/react > react-dom']
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user