Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Update webpack.config for explat-client-react-helpers
Browse files Browse the repository at this point in the history
Update webpack config comment

Fix grammar
  • Loading branch information
chihsuan committed Feb 17, 2022
1 parent 51fc9b1 commit 9d9ce64
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ const webpackConfig = {
},
{
test: /\.(t|j)sx?$/,
exclude: [ /node_modules(\/|\\)(?!(debug))/ ],
exclude: [
// Exclude node_modules/ but not node_modules/debug* and node_modules/explat-client-react-helpers
// explat-client-react-helpers module contains optional chaining operators which need to be processed via babel loader for webpack 4.
// see webpack issue for details: https://github.com/webpack/webpack/issues/10227#issue-547480527
/node_modules(\/|\\)(?!(debug|@automattic\/explat-client-react-helpers))/,
],
use: {
loader: 'babel-loader',
options: {
Expand Down

0 comments on commit 9d9ce64

Please sign in to comment.