Socket
Socket
Sign inDemoInstall

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 3.0.1 to 3.1.0

22

dist/options.json

@@ -6,3 +6,5 @@ {

"type": "string",
"minLength": 1
"minLength": 1,
"description": "Allows to use a string to describe an import.",
"link": "https://webpack.js.org/loaders/imports-loader/#string"
},

@@ -12,2 +14,4 @@ "ImportItemObject": {

"additionalProperties": false,
"description": "Allows to use an object to describe an import.",
"link": "https://webpack.js.org/loaders/imports-loader/#object",
"properties": {

@@ -52,5 +56,8 @@ "syntax": {

"type": "object",
"description": "Options for imports-loader",
"properties": {
"type": {
"enum": ["module", "commonjs"]
"enum": ["module", "commonjs"],
"description": "Format of generated exports.",
"link": "https://github.com/webpack-contrib/imports-loader#type"
},

@@ -60,4 +67,3 @@ "imports": {

{
"type": "string",
"minLength": 1
"$ref": "#/definitions/ImportItemString"
},

@@ -112,7 +118,11 @@ {

}
]
],
"description": "Closes the module code in a function with a given 'thisArg' and 'args'",
"link": "https://webpack.js.org/loaders/imports-loader/#wrapper"
},
"additionalCode": {
"type": "string",
"minLength": 1
"minLength": 1,
"description": "Adds custom code as a preamble before the module's code.",
"link": "https://webpack.js.org/loaders/imports-loader/#additionalcode"
}

@@ -119,0 +129,0 @@ },

{
"name": "imports-loader",
"version": "3.0.1",
"version": "3.1.0",
"description": "imports loader module for webpack",

@@ -5,0 +5,0 @@ "license": "MIT",

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