Skip to content

Commit

Permalink
fix: ensure required polyfills are properly included
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Mar 1, 2024
1 parent 9f469f7 commit dfeb3b3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,23 @@ const baseBundleConfig = {
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules\/(?!axios)/,
loader: 'babel-loader',
options: {
presets: [['@babel/preset-env']],
presets: [
[
'@babel/preset-env',
{
useBuiltIns: 'usage',
corejs: 3,
},
],
],
},
},
{
test: /\.ts?$/,
test: /\.ts$/,
exclude: /node_modules/,
loader: 'ts-loader',
},
Expand Down

0 comments on commit dfeb3b3

Please sign in to comment.