提交 a3ec26d3 编写于 作者: G Guy Bedford 提交者: Joe Haddad

ignore-loader

上级 8dad5abd
......@@ -183,7 +183,7 @@ export const css = curry(async function css(
regexCssGlobal,
(scssEnabled && regexSassGlobal) as RegExp,
].filter(Boolean),
use: require.resolve('ignore-loader'),
use: require.resolve('next/dist/compiled/ignore-loader'),
},
],
})
......
......@@ -82,7 +82,6 @@
"css-loader": "3.3.0",
"cssnano-simple": "1.0.0",
"fork-ts-checker-webpack-plugin": "3.1.1",
"ignore-loader": "0.1.2",
"jest-worker": "24.9.0",
"loader-utils": "2.0.0",
"mini-css-extract-plugin": "0.8.0",
......@@ -172,6 +171,7 @@
"fresh": "0.5.2",
"gzip-size": "5.1.1",
"http-proxy": "1.18.0",
"ignore-loader": "0.1.2",
"is-docker": "2.0.0",
"is-wsl": "2.1.1",
"json5": "2.1.2",
......
......@@ -254,6 +254,14 @@ export async function ncc_http_proxy(task, opts) {
.target('dist/compiled/http-proxy')
}
// eslint-disable-next-line camelcase
externals['ignore-loader'] = 'next/dist/compiled/ignore-loader'
export async function ncc_ignore_loader(task, opts) {
await task
.source(opts.src || relative(__dirname, require.resolve('ignore-loader')))
.ncc({ packageName: 'ignore-loader', externals })
.target('dist/compiled/ignore-loader')
}
// eslint-disable-next-line camelcase
externals['is-docker'] = 'next/dist/compiled/is-docker'
export async function ncc_is_docker(task, opts) {
await task
......@@ -488,6 +496,7 @@ export async function precompile(task) {
'ncc_fresh',
'ncc_gzip_size',
'ncc_http_proxy',
'ncc_ignore_loader',
'ncc_is_docker',
'ncc_is_wsl',
'ncc_json5',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册