Socket
Socket
Sign inDemoInstall

imports-loader

Package Overview
Dependencies
Maintainers
3
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 4.0.0 to 4.0.1

2

dist/index.js

@@ -106,3 +106,3 @@ "use strict";

});
callback(null, `${importsCode}\n${content}\n${codeAfterModule}`, generator.toString());
callback(null, `${importsCode}\n${content}\n${codeAfterModule}`, generator.toJSON());
return;

@@ -109,0 +109,0 @@ }

{
"name": "imports-loader",
"version": "4.0.0",
"version": "4.0.1",
"description": "imports loader module for webpack",

@@ -47,24 +47,24 @@ "license": "MIT",

"devDependencies": {
"@babel/cli": "^7.17.10",
"@babel/core": "^7.17.10",
"@babel/preset-env": "^7.17.10",
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@babel/cli": "^7.18.9",
"@babel/core": "^7.18.9",
"@babel/preset-env": "^7.18.9",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^28.1.0",
"babel-jest": "^28.1.3",
"babel-loader": "^8.2.5",
"cross-env": "^7.0.3",
"del": "^6.0.0",
"del": "^6.1.1",
"del-cli": "^4.0.1",
"eslint": "^8.15.0",
"eslint": "^8.21.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"husky": "^8.0.1",
"jest": "^28.1.0",
"lint-staged": "^12.4.1",
"memfs": "^3.4.1",
"jest": "^28.1.3",
"lint-staged": "^12.5.0",
"memfs": "^3.4.7",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2",
"prettier": "^2.7.1",
"standard-version": "^9.3.0",
"webpack": "^5.72.1"
"webpack": "^5.74.0"
},

@@ -71,0 +71,0 @@ "keywords": [

@@ -10,3 +10,2 @@ <div align="center">

[![node][node]][node-url]
[![deps][deps]][deps-url]
[![tests][tests]][tests-url]

@@ -26,5 +25,9 @@ [![cover][cover]][cover-url]

> ⚠ By default loader generate ES module named syntax.
> **Warning**
>
> By default loader generate ES module named syntax.
> ⚠ Be careful, existing imports (`import`/`require`) in the original code and importing new values can cause failure.
> **Warning**
>
> Be careful, existing imports (`import`/`require`) in the original code and importing new values can cause failure.

@@ -66,3 +69,5 @@ ## Getting Started

> ⚠ `%20` is space in a query string, because you can't use spaces in URLs
> **Warning**
>
> `%20` is space in a query string, because you can't use spaces in URLs

@@ -365,5 +370,9 @@ ```js

> ⚠ You need to set `type: "commonjs"` to use `single`, `multiple` and `pure` syntaxes.
> **Warning**
>
> You need to set `type: "commonjs"` to use `single`, `multiple` and `pure` syntaxes.
> ⚠ Aliases can't be used together with `default`, `namespace`, `side-effects`, `single` and `pure` syntaxes.
> **Warning**
>
> Aliases can't be used together with `default`, `namespace`, `side-effects`, `single` and `pure` syntaxes.

@@ -448,3 +457,5 @@ ###### Examples

> ⚠ Alias can't be used together with `default`, `namespace`, `side-effects`, `single` and `pure` syntaxes.
> **Warning**
>
> Alias can't be used together with `default`, `namespace`, `side-effects`, `single` and `pure` syntaxes.

@@ -566,3 +577,5 @@ ##### Examples

> ⚠ Do not use this option if source code contains ES module import(s)
> **Warning**
>
> Do not use this option if source code contains ES module import(s)

@@ -847,4 +860,2 @@ #### `boolean`

[node-url]: https://nodejs.org
[deps]: https://david-dm.org/webpack-contrib/imports-loader.svg
[deps-url]: https://david-dm.org/webpack-contrib/imports-loader
[tests]: https://github.com/webpack-contrib/imports-loader/workflows/imports-loader/badge.svg

@@ -851,0 +862,0 @@ [tests-url]: https://github.com/webpack-contrib/imports-loader/actions

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