Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CoCo_Code_Op2
next.js
提交
7194bfc6
N
next.js
项目概览
CoCo_Code_Op2
/
next.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
next.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7194bfc6
编写于
3月 28, 2020
作者:
G
Guy Bedford
提交者:
Joe Haddad
3月 30, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
string-hash, strip-ansi
上级
caa5da7c
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
31 addition
and
7 deletion
+31
-7
packages/next/build/output/index.ts
packages/next/build/output/index.ts
+1
-1
packages/next/build/output/store.ts
packages/next/build/output/store.ts
+1
-1
packages/next/build/webpack/loaders/next-babel-loader.js
packages/next/build/webpack/loaders/next-babel-loader.js
+1
-1
packages/next/build/webpack/loaders/next-data-loader.ts
packages/next/build/webpack/loaders/next-data-loader.ts
+1
-1
packages/next/build/webpack/plugins/terser-webpack-plugin/src/index.js
.../build/webpack/plugins/terser-webpack-plugin/src/index.js
+1
-1
packages/next/package.json
packages/next/package.json
+2
-2
packages/next/taskfile.js
packages/next/taskfile.js
+16
-0
packages/next/types/misc.d.ts
packages/next/types/misc.d.ts
+8
-0
未找到文件。
packages/next/build/output/index.ts
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
<
{}
>>
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录