From c5a705c392afd96b5aeecda32099a003481a5a5f Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 6 Nov 2022 19:15:14 -0500 Subject: [PATCH] Fix extension --- extension/webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extension/webpack.config.js b/extension/webpack.config.js index e9ab0942..0b80ce9d 100644 --- a/extension/webpack.config.js +++ b/extension/webpack.config.js @@ -1,4 +1,5 @@ const path = require('path'); +const webpack = require('webpack'); const CopyPlugin = require('copy-webpack-plugin'); const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); @@ -35,6 +36,9 @@ module.exports = function (env) { filename: '[name].bundle.js', }, plugins: [ + new webpack.DefinePlugin({ + 'process.env.BABEL_ENV': JSON.stringify(process.env.NODE_ENV), + }), new ForkTsCheckerWebpackPlugin({ typescript: { configFile: 'tsconfig.json',