From d3ce0c4c61994232bd61739439c6a8e2707aebee Mon Sep 17 00:00:00 2001 From: kenclary Date: Tue, 9 Jan 2024 16:41:37 -0500 Subject: [PATCH] fix: configure webpack to fix paid powerpaste plugin (#402) --- webpack.dev.config.js | 9 ++++++++- webpack.prod.config.js | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) 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.