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
84a46dfb
Commit
84a46dfb
authored
Mar 29, 2020
by
Guy Bedford
Committed by
Joe Haddad
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thread-loader
parent
c5c4bef9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
webpack-config.ts
packages/next/build/webpack-config.ts
+1
-1
package.json
packages/next/package.json
+1
-1
taskfile.js
packages/next/taskfile.js
+13
-0
No files found.
packages/next/build/webpack-config.ts
View file @
84a46dfb
...
...
@@ -697,7 +697,7 @@ export default async function getBaseWebpackConfig(
},
},
{
loader
:
'thread-loader'
,
loader
:
require
.
resolve
(
'next/dist/compiled/thread-loader'
)
,
options
:
{
workers
:
2
,
workerParallelJobs
:
Infinity
,
...
...
packages/next/package.json
View file @
84a46dfb
...
...
@@ -101,7 +101,6 @@
"sass-loader"
:
"8.0.2"
,
"style-loader"
:
"1.0.0"
,
"styled-jsx"
:
"3.2.5"
,
"thread-loader"
:
"2.1.3"
,
"url"
:
"0.11.0"
,
"use-subscription"
:
"1.1.1"
,
"watchpack"
:
"2.0.0-beta.13"
,
...
...
@@ -195,6 +194,7 @@
"taskr"
:
"1.1.0"
,
"terser"
:
"4.4.2"
,
"text-table"
:
"0.2.0"
,
"thread-loader"
:
"2.1.3"
,
"typescript"
:
"3.7.3"
,
"unfetch"
:
"4.1.0"
,
"unistore"
:
"3.4.1"
,
...
...
packages/next/taskfile.js
View file @
84a46dfb
...
...
@@ -37,6 +37,10 @@ const externals = {
// dependents: webpack-dev-middleware
'webpack/lib/node/NodeOutputFileSystem'
:
'webpack/lib/node/NodeOutputFileSystem'
,
// dependents: thread-loader
'neo-async'
:
'neo-async'
,
'loader-runner'
:
'loader-runner'
,
'loader-utils'
:
'loader-utils'
,
}
// eslint-disable-next-line camelcase
...
...
@@ -366,6 +370,14 @@ export async function ncc_text_table(task, opts) {
.
target
(
'dist/compiled/text-table'
)
}
// eslint-disable-next-line camelcase
externals
[
'thread-loader'
]
=
'next/dist/compiled/thread-loader'
export
async
function
ncc_thread_loader
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'thread-loader'
)))
.
ncc
({
packageName
:
'thread-loader'
,
externals
})
.
target
(
'dist/compiled/thread-loader'
)
}
// eslint-disable-next-line camelcase
externals
[
'unistore'
]
=
'next/dist/compiled/unistore'
export
async
function
ncc_unistore
(
task
,
opts
)
{
await
task
...
...
@@ -452,6 +464,7 @@ export async function precompile(task) {
'ncc_strip_ansi'
,
'ncc_terser'
,
'ncc_text_table'
,
'ncc_thread_loader'
,
'ncc_unistore'
,
'ncc_webpack_dev_middleware'
,
'ncc_webpack_hot_middleware'
,
...
...
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