소스 검색

exclude mongoose from bundles

Yuki Takei 3 년 전
부모
커밋
8509f29503
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/app/next.config.js

+ 1 - 0
packages/app/next.config.js

@@ -81,6 +81,7 @@ module.exports = async(phase, { defaultConfig }) => {
       // See: https://webpack.js.org/configuration/externals/
       // This provides a way of excluding dependencies from the output bundles
       config.externals.push('dtrace-provider');
+      config.externals.push('mongoose');
 
       // configure additional entries
       const orgEntry = config.entry;