Fix Tour Kit stories loading error (#34831)

* Exclude debug module from webpack transpile to load tour kit stories

We originally added debug module in https://github.com/woocommerce/woocommerce-admin/pull/5987 to fix a IE11 issue.
Since we've drop IE11 support, it should be fine to remove it.

* Add changelog
This commit is contained in:
Chi-Hsuan Huang 2022-09-27 15:38:08 +08:00 committed by GitHub
parent 6e66de75cd
commit fdbb6be37f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -5,8 +5,8 @@ const { get } = require( 'lodash' );
const path = require( 'path' );
const CopyWebpackPlugin = require( 'copy-webpack-plugin' );
const CustomTemplatedPathPlugin = require( '@wordpress/custom-templated-path-webpack-plugin' );
const BundleAnalyzerPlugin = require( 'webpack-bundle-analyzer' )
.BundleAnalyzerPlugin;
const BundleAnalyzerPlugin =
require( 'webpack-bundle-analyzer' ).BundleAnalyzerPlugin;
const MomentTimezoneDataPlugin = require( 'moment-timezone-data-webpack-plugin' );
const ForkTsCheckerWebpackPlugin = require( 'fork-ts-checker-webpack-plugin' );
@ -104,8 +104,8 @@ const webpackConfig = {
amd: false,
},
exclude: [
// Exclude node_modules/.pnpm but not node_modules/.pnpm/debug*
/node_modules(\/|\\)\.pnpm(\/|\\)(?!(debug))/,
// Exclude node_modules/.pnpm
/node_modules(\/|\\)\.pnpm(\/|\\)/,
],
use: {
loader: 'babel-loader',

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Exclude "debug" module from babel compile to fix the tour kit stories loading error