Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jsxc/jsxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2021-03-21 02:43:32 +0300
committersualko <klaus@jsxc.org>2021-03-21 02:43:32 +0300
commit93f19b17950ac8800fbbe8968bd6838a971c1e6c (patch)
tree2313cff84170e58185a5384f953fc3fb7389c1f5 /webpack.config.js
parent7cec298c7e821df85467aa547cf88859b1e72fa3 (diff)
chore: upgrade to webpack 5
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 0988a83a..3e46ee45 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -89,7 +89,8 @@ let config = {
maxAssetSize: 1024 * 1000 * 1000 * 3,
},
module: {
- rules: [{
+ rules: [
+ {
test: /\.ts$/,
loader: 'ts-loader',
exclude: /node_modules/,
@@ -146,13 +147,13 @@ let config = {
'@vendor': path.resolve(__dirname, 'src/vendor/'),
'@src': path.resolve(__dirname, 'src/'),
},
- // prep for Webpack 5
- // fallback: {
- // fs: false,
- // stream: false,
- // path: false,
- // crypto: false,
- // }
+ fallback: {
+ fs: false,
+ stream: false,
+ path: false,
+ crypto: false,
+ process: false,
+ }
},
externals: {
'child_process': 'child_process',
@@ -161,7 +162,7 @@ let config = {
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
- jQuery: 'jquery'
+ jQuery: 'jquery',
}),
new MiniCssExtractPlugin({
filename: 'styles/jsxc.bundle.css',