1 | <div align="center">
|
2 | <a href="https://github.com/webpack/webpack">
|
3 | <img width="200" height="200"
|
4 | src="https://webpack.js.org/assets/icon-square-big.svg">
|
5 | </a>
|
6 | </div>
|
7 |
|
8 | [![npm][npm]][npm-url]
|
9 | [![node][node]][node-url]
|
10 | [![deps][deps]][deps-url]
|
11 | [![tests][tests]][tests-url]
|
12 | [![cover][cover]][cover-url]
|
13 | [![chat][chat]][chat-url]
|
14 | [![size][size]][size-url]
|
15 |
|
16 | # imports-loader
|
17 |
|
18 | The imports loader allows you to use modules that depend on specific global variables.
|
19 |
|
20 | This is useful for third-party modules that rely on global variables like `$` or `this` being the `window` object.
|
21 | The imports loader can add the necessary `require('whatever')` calls, so those modules work with webpack.
|
22 |
|
23 | For further hints on compatibility issues, check out [Shimming](https://webpack.js.org/guides/shimming/) of the official docs.
|
24 |
|
25 | > ⚠ By default loader generate ES module named syntax.
|
26 |
|
27 | > ⚠ Be careful, existing imports (`import`/`require`) in the original code and importing new values can cause failure.
|
28 |
|
29 | ## Getting Started
|
30 |
|
31 | To begin, you'll need to install `imports-loader`:
|
32 |
|
33 | ```console
|
34 | npm install imports-loader --save-dev
|
35 | ```
|
36 |
|
37 | or
|
38 |
|
39 | ```console
|
40 | yarn add -D imports-loader
|
41 | ```
|
42 |
|
43 | or
|
44 |
|
45 | ```console
|
46 | pnpm add -D imports-loader
|
47 | ```
|
48 |
|
49 | Given you have this file:
|
50 |
|
51 | **example.js**
|
52 |
|
53 | ```js
|
54 | $("img").doSomeAwesomeJqueryPluginStuff();
|
55 | ```
|
56 |
|
57 | Then you can inject the `jquery` value into the module by configuring the `imports-loader` using two approaches.
|
58 |
|
59 | ### Inline
|
60 |
|
61 | The `|` or `%20` (space) allow to separate the `syntax`, `moduleName`, `name` and `alias` of import.
|
62 | The documentation and syntax examples can be read [here](#syntax).
|
63 |
|
64 | > ⚠ `%20` is space in a query string, because you can't use spaces in URLs
|
65 |
|
66 | ```js
|
67 | // Alternative syntax:
|
68 | //
|
69 | // import myLib from 'imports-loader?imports=default%20jquery%20$!./example.js';
|
70 | //
|
71 | // `%20` is space in a query string, equivalently `default jquery $`
|
72 | import myLib from "imports-loader?imports=default|jquery|$!./example.js";
|
73 | // Adds the following code to the beginning of example.js:
|
74 | //
|
75 | // import $ from "jquery";
|
76 | //
|
77 | // ...
|
78 | // Code
|
79 | // ...
|
80 | ```
|
81 |
|
82 | ```js
|
83 | import myLib from "imports-loader?imports=default|jquery|$,angular!./example.js";
|
84 | // `|` is separator in a query string, equivalently `default|jquery|$` and `angular`
|
85 | // Adds the following code to the beginning of example.js:
|
86 | //
|
87 | // import $ from "jquery";
|
88 | // import angular from "angular";
|
89 | //
|
90 | // ...
|
91 | // Code
|
92 | // ...
|
93 | ```
|
94 |
|
95 | ```js
|
96 | import myLib from "imports-loader?imports=named|library|myMethod,angular!./example.js";
|
97 | // `|` is separator in a query string, equivalently `named|library|myMethod` and `angular`
|
98 | // Adds the following code to the beginning of example.js:
|
99 | //
|
100 | // import { myMethod } from "library";
|
101 | // import angular from "angular";
|
102 | //
|
103 | // ...
|
104 | // Code
|
105 | // ...
|
106 | ```
|
107 |
|
108 | ```js
|
109 | const myLib = require(`imports-loader?type=commonjs&imports=single|jquery|$,angular!./example.js`);
|
110 | // `|` is separator in a query string, equivalently `single|jquery|$` and `angular`
|
111 | // Adds the following code to the beginning of example.js:
|
112 | //
|
113 | // var $ = require("jquery");
|
114 | // var angular = require("angular");
|
115 | //
|
116 | // ...
|
117 | // Code
|
118 | // ...
|
119 | ```
|
120 |
|
121 | ```js
|
122 | const myLib = require(`imports-loader?type=commonjs&imports=single|myLib|myMethod&wrapper=window&!./example.js`);
|
123 | // `|` is separator in a query string, equivalently `single|myLib|myMethod` and `angular`
|
124 | // Adds the following code to the example.js:
|
125 | //
|
126 | // const myMethod = require('myLib');
|
127 | //
|
128 | // (function () {
|
129 | // ...
|
130 | // Code
|
131 | // ...
|
132 | // }.call(window));
|
133 | ```
|
134 |
|
135 | ```js
|
136 | import myLib from "imports-loader?additionalCode=var%20myVariable%20=%20false;!./example.js";
|
137 | // Adds the following code to the beginning of example.js:
|
138 | //
|
139 | // var myVariable = false;
|
140 | //
|
141 | // ...
|
142 | // Code
|
143 | // ...
|
144 | ```
|
145 |
|
146 | ### Using Configuration
|
147 |
|
148 | **webpack.config.js**
|
149 |
|
150 | ```js
|
151 | module.exports = {
|
152 | module: {
|
153 | rules: [
|
154 | {
|
155 | // You can use `regexp`
|
156 | // test: /example\.js/$
|
157 | test: require.resolve("example.js"),
|
158 | use: [
|
159 | {
|
160 | loader: "imports-loader",
|
161 | options: {
|
162 | imports: [
|
163 | "default jquery $",
|
164 | "default lib_2 lib_2_default",
|
165 | "named lib_3 lib2_method_1",
|
166 | "named lib_3 lib2_method_2 lib_2_method_2_short",
|
167 | "namespace lib_4 my_namespace",
|
168 | "side-effects lib_5",
|
169 | {
|
170 | syntax: "default",
|
171 | moduleName: "angular",
|
172 | name: "angular",
|
173 | },
|
174 | ],
|
175 | },
|
176 | },
|
177 | ],
|
178 | },
|
179 | ],
|
180 | },
|
181 | };
|
182 | ```
|
183 |
|
184 | Generate output:
|
185 |
|
186 | ```js
|
187 | import $ from "jquery";
|
188 | import lib_2_default from "lib_2";
|
189 | import { lib2_method_1, lib2_method_2 as lib_2_method_2_short } from "lib_3";
|
190 | import * as my_namespace from "lib_4";
|
191 | import "lib_5";
|
192 | import angular from "angular";
|
193 | ```
|
194 |
|
195 | And run `webpack` via your preferred method.
|
196 |
|
197 | ## Options
|
198 |
|
199 | - **[`type`](#type)**
|
200 | - **[`imports`](#imports)**
|
201 | - **[`wrapper`](#wrapper)**
|
202 | - **[`additionalCode`](#additionalcode)**
|
203 |
|
204 | ### `type`
|
205 |
|
206 | Type:
|
207 |
|
208 | ```ts
|
209 | type type = string;
|
210 | ```
|
211 |
|
212 | Default: `module`
|
213 |
|
214 | Format of generated exports.
|
215 |
|
216 | Possible values - `commonjs` (CommonJS module syntax) and `module` (ES module syntax).
|
217 |
|
218 | #### `commonjs`
|
219 |
|
220 | **webpack.config.js**
|
221 |
|
222 | ```js
|
223 | module.exports = {
|
224 | module: {
|
225 | rules: [
|
226 | {
|
227 | test: require.resolve("example.js"),
|
228 | loader: "imports-loader",
|
229 | options: {
|
230 | syntax: "default",
|
231 | type: "commonjs",
|
232 | imports: "Foo",
|
233 | },
|
234 | },
|
235 | ],
|
236 | },
|
237 | };
|
238 | ```
|
239 |
|
240 | Generate output:
|
241 |
|
242 | ```js
|
243 | var Foo = require("Foo");
|
244 |
|
245 | // ...
|
246 | // Code
|
247 | // ...
|
248 | ```
|
249 |
|
250 | #### `module`
|
251 |
|
252 | **webpack.config.js**
|
253 |
|
254 | ```js
|
255 | module.exports = {
|
256 | module: {
|
257 | rules: [
|
258 | {
|
259 | test: require.resolve("example.js"),
|
260 | loader: "imports-loader",
|
261 | options: {
|
262 | type: "module",
|
263 | imports: "Foo",
|
264 | },
|
265 | },
|
266 | ],
|
267 | },
|
268 | };
|
269 | ```
|
270 |
|
271 | Generate output:
|
272 |
|
273 | ```js
|
274 | import Foo from "Foo";
|
275 |
|
276 | // ...
|
277 | // Code
|
278 | // ...
|
279 | ```
|
280 |
|
281 | ### `imports`
|
282 |
|
283 | Type:
|
284 |
|
285 | ```ts
|
286 | type imports =
|
287 | | string
|
288 | | {
|
289 | syntax:
|
290 | | "default"
|
291 | | "named"
|
292 | | "namespace"
|
293 | | "side-effects"
|
294 | | "single"
|
295 | | "multiple"
|
296 | | "pure";
|
297 | moduleName: string;
|
298 | name: string;
|
299 | alias: string;
|
300 | }
|
301 | | Array<
|
302 | | string
|
303 | | {
|
304 | syntax:
|
305 | | "default"
|
306 | | "named"
|
307 | | "namespace"
|
308 | | "side-effects"
|
309 | | "single"
|
310 | | "multiple"
|
311 | | "pure";
|
312 | moduleName: string;
|
313 | name: string;
|
314 | alias: string;
|
315 | }
|
316 | >;
|
317 | ```
|
318 |
|
319 | Default: `undefined`
|
320 |
|
321 | List of imports.
|
322 |
|
323 | #### `string`
|
324 |
|
325 | Allows to use a string to describe an export.
|
326 |
|
327 | ##### `Syntax`
|
328 |
|
329 | The `|` or `%20` (space) allow to separate the `syntax`, `moduleName`, `name` and `alias` of import.
|
330 |
|
331 | String syntax - `[[syntax] [moduleName] [name] [alias]]` or `[[syntax]|[moduleName]|[name]|[alias]]`, where:
|
332 |
|
333 | - `[syntax]` (**may be omitted**):
|
334 |
|
335 | - if `type` is `module`- can be `default`, `named`, `namespace` or `side-effects`, the default value is `default`.
|
336 | - if `type` is `commonjs`- can be `single`, `multiple` or `pure`, the default value is `single`.
|
337 |
|
338 | - `[moduleName]` - name of an imported module (**required**)
|
339 | - `[name]` - name of an imported value (**required**)
|
340 | - `[alias]` - alias of an imported value (**may be omitted**)
|
341 |
|
342 | Examples:
|
343 |
|
344 | If type `module`:
|
345 |
|
346 | - `[Foo]` - generates `import Foo from "Foo";`.
|
347 | - `[default Foo]` - generates `import Foo from "Foo";`.
|
348 | - `[default ./my-lib Foo]` - generates `import Foo from "./my-lib";`.
|
349 | - `[named Foo FooA]` - generates `import { FooA } from "Foo";`.
|
350 | - `[named Foo FooA Bar]` - generates `import { FooA as Bar } from "Foo";`.
|
351 | - `[namespace Foo FooA]` - generates `import * as FooA from "Foo";`.
|
352 | - `[side-effects Foo]` - generates `import "Foo";`.
|
353 |
|
354 | If type `commonjs`:
|
355 |
|
356 | - `[Foo]` - generates `const Foo = require("Foo");`.
|
357 | - `[single Foo]` - generates `const Foo = require("Foo");`.
|
358 | - `[single ./my-lib Foo]` - generates `const Foo = require("./my-lib");`.
|
359 | - `[multiple Foo FooA Bar]` - generates `const { FooA: Bar } = require("Foo");`.
|
360 | - `[pure Foo]` - generates `require("Foo");`.
|
361 |
|
362 | > ⚠ You need to set `type: "commonjs"` to use `single`, `multiple` and `pure` syntaxes.
|
363 |
|
364 | > ⚠ Aliases can't be used together with `default`, `namespace`, `side-effects`, `single` and `pure` syntaxes.
|
365 |
|
366 | ###### Examples
|
367 |
|
368 | ###### ES Module Default Import
|
369 |
|
370 | **webpack.config.js**
|
371 |
|
372 | ```js
|
373 | module.exports = {
|
374 | module: {
|
375 | rules: [
|
376 | {
|
377 | test: require.resolve("./path/to/example.js"),
|
378 | loader: "imports-loader",
|
379 | options: {
|
380 | imports: "default lib myName",
|
381 | },
|
382 | },
|
383 | ],
|
384 | },
|
385 | };
|
386 | ```
|
387 |
|
388 | Generate output:
|
389 |
|
390 | ```js
|
391 | import myName from "lib";
|
392 |
|
393 | // ...
|
394 | // Code
|
395 | // ...
|
396 | ```
|
397 |
|
398 | ###### CommonJS Single Import
|
399 |
|
400 | **webpack.config.js**
|
401 |
|
402 | ```js
|
403 | module.exports = {
|
404 | module: {
|
405 | rules: [
|
406 | {
|
407 | test: require.resolve("./path/to/example.js"),
|
408 | loader: "imports-loader",
|
409 | options: {
|
410 | type: "commonjs",
|
411 | imports: "single lib myName",
|
412 | },
|
413 | },
|
414 | ],
|
415 | },
|
416 | };
|
417 | ```
|
418 |
|
419 | Generate output:
|
420 |
|
421 | ```js
|
422 | var myName = require("lib");
|
423 |
|
424 | // ...
|
425 | // Code
|
426 | // ...
|
427 | ```
|
428 |
|
429 | #### `object`
|
430 |
|
431 | Allows to use an object to describe an import.
|
432 |
|
433 | Properties:
|
434 |
|
435 | - `syntax`:
|
436 |
|
437 | - if `type` is `module`- can be `default`, `named`, `namespace` or `side-effects`
|
438 | - if `type` is `commonjs`- can be `single`, `multiple` or `pure`
|
439 |
|
440 | - `moduleName` - name of an imported module (**required**)
|
441 | - `name` - name of an imported value (**required**)
|
442 | - `alias` - alias of an imported value (**may be omitted**)
|
443 |
|
444 | > ⚠ Alias can't be used together with `default`, `namespace`, `side-effects`, `single` and `pure` syntaxes.
|
445 |
|
446 | ##### Examples
|
447 |
|
448 | **webpack.config.js**
|
449 |
|
450 | ```js
|
451 | module.exports = {
|
452 | module: {
|
453 | rules: [
|
454 | {
|
455 | test: require.resolve("example.js"),
|
456 | use: [
|
457 | {
|
458 | loader: "imports-loader",
|
459 | options: {
|
460 | imports: {
|
461 | syntax: "named",
|
462 | moduleName: "lib_2",
|
463 | name: "lib2_method_2",
|
464 | alias: "lib_2_method_2_alias",
|
465 | },
|
466 | },
|
467 | },
|
468 | ],
|
469 | },
|
470 | ],
|
471 | },
|
472 | };
|
473 | ```
|
474 |
|
475 | Generate output:
|
476 |
|
477 | ```js
|
478 | import { lib2_method_2 as lib_2_method_2_alias } from "lib_2";
|
479 |
|
480 | // ...
|
481 | // Code
|
482 | // ...
|
483 | ```
|
484 |
|
485 | #### `array`
|
486 |
|
487 | Allow to specify multiple imports.
|
488 | Each item can be a [`string`](https://github.com/webpack-contrib/imports-loader#string) or an [`object`](https://github.com/webpack-contrib/imports-loader#object).
|
489 |
|
490 | ##### Examples
|
491 |
|
492 | **webpack.config.js**
|
493 |
|
494 | ```js
|
495 | module.exports = {
|
496 | module: {
|
497 | rules: [
|
498 | {
|
499 | test: require.resolve("example.js"),
|
500 | use: [
|
501 | {
|
502 | loader: "imports-loader",
|
503 | options: {
|
504 | imports: [
|
505 | {
|
506 | moduleName: "angular",
|
507 | },
|
508 | {
|
509 | syntax: "default",
|
510 | moduleName: "jquery",
|
511 | name: "$",
|
512 | },
|
513 | "default lib_2 lib_2_default",
|
514 | "named lib_2 lib2_method_1",
|
515 | "named lib_2 lib2_method_2 lib_2_method_2_alias",
|
516 | "namespace lib_3 lib_3_all",
|
517 | "side-effects lib_4",
|
518 | ],
|
519 | },
|
520 | },
|
521 | ],
|
522 | },
|
523 | ],
|
524 | },
|
525 | };
|
526 | ```
|
527 |
|
528 | Generate output:
|
529 |
|
530 | ```js
|
531 | import angular from "angular";
|
532 | import $ from "jquery";
|
533 | import lib_2_default from "lib_2";
|
534 | import { lib2_method_1, lib2_method_2 as lib_2_method_2_alias } from "lib_2";
|
535 | import * as lib_3_all from "lib_3";
|
536 | import "lib_4";
|
537 |
|
538 | // ...
|
539 | // Code
|
540 | // ...
|
541 | ```
|
542 |
|
543 | ### `wrapper`
|
544 |
|
545 | Type:
|
546 |
|
547 | ```ts
|
548 | type wrapper =
|
549 | | boolean
|
550 | | string
|
551 | | {
|
552 | thisArg: string;
|
553 | args: Record<string, string> | Array<string>;
|
554 | };
|
555 | ```
|
556 |
|
557 | Default: `undefined`
|
558 |
|
559 | Closes the module code in a function with a given `thisArg` and `args` (`(function () { ... }).call();`).
|
560 |
|
561 | > ⚠ Do not use this option if source code contains ES module import(s)
|
562 |
|
563 | #### `boolean`
|
564 |
|
565 | **webpack.config.js**
|
566 |
|
567 | ```js
|
568 | module.exports = {
|
569 | module: {
|
570 | rules: [
|
571 | {
|
572 | test: require.resolve("example.js"),
|
573 | use: [
|
574 | {
|
575 | loader: "imports-loader",
|
576 | options: {
|
577 | imports: {
|
578 | moduleName: "jquery",
|
579 | name: "$",
|
580 | },
|
581 | wrapper: true,
|
582 | },
|
583 | },
|
584 | ],
|
585 | },
|
586 | ],
|
587 | },
|
588 | };
|
589 | ```
|
590 |
|
591 | Generate output:
|
592 |
|
593 | ```js
|
594 | import $ from "jquery";
|
595 |
|
596 | (function () {
|
597 | // ...
|
598 | // Code
|
599 | // ...
|
600 | }.call());
|
601 | ```
|
602 |
|
603 | #### `string`
|
604 |
|
605 | **webpack.config.js**
|
606 |
|
607 | ```js
|
608 | module.exports = {
|
609 | module: {
|
610 | rules: [
|
611 | {
|
612 | test: require.resolve("example.js"),
|
613 | use: [
|
614 | {
|
615 | loader: "imports-loader",
|
616 | options: {
|
617 | imports: {
|
618 | moduleName: "jquery",
|
619 | name: "$",
|
620 | },
|
621 | wrapper: "window",
|
622 | },
|
623 | },
|
624 | ],
|
625 | },
|
626 | ],
|
627 | },
|
628 | };
|
629 | ```
|
630 |
|
631 | Generate output:
|
632 |
|
633 | ```js
|
634 | import $ from "jquery";
|
635 |
|
636 | (function () {
|
637 | // ...
|
638 | // Code
|
639 | // ...
|
640 | }.call(window));
|
641 | ```
|
642 |
|
643 | #### `object`
|
644 |
|
645 | **webpack.config.js**
|
646 |
|
647 | ```js
|
648 | module.exports = {
|
649 | module: {
|
650 | rules: [
|
651 | {
|
652 | test: require.resolve("example.js"),
|
653 | use: [
|
654 | {
|
655 | loader: "imports-loader",
|
656 | options: {
|
657 | imports: {
|
658 | moduleName: "jquery",
|
659 | name: "$",
|
660 | },
|
661 | wrapper: {
|
662 | thisArg: "window",
|
663 | args: ["myVariable", "myOtherVariable"],
|
664 | },
|
665 | },
|
666 | },
|
667 | ],
|
668 | },
|
669 | ],
|
670 | },
|
671 | };
|
672 | ```
|
673 |
|
674 | Generate output:
|
675 |
|
676 | ```js
|
677 | import $ from "jquery";
|
678 |
|
679 | (function (myVariable, myOtherVariable) {
|
680 | // ...
|
681 | // Code
|
682 | // ...
|
683 | }.call(window, myVariable, myOtherVariable));
|
684 | ```
|
685 |
|
686 | #### `object` with different parameter names
|
687 |
|
688 | **webpack.config.js**
|
689 |
|
690 | ```js
|
691 | module.exports = {
|
692 | module: {
|
693 | rules: [
|
694 | {
|
695 | test: require.resolve("example.js"),
|
696 | use: [
|
697 | {
|
698 | loader: "imports-loader",
|
699 | options: {
|
700 | imports: {
|
701 | moduleName: "jquery",
|
702 | name: "$",
|
703 | },
|
704 | wrapper: {
|
705 | thisArg: "window",
|
706 | args: {
|
707 | myVariable: "var1",
|
708 | myOtherVariable: "var2",
|
709 | },
|
710 | },
|
711 | },
|
712 | },
|
713 | ],
|
714 | },
|
715 | ],
|
716 | },
|
717 | };
|
718 | ```
|
719 |
|
720 | Generate output:
|
721 |
|
722 | ```js
|
723 | import $ from "jquery";
|
724 |
|
725 | (function (var1, var2) {
|
726 | // ...
|
727 | // Code
|
728 | // ...
|
729 | }.call(window, myVariable, myOtherVariable));
|
730 | ```
|
731 |
|
732 | ### `additionalCode`
|
733 |
|
734 | Type:
|
735 |
|
736 | ```ts
|
737 | type additionalCode = string;
|
738 | ```
|
739 |
|
740 | Default: `undefined`
|
741 |
|
742 | Adds custom code as a preamble before the module's code.
|
743 |
|
744 | ##### Examples
|
745 |
|
746 | ###### Define custom variable
|
747 |
|
748 | **webpack.config.js**
|
749 |
|
750 | ```js
|
751 | module.exports = {
|
752 | module: {
|
753 | rules: [
|
754 | {
|
755 | test: require.resolve("example.js"),
|
756 | use: [
|
757 | {
|
758 | loader: "imports-loader",
|
759 | options: {
|
760 | imports: {
|
761 | moduleName: "jquery",
|
762 | name: "$",
|
763 | },
|
764 | additionalCode: "var myVariable = false;",
|
765 | },
|
766 | },
|
767 | ],
|
768 | },
|
769 | ],
|
770 | },
|
771 | };
|
772 | ```
|
773 |
|
774 | Generate output:
|
775 |
|
776 | ```js
|
777 | import $ from "jquery";
|
778 |
|
779 | var myVariable = false;
|
780 |
|
781 | // ...
|
782 | // Code
|
783 | // ...
|
784 | ```
|
785 |
|
786 | ###### Disable AMD Import Syntax
|
787 |
|
788 | **webpack.config.js**
|
789 |
|
790 | ```js
|
791 | module.exports = {
|
792 | module: {
|
793 | rules: [
|
794 | {
|
795 | test: require.resolve("example.js"),
|
796 | use: [
|
797 | {
|
798 | loader: "imports-loader",
|
799 | options: {
|
800 | imports: {
|
801 | moduleName: "jquery",
|
802 | name: "$",
|
803 | },
|
804 | additionalCode:
|
805 | "var define = false; /* Disable AMD for misbehaving libraries */",
|
806 | },
|
807 | },
|
808 | ],
|
809 | },
|
810 | ],
|
811 | },
|
812 | };
|
813 | ```
|
814 |
|
815 | Generate output:
|
816 |
|
817 | ```js
|
818 | import $ from "jquery";
|
819 |
|
820 | var define = false; /* Disable AMD for misbehaving libraries */
|
821 |
|
822 | // ...
|
823 | // Code
|
824 | // ...
|
825 | ```
|
826 |
|
827 | ## Contributing
|
828 |
|
829 | Please take a moment to read our contributing guidelines if you haven't yet done so.
|
830 |
|
831 | [CONTRIBUTING](./.github/CONTRIBUTING.md)
|
832 |
|
833 | ## License
|
834 |
|
835 | [MIT](./LICENSE)
|
836 |
|
837 | [npm]: https://img.shields.io/npm/v/imports-loader.svg
|
838 | [npm-url]: https://www.npmjs.com/package/imports-loader
|
839 | [node]: https://img.shields.io/node/v/imports-loader.svg
|
840 | [node-url]: https://nodejs.org
|
841 | [deps]: https://david-dm.org/webpack-contrib/imports-loader.svg
|
842 | [deps-url]: https://david-dm.org/webpack-contrib/imports-loader
|
843 | [tests]: https://github.com/webpack-contrib/imports-loader/workflows/imports-loader/badge.svg
|
844 | [tests-url]: https://github.com/webpack-contrib/imports-loader/actions
|
845 | [cover]: https://codecov.io/gh/webpack-contrib/imports-loader/branch/master/graph/badge.svg
|
846 | [cover-url]: https://codecov.io/gh/webpack-contrib/imports-loader
|
847 | [chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
|
848 | [chat-url]: https://gitter.im/webpack/webpack
|
849 | [size]: https://packagephobia.now.sh/badge?p=imports-loader
|
850 | [size-url]: https://packagephobia.now.sh/result?p=imports-loader
|