Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
2d9ac399
Unverified
Commit
2d9ac399
authored
Nov 15, 2021
by
Tim Neutkens
Committed by
GitHub
Nov 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove moment locale replace from craCompat as it's a default in Next.js 12 (#31431)
parent
16d56e2c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
webpack-config.ts
packages/next/build/webpack-config.ts
+0
-6
No files found.
packages/next/build/webpack-config.ts
View file @
2d9ac399
...
@@ -1759,12 +1759,6 @@ export default async function getBaseWebpackConfig(
...
@@ -1759,12 +1759,6 @@ export default async function getBaseWebpackConfig(
webpackConfig
.
module
?.
rules
&&
webpackConfig
.
module
?.
rules
&&
webpackConfig
.
plugins
webpackConfig
.
plugins
)
{
)
{
// CRA prevents loading all locales by default
// https://github.com/facebook/create-react-app/blob/fddce8a9e21bf68f37054586deb0c8636a45f50b/packages/react-scripts/config/webpack.config.js#L721
webpackConfig
.
plugins
.
push
(
new
webpack
.
IgnorePlugin
(
/^
\.\/
locale$/
,
/moment$/
)
)
// CRA allows importing non-webpack handled files with file-loader
// CRA allows importing non-webpack handled files with file-loader
// these need to be the last rule to prevent catching other items
// these need to be the last rule to prevent catching other items
// https://github.com/facebook/create-react-app/blob/fddce8a9e21bf68f37054586deb0c8636a45f50b/packages/react-scripts/config/webpack.config.js#L594
// https://github.com/facebook/create-react-app/blob/fddce8a9e21bf68f37054586deb0c8636a45f50b/packages/react-scripts/config/webpack.config.js#L594
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment