parent
56b149f7be
commit
ab158c0aee
8 changed files with 18 additions and 2 deletions
|
@ -53,7 +53,7 @@ export const css = curry(async function css(
|
|||
// To fix this, we use `resolve-url-loader` to rewrite the CSS
|
||||
// imports to real file paths.
|
||||
{
|
||||
loader: require.resolve('resolve-url-loader'),
|
||||
loader: require.resolve('next/dist/compiled/resolve-url-loader'),
|
||||
options: {
|
||||
// Source maps are not required here, but we may as well emit
|
||||
// them.
|
||||
|
|
1
packages/next/compiled/resolve-url-loader/engine/fail.js
Normal file
1
packages/next/compiled/resolve-url-loader/engine/fail.js
Normal file
|
@ -0,0 +1 @@
|
|||
module.exports=(()=>{"use strict";var e={793:e=>{function process(){return new Promise(function(e,r){setTimeout(function(){r(new Error('This "engine" is designed to fail, for testing purposes only'))},100)})}e.exports=process}};var r={};function __nccwpck_require__(t){if(r[t]){return r[t].exports}var _=r[t]={exports:{}};var i=true;try{e[t](_,_.exports,__nccwpck_require__);i=false}finally{if(i)delete r[t]}return _.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(793)})();
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
packages/next/compiled/resolve-url-loader/index.js
Normal file
1
packages/next/compiled/resolve-url-loader/index.js
Normal file
File diff suppressed because one or more lines are too long
1
packages/next/compiled/resolve-url-loader/package.json
Normal file
1
packages/next/compiled/resolve-url-loader/package.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"name":"resolve-url-loader","main":"index.js","author":"bholloway","license":"MIT"}
|
|
@ -93,7 +93,6 @@
|
|||
"raw-body": "2.4.1",
|
||||
"react-is": "16.13.1",
|
||||
"react-refresh": "0.8.3",
|
||||
"resolve-url-loader": "3.1.2",
|
||||
"stream-browserify": "3.0.0",
|
||||
"style-loader": "1.2.1",
|
||||
"styled-jsx": "3.3.2",
|
||||
|
@ -216,6 +215,7 @@
|
|||
"postcss-preset-env": "6.7.0",
|
||||
"postcss-scss": "3.0.4",
|
||||
"recast": "0.18.5",
|
||||
"resolve-url-loader": "3.1.2",
|
||||
"sass-loader": "10.0.5",
|
||||
"schema-utils": "2.7.1",
|
||||
"semver": "7.3.2",
|
||||
|
|
|
@ -433,6 +433,16 @@ export async function ncc_recast(task, opts) {
|
|||
.target('compiled/recast')
|
||||
}
|
||||
// eslint-disable-next-line camelcase
|
||||
externals['resolve-url-loader'] = 'next/dist/compiled/resolve-url-loader'
|
||||
export async function ncc_resolve_url_loader(task, opts) {
|
||||
await task
|
||||
.source(
|
||||
opts.src || relative(__dirname, require.resolve('resolve-url-loader'))
|
||||
)
|
||||
.ncc({ packageName: 'resolve-url-loader', externals })
|
||||
.target('compiled/resolve-url-loader')
|
||||
}
|
||||
// eslint-disable-next-line camelcase
|
||||
externals['sass-loader'] = 'next/dist/compiled/sass-loader'
|
||||
export async function ncc_sass_loader(task, opts) {
|
||||
await task
|
||||
|
@ -686,6 +696,7 @@ export async function ncc(task) {
|
|||
'ncc_postcss_preset_env',
|
||||
'ncc_postcss_scss',
|
||||
'ncc_recast',
|
||||
'ncc_resolve_url_loader',
|
||||
'ncc_sass_loader',
|
||||
'ncc_schema_utils',
|
||||
'ncc_schema_utils3',
|
||||
|
|
Loading…
Reference in a new issue