diff --git a/webpack.dev.config.js b/webpack.dev.config.js index fadcda90..d8bec77d 100644 --- a/webpack.dev.config.js +++ b/webpack.dev.config.js @@ -2,7 +2,14 @@ const path = require('path'); const { createConfig } = require('@edx/frontend-build'); const CopyPlugin = require('copy-webpack-plugin'); -const config = createConfig('webpack-dev'); +const config = createConfig('webpack-dev', { + resolve: { + fallback: { + fs: false, + constants: false, + }, + }, +}); /** * Allow serving xblock-bootstrap.html from the MFE itself. diff --git a/webpack.prod.config.js b/webpack.prod.config.js index 19bb4f94..6efc9a70 100644 --- a/webpack.prod.config.js +++ b/webpack.prod.config.js @@ -2,7 +2,14 @@ const path = require('path'); const { createConfig } = require('@edx/frontend-build'); const CopyPlugin = require('copy-webpack-plugin'); -const config = createConfig('webpack-prod'); +const config = createConfig('webpack-prod', { + resolve: { + fallback: { + fs: false, + constants: false, + }, + }, +}); /** * Allow serving xblock-bootstrap.html from the MFE itself.