@@ -21,9 +21,13 @@ The imports loader can add the necessary `require('whatever')` calls, so those m
21
21
22
22
For further hints on compatibility issues, check out [ Shimming] ( https://webpack.js.org/guides/shimming/ ) of the official docs.
23
23
24
- > ⚠ By default loader generate ES module named syntax.
24
+ > ** Warning**
25
+ >
26
+ > By default loader generate ES module named syntax.
25
27
26
- > ⚠ Be careful, existing imports (` import ` /` require ` ) in the original code and importing new values can cause failure.
28
+ > ** Warning**
29
+ >
30
+ > Be careful, existing imports (` import ` /` require ` ) in the original code and importing new values can cause failure.
27
31
28
32
## Getting Started
29
33
@@ -60,7 +64,9 @@ Then you can inject the `jquery` value into the module by configuring the `impor
60
64
The ` | ` or ` %20 ` (space) allow to separate the ` syntax ` , ` moduleName ` , ` name ` and ` alias ` of import.
61
65
The documentation and syntax examples can be read [ here] ( #syntax ) .
62
66
63
- > ⚠ ` %20 ` is space in a query string, because you can't use spaces in URLs
67
+ > ** Warning**
68
+ >
69
+ > ` %20 ` is space in a query string, because you can't use spaces in URLs
64
70
65
71
``` js
66
72
// Alternative syntax:
@@ -358,9 +364,13 @@ If type `commonjs`:
358
364
- ` [multiple Foo FooA Bar] ` - generates ` const { FooA: Bar } = require("Foo"); ` .
359
365
- ` [pure Foo] ` - generates ` require("Foo"); ` .
360
366
361
- > ⚠ You need to set ` type: "commonjs" ` to use ` single ` , ` multiple ` and ` pure ` syntaxes.
367
+ > ** Warning**
368
+ >
369
+ > You need to set ` type: "commonjs" ` to use ` single ` , ` multiple ` and ` pure ` syntaxes.
362
370
363
- > ⚠ Aliases can't be used together with ` default ` , ` namespace ` , ` side-effects ` , ` single ` and ` pure ` syntaxes.
371
+ > ** Warning**
372
+ >
373
+ > Aliases can't be used together with ` default ` , ` namespace ` , ` side-effects ` , ` single ` and ` pure ` syntaxes.
364
374
365
375
###### Examples
366
376
@@ -440,7 +450,9 @@ Properties:
440
450
- ` name ` - name of an imported value (** required** )
441
451
- ` alias ` - alias of an imported value (** may be omitted** )
442
452
443
- > ⚠ Alias can't be used together with ` default ` , ` namespace ` , ` side-effects ` , ` single ` and ` pure ` syntaxes.
453
+ > ** Warning**
454
+ >
455
+ > Alias can't be used together with ` default ` , ` namespace ` , ` side-effects ` , ` single ` and ` pure ` syntaxes.
444
456
445
457
##### Examples
446
458
@@ -557,7 +569,9 @@ Default: `undefined`
557
569
558
570
Closes the module code in a function with a given ` thisArg ` and ` args ` (` (function () { ... }).call(); ` ).
559
571
560
- > ⚠ Do not use this option if source code contains ES module import(s)
572
+ > ** Warning**
573
+ >
574
+ > Do not use this option if source code contains ES module import(s)
561
575
562
576
#### ` boolean `
563
577
0 commit comments