updated npm modules
This commit is contained in:
12
node_modules/babel-loader/lib/index.js
generated
vendored
12
node_modules/babel-loader/lib/index.js
generated
vendored
@@ -22,7 +22,9 @@ if (/^6\./.test(babel.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 pkg = require("../package.json");
|
||||
const {
|
||||
version
|
||||
} = require("../package.json");
|
||||
|
||||
const cache = require("./cache");
|
||||
|
||||
@@ -30,7 +32,9 @@ const transform = require("./transform");
|
||||
|
||||
const injectCaller = require("./injectCaller");
|
||||
|
||||
const path = require("path");
|
||||
const {
|
||||
isAbsolute
|
||||
} = require("path");
|
||||
|
||||
const loaderUtils = require("loader-utils");
|
||||
|
||||
@@ -66,7 +70,7 @@ function _loader() {
|
||||
throw new Error("Customized loaders must be implemented as standalone modules.");
|
||||
}
|
||||
|
||||
if (!path.isAbsolute(loaderOptions.customize)) {
|
||||
if (!isAbsolute(loaderOptions.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.");
|
||||
}
|
||||
|
||||
@@ -165,7 +169,7 @@ function _loader() {
|
||||
cacheIdentifier = JSON.stringify({
|
||||
options,
|
||||
"@babel/core": transform.version,
|
||||
"@babel/loader": pkg.version
|
||||
"@babel/loader": version
|
||||
}),
|
||||
cacheCompression = true,
|
||||
metadataSubscribers = []
|
||||
|
||||
Reference in New Issue
Block a user