diff --git a/packages/next/compiled/babel-loader/index.js b/packages/next/compiled/babel-loader/index.js index d3ec2831936ad..12b1dc8ab8b6c 100644 --- a/packages/next/compiled/babel-loader/index.js +++ b/packages/next/compiled/babel-loader/index.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var o=n[t]={i:t,l:false,exports:{}};e[t].call(o.exports,o,o.exports,__webpack_require__);o.l=true;return o.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(385)}return startup()}({6:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}const o=n(671);const i=n(257);const r=n(876);const a=i(o.transform);e.exports=function(){var e=_asyncToGenerator(function*(e,t){let n;try{n=yield a(e,t)}catch(e){throw e.message&&e.codeFrame?new r(e):e}if(!n)return null;const{ast:o,code:i,map:s,metadata:c,sourceType:l}=n;if(s&&(!s.sourcesContent||!s.sourcesContent.length)){s.sourcesContent=[e]}return{ast:o,code:i,map:s,metadata:c,sourceType:l}});return function(t,n){return e.apply(this,arguments)}}();e.exports.version=o.version},87:function(e){e.exports=require("os")},125:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}const o=n(747);const i=n(87);const r=n(622);const a=n(761);const s=n(417);const c=n(841);const l=n(240);const u=n(257);const p=n(6);let f=null;const d=u(o.readFile);const b=u(o.writeFile);const h=u(a.gunzip);const y=u(a.gzip);const m=u(c);const g=function(){var e=_asyncToGenerator(function*(e,t){const n=yield d(e+(t?".gz":""));const o=t?yield h(n):n;return JSON.parse(o.toString())});return function read(t,n){return e.apply(this,arguments)}}();const w=function(){var e=_asyncToGenerator(function*(e,t,n){const o=JSON.stringify(n);const i=t?yield y(o):o;return yield b(e+(t?".gz":""),i)});return function write(t,n,o){return e.apply(this,arguments)}}();const _=function(e,t,n){const o=s.createHash("md4");const i=JSON.stringify({source:e,options:n,identifier:t});o.update(i);return o.digest("hex")+".json"};const x=function(){var e=_asyncToGenerator(function*(e,t){const{source:n,options:o={},cacheIdentifier:a,cacheDirectory:s,cacheCompression:c}=t;const l=r.join(e,_(n,a,o));try{return yield g(l,c)}catch(e){}const u=typeof s!=="string"&&e!==i.tmpdir();try{yield m(e)}catch(e){if(u){return x(i.tmpdir(),t)}throw e}const f=yield p(n,o);try{yield w(l,c,f)}catch(e){if(u){return x(i.tmpdir(),t)}throw e}return f});return function handleCache(t,n){return e.apply(this,arguments)}}();e.exports=function(){var e=_asyncToGenerator(function*(e){let t;if(typeof e.cacheDirectory==="string"){t=e.cacheDirectory}else{if(f===null){f=l({name:"babel-loader"})||i.tmpdir()}t=f}return yield x(t,e)});return function(t){return e.apply(this,arguments)}}()},134:function(e){e.exports=require("schema-utils")},240:function(e){e.exports=require("find-cache-dir")},257:function(e){"use strict";const t=(e,t)=>(function(...n){const o=t.promiseModule;return new o((o,i)=>{if(t.multiArgs){n.push((...e)=>{if(t.errorFirst){if(e[0]){i(e)}else{e.shift();o(e)}}else{o(e)}})}else if(t.errorFirst){n.push((e,t)=>{if(e){i(e)}else{o(t)}})}else{n.push(o)}e.apply(this,n)})});e.exports=((e,n)=>{n=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},n);const o=typeof e;if(!(e!==null&&(o==="object"||o==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":o}\``)}const i=e=>{const t=t=>typeof t==="string"?e===t:t.test(e);return n.include?n.include.some(t):!n.exclude.some(t)};let r;if(o==="function"){r=function(...o){return n.excludeMain?e(...o):t(e,n).apply(this,o)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const o in e){const a=e[o];r[o]=typeof a==="function"&&i(o)?t(a,n):a}return r})},357:function(e,t,n){"use strict";const o=n(671);e.exports=function injectCaller(e,t){if(!supportsCallerOption())return e;return Object.assign({},e,{caller:Object.assign({name:"babel-loader",target:t,supportsStaticESM:true,supportsDynamicImport:true,supportsTopLevelAwait:true},e.caller)})};let i=undefined;function supportsCallerOption(){if(i===undefined){try{o.loadPartialConfig({caller:undefined,babelrc:false,configFile:false});i=true}catch(e){i=false}}return i}},385:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}let o;try{o=n(671)}catch(e){if(e.code==="MODULE_NOT_FOUND"){e.message+="\n babel-loader@8 requires Babel 7.x (the package '@babel/core'). "+"If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@7'."}throw e}if(/^6\./.test(o.version)){throw new Error("\n babel-loader@8 will not work with the '@babel/core@6' bridge package. "+"If you want to use Babel 6.x, install 'babel-loader@7'.")}const{version:i}=n(980);const r=n(125);const a=n(6);const s=n(357);const c=n(453);const{isAbsolute:l}=n(622);const u=n(710);const p=n(134);function subscribe(e,t,n){if(n[e]){n[e](t)}}e.exports=makeLoader();e.exports.custom=makeLoader;function makeLoader(e){const t=e?e(o):undefined;return function(e,n){const o=this.async();loader.call(this,e,n,t).then(e=>o(null,...e),e=>o(e))}}function loader(e,t,n){return _loader.apply(this,arguments)}function _loader(){_loader=_asyncToGenerator(function*(e,t,n){const f=this.resourcePath;let d=u.getOptions(this)||{};p(c,d,{name:"Babel loader"});if(d.customize!=null){if(typeof d.customize!=="string"){throw new Error("Customized loaders must be implemented as standalone modules.")}if(!l(d.customize)){throw new Error("Customized loaders must be passed as absolute paths, since "+"babel-loader has no way to know what they would be relative to.")}if(n){throw new Error("babel-loader's 'customize' option is not available when already "+"using a customized babel-loader wrapper.")}let e=require(d.customize);if(e.__esModule)e=e.default;if(typeof e!=="function"){throw new Error("Custom overrides must be functions.")}n=e(o)}let b;if(n&&n.customOptions){const o=yield n.customOptions.call(this,d,{source:e,map:t});b=o.custom;d=o.loader}if("forceEnv"in d){console.warn("The option `forceEnv` has been removed in favor of `envName` in Babel 7.")}if(typeof d.babelrc==="string"){console.warn("The option `babelrc` should not be set to a string anymore in the babel-loader config. "+"Please update your configuration and set `babelrc` to true or false.\n"+"If you want to specify a specific babel config file to inherit config from "+"please use the `extends` option.\nFor more information about this options see "+"https://babeljs.io/docs/core-packages/#options")}if(Object.prototype.hasOwnProperty.call(d,"sourceMap")&&!Object.prototype.hasOwnProperty.call(d,"sourceMaps")){d=Object.assign({},d,{sourceMaps:d.sourceMap});delete d.sourceMap}const h=Object.assign({},d,{filename:f,inputSourceMap:t||undefined,sourceMaps:d.sourceMaps===undefined?this.sourceMap:d.sourceMaps,sourceFileName:f});delete h.customize;delete h.cacheDirectory;delete h.cacheIdentifier;delete h.cacheCompression;delete h.metadataSubscribers;if(!o.loadPartialConfig){throw new Error(`babel-loader ^8.0.0-beta.3 requires @babel/core@7.0.0-beta.41, but `+`you appear to be using "${o.version}". Either update your `+`@babel/core version, or pin you babel-loader version to 8.0.0-beta.2`)}const y=o.loadPartialConfig(s(h,this.target));if(y){let o=y.options;if(n&&n.config){o=yield n.config.call(this,y,{source:e,map:t,customOptions:b})}if(o.sourceMaps==="inline"){o.sourceMaps=true}const{cacheDirectory:s=null,cacheIdentifier:c=JSON.stringify({options:o,"@babel/core":a.version,"@babel/loader":i}),cacheCompression:l=true,metadataSubscribers:u=[]}=d;let p;if(s){p=yield r({source:e,options:o,transform:a,cacheDirectory:s,cacheIdentifier:c,cacheCompression:l})}else{p=yield a(e,o)}if(typeof y.babelrc==="string"){this.addDependency(y.babelrc)}if(p){if(n&&n.result){p=yield n.result.call(this,p,{source:e,map:t,customOptions:b,config:y,options:o})}const{code:i,map:r,metadata:a}=p;u.forEach(e=>{subscribe(e,a,this)});return[i,r]}}return[e,t]});return _loader.apply(this,arguments)}},417:function(e){e.exports=require("crypto")},453:function(e){e.exports={type:"object",properties:{cacheDirectory:{oneOf:[{type:"boolean"},{type:"string"}],default:false},cacheIdentifier:{type:"string"},cacheCompression:{type:"boolean",default:true},customize:{type:"string",default:null}},additionalProperties:true}},622:function(e){e.exports=require("path")},671:function(e){e.exports=require("@babel/core")},710:function(e){e.exports=require("loader-utils")},747:function(e){e.exports=require("fs")},761:function(e){e.exports=require("zlib")},841:function(e){e.exports=require("mkdirp")},876:function(e){"use strict";const t=/^[^:]+: /;const n=e=>{if(e instanceof SyntaxError){e.name="SyntaxError";e.message=e.message.replace(t,"");e.hideStack=true}else if(e instanceof TypeError){e.name=null;e.message=e.message.replace(t,"");e.hideStack=true}return e};class LoaderError extends Error{constructor(e){super();const{name:t,message:o,codeFrame:i,hideStack:r}=n(e);this.name="BabelLoaderError";this.message=`${t?`${t}: `:""}${o}\n\n${i}\n`;this.hideStack=r;Error.captureStackTrace(this,this.constructor)}}e.exports=LoaderError},980:function(e){e.exports={name:"babel-loader",version:"8.1.0",description:"babel module loader for webpack",files:["lib"],main:"lib/index.js",engines:{node:">= 6.9"},dependencies:{"find-cache-dir":"^2.1.0","loader-utils":"^1.4.0",mkdirp:"^0.5.3",pify:"^4.0.1","schema-utils":"^2.6.5"},peerDependencies:{"@babel/core":"^7.0.0",webpack:">=2"},devDependencies:{"@babel/cli":"^7.2.0","@babel/core":"^7.2.0","@babel/preset-env":"^7.2.0",ava:"^2.4.0","babel-eslint":"^10.0.1","babel-plugin-istanbul":"^5.1.0","babel-plugin-react-intl":"^4.1.19","cross-env":"^6.0.0",eslint:"^6.5.1","eslint-config-babel":"^9.0.0","eslint-config-prettier":"^6.3.0","eslint-plugin-flowtype":"^4.3.0","eslint-plugin-prettier":"^3.0.0",husky:"^3.0.7","lint-staged":"^9.4.1",nyc:"^14.1.1",prettier:"^1.15.3",react:"^16.0.0","react-intl":"^3.3.2","react-intl-webpack-plugin":"^0.3.0",rimraf:"^3.0.0",webpack:"^4.0.0"},scripts:{clean:"rimraf lib/",build:"babel src/ --out-dir lib/ --copy-files",format:"prettier --write --trailing-comma all 'src/**/*.js' 'test/**/*.test.js' 'test/helpers/*.js' && prettier --write --trailing-comma es5 'scripts/*.js'",lint:"eslint src test",precommit:"lint-staged",prepublish:"yarn run clean && yarn run build",preversion:"yarn run test",test:"yarn run lint && cross-env BABEL_ENV=test yarn run build && yarn run test-only","test-only":"nyc ava"},repository:{type:"git",url:"https://github.com/babel/babel-loader.git"},keywords:["webpack","loader","babel","es6","transpiler","module"],author:"Luis Couto ",license:"MIT",bugs:{url:"https://github.com/babel/babel-loader/issues"},homepage:"https://github.com/babel/babel-loader",nyc:{all:true,include:["src/**/*.js"],reporter:["text","json"],sourceMap:false,instrument:false},ava:{files:["test/**/*.test.js","!test/fixtures/**/*","!test/helpers/**/*"],helpers:["**/helpers/**/*"],sources:["src/**/*.js"]},"lint-staged":{"scripts/*.js":["prettier --trailing-comma es5 --write","git add"],"src/**/*.js":["prettier --trailing-comma all --write","git add"],"test/**/*.test.js":["prettier --trailing-comma all --write","git add"],"test/helpers/*.js":["prettier --trailing-comma all --write","git add"],"package.json":["node ./scripts/yarn-install.js","git add yarn.lock"]}}}}); \ No newline at end of file +module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var o=n[t]={i:t,l:false,exports:{}};e[t].call(o.exports,o,o.exports,__webpack_require__);o.l=true;return o.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(385)}return startup()}({6:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}const o=n(671);const i=n(257);const r=n(876);const a=i(o.transform);e.exports=function(){var e=_asyncToGenerator(function*(e,t){let n;try{n=yield a(e,t)}catch(e){throw e.message&&e.codeFrame?new r(e):e}if(!n)return null;const{ast:o,code:i,map:s,metadata:c,sourceType:l}=n;if(s&&(!s.sourcesContent||!s.sourcesContent.length)){s.sourcesContent=[e]}return{ast:o,code:i,map:s,metadata:c,sourceType:l}});return function(t,n){return e.apply(this,arguments)}}();e.exports.version=o.version},87:function(e){e.exports=require("os")},125:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}const o=n(747);const i=n(87);const r=n(622);const a=n(761);const s=n(417);const c=n(164);const l=n(240);const u=n(257);const p=n(6);let f=null;const d=u(o.readFile);const b=u(o.writeFile);const y=u(a.gunzip);const h=u(a.gzip);const m=u(c);const g=function(){var e=_asyncToGenerator(function*(e,t){const n=yield d(e+(t?".gz":""));const o=t?yield y(n):n;return JSON.parse(o.toString())});return function read(t,n){return e.apply(this,arguments)}}();const w=function(){var e=_asyncToGenerator(function*(e,t,n){const o=JSON.stringify(n);const i=t?yield h(o):o;return yield b(e+(t?".gz":""),i)});return function write(t,n,o){return e.apply(this,arguments)}}();const _=function(e,t,n){const o=s.createHash("md4");const i=JSON.stringify({source:e,options:n,identifier:t});o.update(i);return o.digest("hex")+".json"};const x=function(){var e=_asyncToGenerator(function*(e,t){const{source:n,options:o={},cacheIdentifier:a,cacheDirectory:s,cacheCompression:c}=t;const l=r.join(e,_(n,a,o));try{return yield g(l,c)}catch(e){}const u=typeof s!=="string"&&e!==i.tmpdir();try{yield m(e)}catch(e){if(u){return x(i.tmpdir(),t)}throw e}const f=yield p(n,o);try{yield w(l,c,f)}catch(e){if(u){return x(i.tmpdir(),t)}throw e}return f});return function handleCache(t,n){return e.apply(this,arguments)}}();e.exports=function(){var e=_asyncToGenerator(function*(e){let t;if(typeof e.cacheDirectory==="string"){t=e.cacheDirectory}else{if(f===null){f=l({name:"babel-loader"})||i.tmpdir()}t=f}return yield x(t,e)});return function(t){return e.apply(this,arguments)}}()},134:function(e){e.exports=require("schema-utils")},164:function(e,t,n){var o=n(622);var i=n(747);var r=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,t,n,a){if(typeof t==="function"){n=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}var s=t.mode;var c=t.fs||i;if(s===undefined){s=r}if(!a)a=null;var l=n||function(){};e=o.resolve(e);c.mkdir(e,s,function(n){if(!n){a=a||e;return l(null,a)}switch(n.code){case"ENOENT":if(o.dirname(e)===e)return l(n);mkdirP(o.dirname(e),t,function(n,o){if(n)l(n,o);else mkdirP(e,t,l,o)});break;default:c.stat(e,function(e,t){if(e||!t.isDirectory())l(n,a);else l(null,a)});break}})}mkdirP.sync=function sync(e,t,n){if(!t||typeof t!=="object"){t={mode:t}}var a=t.mode;var s=t.fs||i;if(a===undefined){a=r}if(!n)n=null;e=o.resolve(e);try{s.mkdirSync(e,a);n=n||e}catch(i){switch(i.code){case"ENOENT":n=sync(o.dirname(e),t,n);sync(e,t,n);break;default:var c;try{c=s.statSync(e)}catch(e){throw i}if(!c.isDirectory())throw i;break}}return n}},240:function(e){e.exports=require("find-cache-dir")},257:function(e){"use strict";const t=(e,t)=>(function(...n){const o=t.promiseModule;return new o((o,i)=>{if(t.multiArgs){n.push((...e)=>{if(t.errorFirst){if(e[0]){i(e)}else{e.shift();o(e)}}else{o(e)}})}else if(t.errorFirst){n.push((e,t)=>{if(e){i(e)}else{o(t)}})}else{n.push(o)}e.apply(this,n)})});e.exports=((e,n)=>{n=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},n);const o=typeof e;if(!(e!==null&&(o==="object"||o==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":o}\``)}const i=e=>{const t=t=>typeof t==="string"?e===t:t.test(e);return n.include?n.include.some(t):!n.exclude.some(t)};let r;if(o==="function"){r=function(...o){return n.excludeMain?e(...o):t(e,n).apply(this,o)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const o in e){const a=e[o];r[o]=typeof a==="function"&&i(o)?t(a,n):a}return r})},357:function(e,t,n){"use strict";const o=n(671);e.exports=function injectCaller(e,t){if(!supportsCallerOption())return e;return Object.assign({},e,{caller:Object.assign({name:"babel-loader",target:t,supportsStaticESM:true,supportsDynamicImport:true,supportsTopLevelAwait:true},e.caller)})};let i=undefined;function supportsCallerOption(){if(i===undefined){try{o.loadPartialConfig({caller:undefined,babelrc:false,configFile:false});i=true}catch(e){i=false}}return i}},385:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,o,i,r,a){try{var s=e[r](a);var c=s.value}catch(e){n(e);return}if(s.done){t(c)}else{Promise.resolve(c).then(o,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var r=e.apply(t,n);function _next(e){asyncGeneratorStep(r,o,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,o,i,_next,_throw,"throw",e)}_next(undefined)})}}let o;try{o=n(671)}catch(e){if(e.code==="MODULE_NOT_FOUND"){e.message+="\n babel-loader@8 requires Babel 7.x (the package '@babel/core'). "+"If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@7'."}throw e}if(/^6\./.test(o.version)){throw new Error("\n babel-loader@8 will not work with the '@babel/core@6' bridge package. "+"If you want to use Babel 6.x, install 'babel-loader@7'.")}const{version:i}=n(980);const r=n(125);const a=n(6);const s=n(357);const c=n(453);const{isAbsolute:l}=n(622);const u=n(710);const p=n(134);function subscribe(e,t,n){if(n[e]){n[e](t)}}e.exports=makeLoader();e.exports.custom=makeLoader;function makeLoader(e){const t=e?e(o):undefined;return function(e,n){const o=this.async();loader.call(this,e,n,t).then(e=>o(null,...e),e=>o(e))}}function loader(e,t,n){return _loader.apply(this,arguments)}function _loader(){_loader=_asyncToGenerator(function*(e,t,n){const f=this.resourcePath;let d=u.getOptions(this)||{};p(c,d,{name:"Babel loader"});if(d.customize!=null){if(typeof d.customize!=="string"){throw new Error("Customized loaders must be implemented as standalone modules.")}if(!l(d.customize)){throw new Error("Customized loaders must be passed as absolute paths, since "+"babel-loader has no way to know what they would be relative to.")}if(n){throw new Error("babel-loader's 'customize' option is not available when already "+"using a customized babel-loader wrapper.")}let e=require(d.customize);if(e.__esModule)e=e.default;if(typeof e!=="function"){throw new Error("Custom overrides must be functions.")}n=e(o)}let b;if(n&&n.customOptions){const o=yield n.customOptions.call(this,d,{source:e,map:t});b=o.custom;d=o.loader}if("forceEnv"in d){console.warn("The option `forceEnv` has been removed in favor of `envName` in Babel 7.")}if(typeof d.babelrc==="string"){console.warn("The option `babelrc` should not be set to a string anymore in the babel-loader config. "+"Please update your configuration and set `babelrc` to true or false.\n"+"If you want to specify a specific babel config file to inherit config from "+"please use the `extends` option.\nFor more information about this options see "+"https://babeljs.io/docs/core-packages/#options")}if(Object.prototype.hasOwnProperty.call(d,"sourceMap")&&!Object.prototype.hasOwnProperty.call(d,"sourceMaps")){d=Object.assign({},d,{sourceMaps:d.sourceMap});delete d.sourceMap}const y=Object.assign({},d,{filename:f,inputSourceMap:t||undefined,sourceMaps:d.sourceMaps===undefined?this.sourceMap:d.sourceMaps,sourceFileName:f});delete y.customize;delete y.cacheDirectory;delete y.cacheIdentifier;delete y.cacheCompression;delete y.metadataSubscribers;if(!o.loadPartialConfig){throw new Error(`babel-loader ^8.0.0-beta.3 requires @babel/core@7.0.0-beta.41, but `+`you appear to be using "${o.version}". Either update your `+`@babel/core version, or pin you babel-loader version to 8.0.0-beta.2`)}const h=o.loadPartialConfig(s(y,this.target));if(h){let o=h.options;if(n&&n.config){o=yield n.config.call(this,h,{source:e,map:t,customOptions:b})}if(o.sourceMaps==="inline"){o.sourceMaps=true}const{cacheDirectory:s=null,cacheIdentifier:c=JSON.stringify({options:o,"@babel/core":a.version,"@babel/loader":i}),cacheCompression:l=true,metadataSubscribers:u=[]}=d;let p;if(s){p=yield r({source:e,options:o,transform:a,cacheDirectory:s,cacheIdentifier:c,cacheCompression:l})}else{p=yield a(e,o)}if(typeof h.babelrc==="string"){this.addDependency(h.babelrc)}if(p){if(n&&n.result){p=yield n.result.call(this,p,{source:e,map:t,customOptions:b,config:h,options:o})}const{code:i,map:r,metadata:a}=p;u.forEach(e=>{subscribe(e,a,this)});return[i,r]}}return[e,t]});return _loader.apply(this,arguments)}},417:function(e){e.exports=require("crypto")},453:function(e){e.exports={type:"object",properties:{cacheDirectory:{oneOf:[{type:"boolean"},{type:"string"}],default:false},cacheIdentifier:{type:"string"},cacheCompression:{type:"boolean",default:true},customize:{type:"string",default:null}},additionalProperties:true}},622:function(e){e.exports=require("path")},671:function(e){e.exports=require("@babel/core")},710:function(e){e.exports=require("loader-utils")},747:function(e){e.exports=require("fs")},761:function(e){e.exports=require("zlib")},876:function(e){"use strict";const t=/^[^:]+: /;const n=e=>{if(e instanceof SyntaxError){e.name="SyntaxError";e.message=e.message.replace(t,"");e.hideStack=true}else if(e instanceof TypeError){e.name=null;e.message=e.message.replace(t,"");e.hideStack=true}return e};class LoaderError extends Error{constructor(e){super();const{name:t,message:o,codeFrame:i,hideStack:r}=n(e);this.name="BabelLoaderError";this.message=`${t?`${t}: `:""}${o}\n\n${i}\n`;this.hideStack=r;Error.captureStackTrace(this,this.constructor)}}e.exports=LoaderError},980:function(e){e.exports={name:"babel-loader",version:"8.1.0",description:"babel module loader for webpack",files:["lib"],main:"lib/index.js",engines:{node:">= 6.9"},dependencies:{"find-cache-dir":"^2.1.0","loader-utils":"^1.4.0",mkdirp:"^0.5.3",pify:"^4.0.1","schema-utils":"^2.6.5"},peerDependencies:{"@babel/core":"^7.0.0",webpack:">=2"},devDependencies:{"@babel/cli":"^7.2.0","@babel/core":"^7.2.0","@babel/preset-env":"^7.2.0",ava:"^2.4.0","babel-eslint":"^10.0.1","babel-plugin-istanbul":"^5.1.0","babel-plugin-react-intl":"^4.1.19","cross-env":"^6.0.0",eslint:"^6.5.1","eslint-config-babel":"^9.0.0","eslint-config-prettier":"^6.3.0","eslint-plugin-flowtype":"^4.3.0","eslint-plugin-prettier":"^3.0.0",husky:"^3.0.7","lint-staged":"^9.4.1",nyc:"^14.1.1",prettier:"^1.15.3",react:"^16.0.0","react-intl":"^3.3.2","react-intl-webpack-plugin":"^0.3.0",rimraf:"^3.0.0",webpack:"^4.0.0"},scripts:{clean:"rimraf lib/",build:"babel src/ --out-dir lib/ --copy-files",format:"prettier --write --trailing-comma all 'src/**/*.js' 'test/**/*.test.js' 'test/helpers/*.js' && prettier --write --trailing-comma es5 'scripts/*.js'",lint:"eslint src test",precommit:"lint-staged",prepublish:"yarn run clean && yarn run build",preversion:"yarn run test",test:"yarn run lint && cross-env BABEL_ENV=test yarn run build && yarn run test-only","test-only":"nyc ava"},repository:{type:"git",url:"https://github.com/babel/babel-loader.git"},keywords:["webpack","loader","babel","es6","transpiler","module"],author:"Luis Couto ",license:"MIT",bugs:{url:"https://github.com/babel/babel-loader/issues"},homepage:"https://github.com/babel/babel-loader",nyc:{all:true,include:["src/**/*.js"],reporter:["text","json"],sourceMap:false,instrument:false},ava:{files:["test/**/*.test.js","!test/fixtures/**/*","!test/helpers/**/*"],helpers:["**/helpers/**/*"],sources:["src/**/*.js"]},"lint-staged":{"scripts/*.js":["prettier --trailing-comma es5 --write","git add"],"src/**/*.js":["prettier --trailing-comma all --write","git add"],"test/**/*.test.js":["prettier --trailing-comma all --write","git add"],"test/helpers/*.js":["prettier --trailing-comma all --write","git add"],"package.json":["node ./scripts/yarn-install.js","git add yarn.lock"]}}}}); \ No newline at end of file diff --git a/packages/next/compiled/cache-loader/cjs.js b/packages/next/compiled/cache-loader/cjs.js index a3a76ea67b097..079f526b6734e 100644 --- a/packages/next/compiled/cache-loader/cjs.js +++ b/packages/next/compiled/cache-loader/cjs.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var r=n[t]={i:t,l:false,exports:{}};e[t].call(r.exports,r,r.exports,__webpack_require__);r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(593)}return startup()}({87:function(e){e.exports=require("os")},134:function(e){e.exports=require("schema-utils")},240:function(e){e.exports=require("find-cache-dir")},343:function(e){e.exports=require("neo-async")},417:function(e){e.exports=require("crypto")},484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loader;t.pitch=pitch;t.raw=void 0;const r=n(747);const i=n(87);const s=n(622);const o=n(343);const c=n(417);const a=n(841);const u=n(240);const d=n(786);const{getOptions:l}=n(710);const p=n(134);const f=n(573);const h=process.env.NODE_ENV||"development";const m=n(794);const b={cacheContext:"",cacheDirectory:u({name:"cache-loader"})||i.tmpdir(),cacheIdentifier:`cache-loader:${f.version} ${h}`,cacheKey:cacheKey,compare:compare,precision:0,read:read,readOnly:false,write:write};function pathWithCacheContext(e,t){if(!e){return t}if(t.includes(e)){return t.split("!").map(t=>s.relative(e,t)).join("!")}return t.split("!").map(t=>s.resolve(e,t)).join("!")}function roundMs(e,t){return Math.floor(e/t)*t}function loader(...e){const t=Object.assign({},b,l(this));p(m,t,{name:"Cache Loader",baseDataPath:"options"});const{readOnly:n,write:i}=t;if(n){this.callback(null,...e);return}const s=this.async();const{data:c}=this;const a=this.getDependencies().concat(this.loaders.map(e=>e.path));const u=this.getContextDependencies();let d=true;const f=this.fs||r;const h=(e,n)=>{f.stat(e,(r,i)=>{if(r){n(r);return}const s=i.mtime.getTime();if(s/1e3>=Math.floor(c.startTime/1e3)){d=false}n(null,{path:pathWithCacheContext(t.cacheContext,e),mtime:s})})};o.parallel([e=>o.mapLimit(a,20,h,e),e=>o.mapLimit(u,20,h,e)],(n,r)=>{if(n){s(null,...e);return}if(!d){s(null,...e);return}const[o,a]=r;i(c.cacheKey,{remainingRequest:pathWithCacheContext(t.cacheContext,c.remainingRequest),dependencies:o,contextDependencies:a,result:e},()=>{s(null,...e)})})}function pitch(e,t,n){const i=Object.assign({},b,l(this));p(m,i,{name:"Cache Loader (Pitch)",baseDataPath:"options"});const{cacheContext:s,cacheKey:c,compare:a,read:u,readOnly:d,precision:f}=i;const h=this.async();const y=n;y.remainingRequest=e;y.cacheKey=c(i,y.remainingRequest);u(y.cacheKey,(e,t)=>{if(e){h();return}if(pathWithCacheContext(i.cacheContext,t.remainingRequest)!==y.remainingRequest){h();return}const n=this.fs||r;o.each(t.dependencies.concat(t.contextDependencies),(e,t)=>{const r={...e,path:pathWithCacheContext(i.cacheContext,e.path)};n.stat(r.path,(n,i)=>{if(n){t(n);return}if(d){t();return}const s=i;const o=r;if(f>1){["atime","mtime","ctime","birthtime"].forEach(e=>{const t=`${e}Ms`;const n=roundMs(i[t],f);s[t]=n;s[e]=new Date(n)});o.mtime=roundMs(e.mtime,f)}if(a(s,o)!==true){t(true);return}t()})},e=>{if(e){y.startTime=Date.now();h();return}t.dependencies.forEach(e=>this.addDependency(pathWithCacheContext(s,e.path)));t.contextDependencies.forEach(e=>this.addContextDependency(pathWithCacheContext(s,e.path)));h(null,...t.result)})})}function digest(e){return c.createHash("md5").update(e).digest("hex")}const y=new Set;function write(e,t,n){const i=s.dirname(e);const o=d.stringify(t);if(y.has(i)){r.writeFile(e,o,"utf-8",n)}else{a(i,t=>{if(t){n(t);return}y.add(i);r.writeFile(e,o,"utf-8",n)})}}function read(e,t){r.readFile(e,"utf-8",(e,n)=>{if(e){t(e);return}try{const e=d.parse(n);t(null,e)}catch(e){t(e)}})}function cacheKey(e,t){const{cacheIdentifier:n,cacheDirectory:r}=e;const i=digest(`${n}\n${t}`);return s.join(r,`${i}.json`)}function compare(e,t){return e.mtime.getTime()===t.mtime}const g=true;t.raw=g},573:function(e){e.exports={name:"cache-loader",version:"4.1.0",description:"Caches the result of following loaders on disk.",license:"MIT",repository:"webpack-contrib/cache-loader",author:"Tobias Koppers @sokra",homepage:"https://github.com/webpack-contrib/cache-loader",bugs:"https://github.com/webpack-contrib/cache-loader/issues",main:"dist/cjs.js",engines:{node:">= 8.9.0"},scripts:{start:"npm run build -- -w",prebuild:"npm run clean",build:'cross-env NODE_ENV=production babel src -d dist --ignore "src/**/*.test.js" --copy-files',clean:"del-cli dist",commitlint:"commitlint --from=master","lint:prettier":'prettier "{**/*,*}.{js,json,md,yml,css}" --list-different',"lint:js":"eslint --cache src test",lint:'npm-run-all -l -p "lint:**"',prepare:"npm run build",release:"standard-version",security:"npm audit","test:only":"cross-env NODE_ENV=test jest","test:watch":"cross-env NODE_ENV=test jest --watch","test:coverage":'cross-env NODE_ENV=test jest --collectCoverageFrom="src/**/*.js" --coverage',pretest:"npm run lint",test:"cross-env NODE_ENV=test npm run test:coverage",defaults:"webpack-defaults"},files:["dist"],peerDependencies:{webpack:"^4.0.0"},dependencies:{"buffer-json":"^2.0.0","find-cache-dir":"^3.0.0","loader-utils":"^1.2.3",mkdirp:"^0.5.1","neo-async":"^2.6.1","schema-utils":"^2.0.0"},devDependencies:{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@webpack-contrib/defaults":"^5.0.2","@webpack-contrib/eslint-config-webpack":"^3.0.0","babel-jest":"^24.8.0","babel-loader":"^8.0.6","commitlint-azure-pipelines-cli":"^1.0.2","cross-env":"^5.2.0",del:"^5.0.0","del-cli":"^2.0.0",eslint:"^6.0.1","eslint-config-prettier":"^6.0.0","eslint-plugin-import":"^2.18.0","file-loader":"^4.1.0",husky:"^3.0.0",jest:"^24.8.0","jest-junit":"^6.4.0","lint-staged":"^9.2.0","memory-fs":"^0.4.1","normalize-path":"^3.0.0","npm-run-all":"^4.1.5",prettier:"^1.18.2","standard-version":"^6.0.1",uuid:"^3.3.2",webpack:"^4.36.1","webpack-cli":"^3.3.6"},keywords:["webpack"]}},593:function(e,t,n){"use strict";e.exports=n(484)},622:function(e){e.exports=require("path")},710:function(e){e.exports=require("loader-utils")},747:function(e){e.exports=require("fs")},786:function(e){function stringify(e,t){return JSON.stringify(e,replacer,t)}function parse(e){return JSON.parse(e,reviver)}function replacer(e,t){if(isBufferLike(t)){if(isArray(t.data)){if(t.data.length>0){t.data="base64:"+Buffer.from(t.data).toString("base64")}else{t.data=""}}}return t}function reviver(e,t){if(isBufferLike(t)){if(isArray(t.data)){return Buffer.from(t.data)}else if(isString(t.data)){if(t.data.startsWith("base64:")){return Buffer.from(t.data.slice("base64:".length),"base64")}return Buffer.from(t.data)}}return t}function isBufferLike(e){return isObject(e)&&e.type==="Buffer"&&(isArray(e.data)||isString(e.data))}function isArray(e){return Array.isArray(e)}function isString(e){return typeof e==="string"}function isObject(e){return typeof e==="object"&&e!==null}e.exports={stringify:stringify,parse:parse,replacer:replacer,reviver:reviver}},794:function(e){e.exports={type:"object",properties:{cacheContext:{description:"The default cache context in order to generate the cache relatively to a path. By default it will use absolute paths.",type:"string"},cacheKey:{description:"Allows you to override default cache key generator.",instanceof:"Function"},cacheIdentifier:{description:"Provide a cache directory where cache items should be stored (used for default read/write implementation).",type:"string"},cacheDirectory:{description:"Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation).",type:"string"},compare:{description:"Allows you to override default comparison function between the cached dependency and the one is being read. Return true to use the cached resource.",instanceof:"Function"},precision:{description:"Round mtime by this number of milliseconds both for stats and deps before passing those params to the comparing function.",type:"number"},read:{description:"Allows you to override default read cache data from file.",instanceof:"Function"},readOnly:{description:"Allows you to override default value and make the cache read only (useful for some environments where you don't want the cache to be updated, only read from it).",type:"boolean"},write:{description:"Allows you to override default write cache data to file (e.g. Redis, memcached).",instanceof:"Function"}},additionalProperties:false}},841:function(e){e.exports=require("mkdirp")}}); \ No newline at end of file +module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(593)}return startup()}({87:function(e){e.exports=require("os")},134:function(e){e.exports=require("schema-utils")},164:function(e,t,r){var n=r(622);var i=r(747);var s=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,t,r,c){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}var o=t.mode;var a=t.fs||i;if(o===undefined){o=s}if(!c)c=null;var u=r||function(){};e=n.resolve(e);a.mkdir(e,o,function(r){if(!r){c=c||e;return u(null,c)}switch(r.code){case"ENOENT":if(n.dirname(e)===e)return u(r);mkdirP(n.dirname(e),t,function(r,n){if(r)u(r,n);else mkdirP(e,t,u,n)});break;default:a.stat(e,function(e,t){if(e||!t.isDirectory())u(r,c);else u(null,c)});break}})}mkdirP.sync=function sync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}var c=t.mode;var o=t.fs||i;if(c===undefined){c=s}if(!r)r=null;e=n.resolve(e);try{o.mkdirSync(e,c);r=r||e}catch(i){switch(i.code){case"ENOENT":r=sync(n.dirname(e),t,r);sync(e,t,r);break;default:var a;try{a=o.statSync(e)}catch(e){throw i}if(!a.isDirectory())throw i;break}}return r}},240:function(e){e.exports=require("find-cache-dir")},343:function(e){e.exports=require("neo-async")},417:function(e){e.exports=require("crypto")},484:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loader;t.pitch=pitch;t.raw=void 0;const n=r(747);const i=r(87);const s=r(622);const c=r(343);const o=r(417);const a=r(164);const u=r(240);const d=r(786);const{getOptions:l}=r(710);const f=r(134);const p=r(573);const h=process.env.NODE_ENV||"development";const m=r(794);const y={cacheContext:"",cacheDirectory:u({name:"cache-loader"})||i.tmpdir(),cacheIdentifier:`cache-loader:${p.version} ${h}`,cacheKey:cacheKey,compare:compare,precision:0,read:read,readOnly:false,write:write};function pathWithCacheContext(e,t){if(!e){return t}if(t.includes(e)){return t.split("!").map(t=>s.relative(e,t)).join("!")}return t.split("!").map(t=>s.resolve(e,t)).join("!")}function roundMs(e,t){return Math.floor(e/t)*t}function loader(...e){const t=Object.assign({},y,l(this));f(m,t,{name:"Cache Loader",baseDataPath:"options"});const{readOnly:r,write:i}=t;if(r){this.callback(null,...e);return}const s=this.async();const{data:o}=this;const a=this.getDependencies().concat(this.loaders.map(e=>e.path));const u=this.getContextDependencies();let d=true;const p=this.fs||n;const h=(e,r)=>{p.stat(e,(n,i)=>{if(n){r(n);return}const s=i.mtime.getTime();if(s/1e3>=Math.floor(o.startTime/1e3)){d=false}r(null,{path:pathWithCacheContext(t.cacheContext,e),mtime:s})})};c.parallel([e=>c.mapLimit(a,20,h,e),e=>c.mapLimit(u,20,h,e)],(r,n)=>{if(r){s(null,...e);return}if(!d){s(null,...e);return}const[c,a]=n;i(o.cacheKey,{remainingRequest:pathWithCacheContext(t.cacheContext,o.remainingRequest),dependencies:c,contextDependencies:a,result:e},()=>{s(null,...e)})})}function pitch(e,t,r){const i=Object.assign({},y,l(this));f(m,i,{name:"Cache Loader (Pitch)",baseDataPath:"options"});const{cacheContext:s,cacheKey:o,compare:a,read:u,readOnly:d,precision:p}=i;const h=this.async();const b=r;b.remainingRequest=e;b.cacheKey=o(i,b.remainingRequest);u(b.cacheKey,(e,t)=>{if(e){h();return}if(pathWithCacheContext(i.cacheContext,t.remainingRequest)!==b.remainingRequest){h();return}const r=this.fs||n;c.each(t.dependencies.concat(t.contextDependencies),(e,t)=>{const n={...e,path:pathWithCacheContext(i.cacheContext,e.path)};r.stat(n.path,(r,i)=>{if(r){t(r);return}if(d){t();return}const s=i;const c=n;if(p>1){["atime","mtime","ctime","birthtime"].forEach(e=>{const t=`${e}Ms`;const r=roundMs(i[t],p);s[t]=r;s[e]=new Date(r)});c.mtime=roundMs(e.mtime,p)}if(a(s,c)!==true){t(true);return}t()})},e=>{if(e){b.startTime=Date.now();h();return}t.dependencies.forEach(e=>this.addDependency(pathWithCacheContext(s,e.path)));t.contextDependencies.forEach(e=>this.addContextDependency(pathWithCacheContext(s,e.path)));h(null,...t.result)})})}function digest(e){return o.createHash("md5").update(e).digest("hex")}const b=new Set;function write(e,t,r){const i=s.dirname(e);const c=d.stringify(t);if(b.has(i)){n.writeFile(e,c,"utf-8",r)}else{a(i,t=>{if(t){r(t);return}b.add(i);n.writeFile(e,c,"utf-8",r)})}}function read(e,t){n.readFile(e,"utf-8",(e,r)=>{if(e){t(e);return}try{const e=d.parse(r);t(null,e)}catch(e){t(e)}})}function cacheKey(e,t){const{cacheIdentifier:r,cacheDirectory:n}=e;const i=digest(`${r}\n${t}`);return s.join(n,`${i}.json`)}function compare(e,t){return e.mtime.getTime()===t.mtime}const g=true;t.raw=g},573:function(e){e.exports={name:"cache-loader",version:"4.1.0",description:"Caches the result of following loaders on disk.",license:"MIT",repository:"webpack-contrib/cache-loader",author:"Tobias Koppers @sokra",homepage:"https://github.com/webpack-contrib/cache-loader",bugs:"https://github.com/webpack-contrib/cache-loader/issues",main:"dist/cjs.js",engines:{node:">= 8.9.0"},scripts:{start:"npm run build -- -w",prebuild:"npm run clean",build:'cross-env NODE_ENV=production babel src -d dist --ignore "src/**/*.test.js" --copy-files',clean:"del-cli dist",commitlint:"commitlint --from=master","lint:prettier":'prettier "{**/*,*}.{js,json,md,yml,css}" --list-different',"lint:js":"eslint --cache src test",lint:'npm-run-all -l -p "lint:**"',prepare:"npm run build",release:"standard-version",security:"npm audit","test:only":"cross-env NODE_ENV=test jest","test:watch":"cross-env NODE_ENV=test jest --watch","test:coverage":'cross-env NODE_ENV=test jest --collectCoverageFrom="src/**/*.js" --coverage',pretest:"npm run lint",test:"cross-env NODE_ENV=test npm run test:coverage",defaults:"webpack-defaults"},files:["dist"],peerDependencies:{webpack:"^4.0.0"},dependencies:{"buffer-json":"^2.0.0","find-cache-dir":"^3.0.0","loader-utils":"^1.2.3",mkdirp:"^0.5.1","neo-async":"^2.6.1","schema-utils":"^2.0.0"},devDependencies:{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@webpack-contrib/defaults":"^5.0.2","@webpack-contrib/eslint-config-webpack":"^3.0.0","babel-jest":"^24.8.0","babel-loader":"^8.0.6","commitlint-azure-pipelines-cli":"^1.0.2","cross-env":"^5.2.0",del:"^5.0.0","del-cli":"^2.0.0",eslint:"^6.0.1","eslint-config-prettier":"^6.0.0","eslint-plugin-import":"^2.18.0","file-loader":"^4.1.0",husky:"^3.0.0",jest:"^24.8.0","jest-junit":"^6.4.0","lint-staged":"^9.2.0","memory-fs":"^0.4.1","normalize-path":"^3.0.0","npm-run-all":"^4.1.5",prettier:"^1.18.2","standard-version":"^6.0.1",uuid:"^3.3.2",webpack:"^4.36.1","webpack-cli":"^3.3.6"},keywords:["webpack"]}},593:function(e,t,r){"use strict";e.exports=r(484)},622:function(e){e.exports=require("path")},710:function(e){e.exports=require("loader-utils")},747:function(e){e.exports=require("fs")},786:function(e){function stringify(e,t){return JSON.stringify(e,replacer,t)}function parse(e){return JSON.parse(e,reviver)}function replacer(e,t){if(isBufferLike(t)){if(isArray(t.data)){if(t.data.length>0){t.data="base64:"+Buffer.from(t.data).toString("base64")}else{t.data=""}}}return t}function reviver(e,t){if(isBufferLike(t)){if(isArray(t.data)){return Buffer.from(t.data)}else if(isString(t.data)){if(t.data.startsWith("base64:")){return Buffer.from(t.data.slice("base64:".length),"base64")}return Buffer.from(t.data)}}return t}function isBufferLike(e){return isObject(e)&&e.type==="Buffer"&&(isArray(e.data)||isString(e.data))}function isArray(e){return Array.isArray(e)}function isString(e){return typeof e==="string"}function isObject(e){return typeof e==="object"&&e!==null}e.exports={stringify:stringify,parse:parse,replacer:replacer,reviver:reviver}},794:function(e){e.exports={type:"object",properties:{cacheContext:{description:"The default cache context in order to generate the cache relatively to a path. By default it will use absolute paths.",type:"string"},cacheKey:{description:"Allows you to override default cache key generator.",instanceof:"Function"},cacheIdentifier:{description:"Provide a cache directory where cache items should be stored (used for default read/write implementation).",type:"string"},cacheDirectory:{description:"Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation).",type:"string"},compare:{description:"Allows you to override default comparison function between the cached dependency and the one is being read. Return true to use the cached resource.",instanceof:"Function"},precision:{description:"Round mtime by this number of milliseconds both for stats and deps before passing those params to the comparing function.",type:"number"},read:{description:"Allows you to override default read cache data from file.",instanceof:"Function"},readOnly:{description:"Allows you to override default value and make the cache read only (useful for some environments where you don't want the cache to be updated, only read from it).",type:"boolean"},write:{description:"Allows you to override default write cache data to file (e.g. Redis, memcached).",instanceof:"Function"}},additionalProperties:false}}}); \ No newline at end of file diff --git a/packages/next/package.json b/packages/next/package.json index ecdabc067fbdd..632722a2380f5 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -96,7 +96,6 @@ "find-cache-dir": "3.3.1", "jest-worker": "24.9.0", "loader-utils": "2.0.0", - "mkdirp": "0.5.3", "native-url": "0.3.4", "neo-async": "2.6.1", "node-html-parser": "^1.2.19", diff --git a/packages/next/taskfile.js b/packages/next/taskfile.js index ba1b5fbcbc7f1..1cb6d106555a9 100644 --- a/packages/next/taskfile.js +++ b/packages/next/taskfile.js @@ -44,8 +44,6 @@ const externals = { 'loader-runner': 'loader-runner', // dependents: thread-loader, babel-loader 'loader-utils': 'loader-utils', - // dependents: babel-loader - mkdirp: 'mkdirp', // dependents: thread-loader, cache-loader 'neo-async': 'neo-async', // dependents: cache-loader, style-loader, file-loader diff --git a/yarn.lock b/yarn.lock index f6bbb8bb1b4b6..a48838ecc8ab7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11567,12 +11567,6 @@ mkdirp-classic@^0.5.2: resolved "https://registry.yarnpkg.com/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz#fa10c9115cc6d8865be221ba47ee9bed78601113" integrity sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A== -mkdirp@0.5.3: - version "0.5.3" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.3.tgz#5a514b7179259287952881e94410ec5465659f8c" - dependencies: - minimist "^1.2.5" - "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@^0.5.3, mkdirp@^0.5.4, mkdirp@~0.5.0, mkdirp@~0.5.1: version "0.5.5" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def"