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 18, 2022
1 parent 5dd34aa commit 074b51f
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 074b51f

Please sign in to comment.