Преглед изворни кода

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;