exports-loader
Advanced tools
Comparing version 0.6.4 to 0.7.0
@@ -14,2 +14,6 @@ /* | ||
var keys = Object.keys(query); | ||
// apply name interpolation i.e. substitute strings like [name] or [ext] | ||
for (var i = 0; i < keys.length; i++) { | ||
keys[i] = loaderUtils.interpolateName(this, keys[i], {}); | ||
}; | ||
if(keys.length == 1 && typeof query[keys[0]] == "boolean") { | ||
@@ -16,0 +20,0 @@ exports.push("module.exports = " + keys[0] + ";"); |
{ | ||
"name": "exports-loader", | ||
"version": "0.6.4", | ||
"author": "Tobias Koppers @sokra", | ||
"description": "exports loader module for webpack", | ||
"dependencies": { | ||
"loader-utils": "^1.0.2", | ||
"source-map": "0.5.x" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:webpack/exports-loader.git" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/mit-license.php" | ||
} | ||
] | ||
"name": "exports-loader", | ||
"version": "0.7.0", | ||
"author": "Tobias Koppers @sokra", | ||
"description": "exports loader module for webpack", | ||
"license": "MIT", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js" | ||
], | ||
"engines": { | ||
"node": ">= 4" | ||
}, | ||
"scripts": { | ||
"release": "standard-version" | ||
}, | ||
"dependencies": { | ||
"loader-utils": "^1.1.0", | ||
"source-map": "0.5.0" | ||
}, | ||
"devDependencies": { | ||
"standard-version": "^4.0.0" | ||
}, | ||
"repository": "https://github.com/webpack-contrib/exports-loader.git", | ||
"bugs": "https://github.com/webpack-contrib/exports-loader/issues", | ||
"homepage": "https://webpack.js.org/loaders/exports-loader" | ||
} |
@@ -21,7 +21,7 @@ [![npm][npm]][npm-url] | ||
<h2 align="center">Usage</h2> | ||
<h2 align="center"><a href="https://webpack.js.org/concepts/loaders">Usage</a></h2> | ||
``` javascript | ||
require("exports-loader?file,parse=helpers.parse!./file.js"); | ||
// adds below code the the file's source: | ||
// adds below code to the file's source: | ||
// exports["file"] = file; | ||
@@ -31,8 +31,10 @@ // exports["parse"] = helpers.parse; | ||
require("exports-loader?file!./file.js"); | ||
// adds below code the the file's source: | ||
// adds below code to the file's source: | ||
// module.exports = file; | ||
require("exports-loader?[name]!./file.js"); | ||
// adds below code to the file's source: | ||
// module.exports = file; | ||
``` | ||
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html) | ||
<h2 align="center">Maintainers</h2> | ||
@@ -39,0 +41,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
6134
40
1
80
1
+ Addedsource-map@0.5.0(transitive)
- Removedsource-map@0.5.7(transitive)
Updatedloader-utils@^1.1.0
Updatedsource-map@0.5.0