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:
parent
6e66de75cd
commit
fdbb6be37f
|
@ -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',
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
Exclude "debug" module from babel compile to fix the tour kit stories loading error
|
Loading…
Reference in New Issue