File tree Expand file tree Collapse file tree 3 files changed +3263
-2935
lines changed Expand file tree Collapse file tree 3 files changed +3263
-2935
lines changed Original file line number Diff line number Diff line change 6262 "jest" : " ^29.7.0" ,
6363 "jest-environment-jsdom" : " ^29.7.0" ,
6464 "prettier" : " ^3.2.5" ,
65+ "process" : " ^0.11.10" ,
6566 "storybook" : " ^7.6.17" ,
6667 "style-loader" : " ^3.3.4" ,
6768 "ts-jest" : " ^29.1.2" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const HtmlWebPackPlugin = require('html-webpack-plugin');
55const CopyWebPackPlugin = require ( 'copy-webpack-plugin' ) ;
66const CleanWebPackPlugin = require ( 'clean-webpack-plugin' ) . CleanWebpackPlugin ;
77const NodePolyfillPlugin = require ( 'node-polyfill-webpack-plugin' ) ;
8+ const { ProvidePlugin } = require ( 'webpack' ) ;
89
910const config = {
1011 devtool : 'cheap-module-source-map' ,
@@ -121,6 +122,9 @@ const config = {
121122 filename : 'popup.html' ,
122123 } ) ,
123124 new NodePolyfillPlugin ( ) ,
125+ new ProvidePlugin ( {
126+ process : 'process/browser.js' ,
127+ } ) ,
124128 ] ,
125129} ;
126130
You can’t perform that action at this time.
0 commit comments