Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CC-29874 Added NodePolyfillPlugin plugin to the webpack config. #61

Merged
merged 2 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

### 3.1.0
Released on 15.09.2023

- Adjusted webpack config by introducing `NodePolyfillPlugin` usage from `node-polyfill-webpack-plugin`.
- Updated dependencies:
- `webpack`: `5.81.0` => `5.88.2`

### 3.0.0
Released on 11.05.2023

Expand Down
8 changes: 8 additions & 0 deletions lib/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const find = require('./find');
const configurePaths = require('./configure-paths');

let NodePolyfillPlugin;

try {
NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
} catch (e) {}

async function getConfiguration(settings) {
let mode = 'development';
let devtool = 'inline-source-map';
Expand Down Expand Up @@ -172,6 +178,8 @@ async function getConfiguration(settings) {
new MiniCssExtractPlugin({
filename: `./css/[name].css`,
}),

NodePolyfillPlugin ? new NodePolyfillPlugin() : null,
],
};

Expand Down
150 changes: 75 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading