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
7194bfc6
Commit
7194bfc6
authored
Mar 29, 2020
by
Guy Bedford
Committed by
Joe Haddad
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
string-hash, strip-ansi
parent
caa5da7c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
7 deletions
+31
-7
index.ts
packages/next/build/output/index.ts
+1
-1
store.ts
packages/next/build/output/store.ts
+1
-1
next-babel-loader.js
packages/next/build/webpack/loaders/next-babel-loader.js
+1
-1
next-data-loader.ts
packages/next/build/webpack/loaders/next-data-loader.ts
+1
-1
index.js
.../build/webpack/plugins/terser-webpack-plugin/src/index.js
+1
-1
package.json
packages/next/package.json
+2
-2
taskfile.js
packages/next/taskfile.js
+16
-0
misc.d.ts
packages/next/types/misc.d.ts
+8
-0
No files found.
packages/next/build/output/index.ts
View file @
7194bfc6
import
chalk
from
'next/dist/compiled/chalk'
import
chalk
from
'next/dist/compiled/chalk'
import
textTable
from
'next/dist/compiled/text-table'
import
textTable
from
'next/dist/compiled/text-table'
import
createStore
from
'next/dist/compiled/unistore'
import
createStore
from
'next/dist/compiled/unistore'
import
stripAnsi
from
'strip-ansi'
import
stripAnsi
from
'
next/dist/compiled/
strip-ansi'
import
formatWebpackMessages
from
'../../client/dev/error-overlay/format-webpack-messages'
import
formatWebpackMessages
from
'../../client/dev/error-overlay/format-webpack-messages'
import
{
OutputState
,
store
as
consoleStore
}
from
'./store'
import
{
OutputState
,
store
as
consoleStore
}
from
'./store'
...
...
packages/next/build/output/store.ts
View file @
7194bfc6
import
createStore
from
'next/dist/compiled/unistore'
import
createStore
from
'next/dist/compiled/unistore'
import
stripAnsi
from
'strip-ansi'
import
stripAnsi
from
'
next/dist/compiled/
strip-ansi'
import
*
as
Log
from
'./log'
import
*
as
Log
from
'./log'
...
...
packages/next/build/webpack/loaders/next-babel-loader.js
View file @
7194bfc6
import
babelLoader
from
'next/dist/compiled/babel-loader'
import
babelLoader
from
'next/dist/compiled/babel-loader'
import
{
basename
,
join
}
from
'path'
import
{
basename
,
join
}
from
'path'
import
hash
from
'string-hash'
import
hash
from
'
next/dist/compiled/
string-hash'
// increment 'j' to invalidate cache
// increment 'j' to invalidate cache
// eslint-disable-next-line no-useless-concat
// eslint-disable-next-line no-useless-concat
...
...
packages/next/build/webpack/loaders/next-data-loader.ts
View file @
7194bfc6
import
{
loader
}
from
'webpack'
import
{
loader
}
from
'webpack'
import
hash
from
'string-hash'
import
hash
from
'
next/dist/compiled/
string-hash'
import
{
basename
}
from
'path'
import
{
basename
}
from
'path'
const
nextDataLoader
:
loader
.
Loader
=
function
(
source
)
{
const
nextDataLoader
:
loader
.
Loader
=
function
(
source
)
{
const
filename
=
this
.
resourcePath
const
filename
=
this
.
resourcePath
...
...
packages/next/build/webpack/plugins/terser-webpack-plugin/src/index.js
View file @
7194bfc6
/* eslint-disable
/* eslint-disable
no-param-reassign
no-param-reassign
*/
*/
import
stringHash
from
'string-hash'
import
stringHash
from
'
next/dist/compiled/
string-hash'
import
{
SourceMapConsumer
}
from
'next/dist/compiled/source-map'
import
{
SourceMapConsumer
}
from
'next/dist/compiled/source-map'
import
{
SourceMapSource
,
RawSource
}
from
'webpack-sources'
import
{
SourceMapSource
,
RawSource
}
from
'webpack-sources'
import
{
RequestShortener
}
from
'webpack'
import
{
RequestShortener
}
from
'webpack'
...
...
packages/next/package.json
View file @
7194bfc6
...
@@ -85,8 +85,6 @@
...
@@ -85,8 +85,6 @@
"react-is"
:
"16.8.6"
,
"react-is"
:
"16.8.6"
,
"resolve-url-loader"
:
"3.1.1"
,
"resolve-url-loader"
:
"3.1.1"
,
"sass-loader"
:
"8.0.2"
,
"sass-loader"
:
"8.0.2"
,
"string-hash"
:
"1.1.3"
,
"strip-ansi"
:
"5.2.0"
,
"style-loader"
:
"1.0.0"
,
"style-loader"
:
"1.0.0"
,
"styled-jsx"
:
"3.2.5"
,
"styled-jsx"
:
"3.2.5"
,
"terser"
:
"4.4.2"
,
"terser"
:
"4.4.2"
,
...
@@ -195,6 +193,8 @@
...
@@ -195,6 +193,8 @@
"resolve"
:
"1.11.0"
,
"resolve"
:
"1.11.0"
,
"send"
:
"0.17.1"
,
"send"
:
"0.17.1"
,
"source-map"
:
"0.6.1"
,
"source-map"
:
"0.6.1"
,
"string-hash"
:
"1.1.3"
,
"strip-ansi"
:
"5.2.0"
,
"taskr"
:
"1.1.0"
,
"taskr"
:
"1.1.0"
,
"text-table"
:
"0.2.0"
,
"text-table"
:
"0.2.0"
,
"typescript"
:
"3.7.3"
,
"typescript"
:
"3.7.3"
,
...
...
packages/next/taskfile.js
View file @
7194bfc6
...
@@ -517,6 +517,20 @@ export async function ncc_source_map(task, opts) {
...
@@ -517,6 +517,20 @@ export async function ncc_source_map(task, opts) {
.
target
(
'dist/compiled/source-map'
)
.
target
(
'dist/compiled/source-map'
)
}
}
// eslint-disable-next-line camelcase
// eslint-disable-next-line camelcase
export
async
function
ncc_string_hash
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'string-hash'
)))
.
ncc
({
packageName
:
'string-hash'
})
.
target
(
'dist/compiled/string-hash'
)
}
// eslint-disable-next-line camelcase
export
async
function
ncc_strip_ansi
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'strip-ansi'
)))
.
ncc
({
packageName
:
'strip-ansi'
})
.
target
(
'dist/compiled/strip-ansi'
)
}
// eslint-disable-next-line camelcase
export
async
function
ncc_text_table
(
task
,
opts
)
{
export
async
function
ncc_text_table
(
task
,
opts
)
{
await
task
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'text-table'
)))
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'text-table'
)))
...
@@ -587,6 +601,8 @@ export async function precompile(task) {
...
@@ -587,6 +601,8 @@ export async function precompile(task) {
'ncc_resolve'
,
'ncc_resolve'
,
'ncc_send'
,
'ncc_send'
,
'ncc_source_map'
,
'ncc_source_map'
,
'ncc_string_hash'
,
'ncc_strip_ansi'
,
'ncc_text_table'
,
'ncc_text_table'
,
'ncc_unistore'
,
'ncc_unistore'
,
])
])
...
...
packages/next/types/misc.d.ts
View file @
7194bfc6
...
@@ -168,6 +168,14 @@ declare module 'next/dist/compiled/source-map' {
...
@@ -168,6 +168,14 @@ declare module 'next/dist/compiled/source-map' {
import
m
from
'source-map'
import
m
from
'source-map'
export
=
m
export
=
m
}
}
declare
module
'next/dist/compiled/string-hash'
{
import
m
from
'string-hash'
export
=
m
}
declare
module
'next/dist/compiled/strip-ansi'
{
import
m
from
'strip-ansi'
export
=
m
}
declare
module
'next/dist/compiled/text-table'
{
declare
module
'next/dist/compiled/text-table'
{
function
textTable
(
function
textTable
(
rows
:
Array
<
Array
<
{}
>>
,
rows
:
Array
<
Array
<
{}
>>
,
...
...
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