gatsby-module-loader
Advanced tools
Comparing version 2.0.0-alpha.7b47e00d to 2.0.0-alpha.84bd71b4
13
index.js
@@ -1,9 +0,3 @@ | ||
"use strict"; | ||
var _JSON$stringify = require("@babel/runtime/core-js/json/stringify"); | ||
var _stringify = require("babel-runtime/core-js/json/stringify"); | ||
var _stringify2 = _interopRequireDefault(_stringify); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/* | ||
@@ -18,5 +12,5 @@ Based on Tobias Koppers @sokra bundle-loader | ||
module.exports = function () {}; | ||
module.exports.pitch = function (remainingRequest) { | ||
this.cacheable && this.cacheable(); | ||
var query = loaderUtils.getOptions(this) || {}; | ||
@@ -33,5 +27,4 @@ var chunkName = ""; | ||
var request = loaderUtils.stringifyRequest(this, "!!" + remainingRequest); | ||
var chunkComment = chunkName && "/* webpackChunkName: " + (0, _stringify2.default)(chunkName) + " */ "; | ||
var chunkComment = chunkName && "/* webpackChunkName: " + _JSON$stringify(chunkName) + " */ "; | ||
return "module.exports = () => import(" + chunkComment + request + ")"; | ||
}; |
{ | ||
"name": "gatsby-module-loader", | ||
"version": "2.0.0-alpha.7b47e00d", | ||
"description": "_Based on https://github.com/webpack/bundle-loader and https://github.com/NekR/async-module-loader_", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "babel src --out-dir . --ignore __tests__", | ||
"watch": "babel -w src --out-dir . --ignore __tests__", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"prepublish": "cross-env NODE_ENV=production npm run build" | ||
"version": "2.0.0-alpha.84bd71b4", | ||
"author": "Kyle Mathews <mathews.kyle@gmail.com>", | ||
"bugs": { | ||
"url": "https://github.com/gatsbyjs/gatsby/issues" | ||
}, | ||
"author": "Kyle Mathews <mathews.kyle@gmail.com>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"babel-runtime": "^6.26.0", | ||
"@babel/runtime": "^7.0.0-beta.42", | ||
"common-tags": "^1.4.0", | ||
@@ -21,5 +16,16 @@ "dedent": "^0.7.0", | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"cross-env": "^5.0.5" | ||
"@babel/cli": "^7.0.0-beta.42", | ||
"@babel/core": "^7.0.0-beta.42", | ||
"cross-env": "^5.1.4" | ||
}, | ||
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-module-loader#readme", | ||
"license": "MIT", | ||
"main": "index.js", | ||
"repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-module-loader", | ||
"scripts": { | ||
"build": "babel src --out-dir . --ignore __tests__", | ||
"prepublish": "cross-env NODE_ENV=production npm run build", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"watch": "babel -w src --out-dir . --ignore __tests__" | ||
} | ||
} |
@@ -1,4 +0,3 @@ | ||
"use strict"; | ||
module.exports = function () {}; | ||
module.exports = function () {}; | ||
module.exports.prototype.apply = function (compiler) { | ||
@@ -9,3 +8,2 @@ compiler.plugin("compilation", function (compilation) { | ||
var buf = []; | ||
buf.push(""); | ||
@@ -15,3 +13,2 @@ buf.push(""); | ||
buf.push(this.requireFn + ".s = installedChunks;"); | ||
return source + this.asString(buf); | ||
@@ -18,0 +15,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
2784
1
3
36
+ Added@babel/runtime@7.26.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
- Removedbabel-runtime@^6.26.0
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.11.1(transitive)