Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imports-loader

Package Overview
Dependencies
Maintainers
10
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imports-loader - npm Package Compare versions

Comparing version 0.7.1 to 0.8.0

CHANGELOG.md

2

index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc