imports-loader
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -35,3 +35,3 @@ /* | ||
} else if(index < names.length-1) { | ||
imports.push(expr + " = {};"); | ||
imports.push(expr + " = " + expr + " || {};"); | ||
} else { | ||
@@ -38,0 +38,0 @@ imports.push(expr + " = " + value + ";"); |
{ | ||
"name": "imports-loader", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "imports loader module for webpack", | ||
"author": "Tobias Koppers @sokra", | ||
"description": "imports loader module for webpack", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">= 4" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"scripts": { | ||
"test": "mocha", | ||
"travis:test": "npm run -s test" | ||
"travis:test": "npm run -s test", | ||
"release": "standard-version" | ||
}, | ||
"dependencies": { | ||
"loader-utils": "^1.0.2", | ||
"source-map": "^0.5.6" | ||
"source-map": "^0.6.1" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^3.1.2", | ||
"should": "^11.1.1" | ||
"should": "^11.1.1", | ||
"standard-version": "^4.3.0" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/webpack/imports-loader.git" | ||
} | ||
"homepage": "https://github.com/webpack-contrib/imports-loader", | ||
"repository": "https://github.com/webpack-contrib/imports-loader", | ||
"bugs": "https://github.com/webpack-contrib/imports-loader/issues" | ||
} |
@@ -24,3 +24,3 @@ [![npm][npm]][npm-url] | ||
<h2 align="center">Usage</h2> | ||
<h2 align="center"><a href="https://webpack.js.org/concepts/loaders">Usage</a></h2> | ||
@@ -69,6 +69,6 @@ Given you have this file `example.js` | ||
module: { | ||
loaders: [ | ||
rules: [ | ||
{ | ||
test: require.resolve("some-module"), | ||
loader: "imports-loader?this=>window" | ||
use: "imports-loader?this=>window" | ||
} | ||
@@ -80,4 +80,2 @@ ] | ||
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html) | ||
<h2 align="center">Typical Use Cases</h2> | ||
@@ -84,0 +82,0 @@ |
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
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 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
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
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 bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
8428
5
1
3
145
1
+ Addedsource-map@0.6.1(transitive)
- Removedsource-map@0.5.7(transitive)
Updatedsource-map@^0.6.1