Commit a3ec26d3 authored by Guy Bedford's avatar Guy Bedford Committed by Joe Haddad

ignore-loader

parent 8dad5abd
...@@ -183,7 +183,7 @@ export const css = curry(async function css( ...@@ -183,7 +183,7 @@ export const css = curry(async function css(
regexCssGlobal, regexCssGlobal,
(scssEnabled && regexSassGlobal) as RegExp, (scssEnabled && regexSassGlobal) as RegExp,
].filter(Boolean), ].filter(Boolean),
use: require.resolve('ignore-loader'), use: require.resolve('next/dist/compiled/ignore-loader'),
}, },
], ],
}) })
......
...@@ -82,7 +82,6 @@ ...@@ -82,7 +82,6 @@
"css-loader": "3.3.0", "css-loader": "3.3.0",
"cssnano-simple": "1.0.0", "cssnano-simple": "1.0.0",
"fork-ts-checker-webpack-plugin": "3.1.1", "fork-ts-checker-webpack-plugin": "3.1.1",
"ignore-loader": "0.1.2",
"jest-worker": "24.9.0", "jest-worker": "24.9.0",
"loader-utils": "2.0.0", "loader-utils": "2.0.0",
"mini-css-extract-plugin": "0.8.0", "mini-css-extract-plugin": "0.8.0",
...@@ -172,6 +171,7 @@ ...@@ -172,6 +171,7 @@
"fresh": "0.5.2", "fresh": "0.5.2",
"gzip-size": "5.1.1", "gzip-size": "5.1.1",
"http-proxy": "1.18.0", "http-proxy": "1.18.0",
"ignore-loader": "0.1.2",
"is-docker": "2.0.0", "is-docker": "2.0.0",
"is-wsl": "2.1.1", "is-wsl": "2.1.1",
"json5": "2.1.2", "json5": "2.1.2",
......
...@@ -254,6 +254,14 @@ export async function ncc_http_proxy(task, opts) { ...@@ -254,6 +254,14 @@ export async function ncc_http_proxy(task, opts) {
.target('dist/compiled/http-proxy') .target('dist/compiled/http-proxy')
} }
// eslint-disable-next-line camelcase // 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' externals['is-docker'] = 'next/dist/compiled/is-docker'
export async function ncc_is_docker(task, opts) { export async function ncc_is_docker(task, opts) {
await task await task
...@@ -488,6 +496,7 @@ export async function precompile(task) { ...@@ -488,6 +496,7 @@ export async function precompile(task) {
'ncc_fresh', 'ncc_fresh',
'ncc_gzip_size', 'ncc_gzip_size',
'ncc_http_proxy', 'ncc_http_proxy',
'ncc_ignore_loader',
'ncc_is_docker', 'ncc_is_docker',
'ncc_is_wsl', 'ncc_is_wsl',
'ncc_json5', 'ncc_json5',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment