Unverified Commit ab158c0a authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

chore: compile resolve-url-loader (#21351)

Closes #21166
parent 56b149f7
...@@ -53,7 +53,7 @@ export const css = curry(async function css( ...@@ -53,7 +53,7 @@ export const css = curry(async function css(
// To fix this, we use `resolve-url-loader` to rewrite the CSS // To fix this, we use `resolve-url-loader` to rewrite the CSS
// imports to real file paths. // imports to real file paths.
{ {
loader: require.resolve('resolve-url-loader'), loader: require.resolve('next/dist/compiled/resolve-url-loader'),
options: { options: {
// Source maps are not required here, but we may as well emit // Source maps are not required here, but we may as well emit
// them. // them.
......
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)})();
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{"name":"resolve-url-loader","main":"index.js","author":"bholloway","license":"MIT"}
...@@ -93,7 +93,6 @@ ...@@ -93,7 +93,6 @@
"raw-body": "2.4.1", "raw-body": "2.4.1",
"react-is": "16.13.1", "react-is": "16.13.1",
"react-refresh": "0.8.3", "react-refresh": "0.8.3",
"resolve-url-loader": "3.1.2",
"stream-browserify": "3.0.0", "stream-browserify": "3.0.0",
"style-loader": "1.2.1", "style-loader": "1.2.1",
"styled-jsx": "3.3.2", "styled-jsx": "3.3.2",
...@@ -216,6 +215,7 @@ ...@@ -216,6 +215,7 @@
"postcss-preset-env": "6.7.0", "postcss-preset-env": "6.7.0",
"postcss-scss": "3.0.4", "postcss-scss": "3.0.4",
"recast": "0.18.5", "recast": "0.18.5",
"resolve-url-loader": "3.1.2",
"sass-loader": "10.0.5", "sass-loader": "10.0.5",
"schema-utils": "2.7.1", "schema-utils": "2.7.1",
"semver": "7.3.2", "semver": "7.3.2",
......
...@@ -433,6 +433,16 @@ export async function ncc_recast(task, opts) { ...@@ -433,6 +433,16 @@ export async function ncc_recast(task, opts) {
.target('compiled/recast') .target('compiled/recast')
} }
// eslint-disable-next-line camelcase // 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' externals['sass-loader'] = 'next/dist/compiled/sass-loader'
export async function ncc_sass_loader(task, opts) { export async function ncc_sass_loader(task, opts) {
await task await task
...@@ -686,6 +696,7 @@ export async function ncc(task) { ...@@ -686,6 +696,7 @@ export async function ncc(task) {
'ncc_postcss_preset_env', 'ncc_postcss_preset_env',
'ncc_postcss_scss', 'ncc_postcss_scss',
'ncc_recast', 'ncc_recast',
'ncc_resolve_url_loader',
'ncc_sass_loader', 'ncc_sass_loader',
'ncc_schema_utils', 'ncc_schema_utils',
'ncc_schema_utils3', 'ncc_schema_utils3',
......
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