mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-26 06:05:47 +08:00
Fix babel runtime exclude rule
This commit is contained in:
@@ -275,7 +275,7 @@ module.exports = {
|
||||
// Unlike the application JS, we only compile the standard ES features.
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /@babel\/runtime/,
|
||||
exclude: /@babel(?:\/|\\{1,2})runtime/,
|
||||
use: [
|
||||
// This loader parallelizes code compilation, it is optional but
|
||||
// improves compile time on larger projects
|
||||
|
||||
@@ -314,7 +314,7 @@ module.exports = {
|
||||
// Unlike the application JS, we only compile the standard ES features.
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /@babel\/runtime/,
|
||||
exclude: /@babel(?:\/|\\{1,2})runtime/,
|
||||
use: [
|
||||
// This loader parallelizes code compilation, it is optional but
|
||||
// improves compile time on larger projects
|
||||
|
||||
Reference in New Issue
Block a user