@@ -30,24 +30,23 @@ Then you can use the `expose-loader` using two approaches.
30
30
31
31
## Inline
32
32
33
- ** src/index.js**
33
+ The ` | ` or ` %20 ` (space) allow to separate the ` globalName ` , ` moduleLocalName ` and ` override ` of expose.
34
+ The documentation and syntax examples can be read [ here] ( #syntax ) .
35
+
36
+ > ⚠ ` %20 ` is space in a query string, because you can't use spaces in URLs
34
37
35
38
``` js
36
39
import $ from ' expose-loader?exposes[]=$&exposes[]=jQuery!jquery' ;
37
40
//
38
41
// Adds the `jquery` to the global object under the names `$` and `jQuery`
39
42
```
40
43
41
- ** src/index.js**
42
-
43
44
``` js
44
45
import { concat } from ' expose-loader?exposes=_.concat!lodash/concat' ;
45
46
//
46
47
// Adds the `lodash/concat` to the global object under the name `_.concat`
47
48
```
48
49
49
- ** src/index.js**
50
-
51
50
``` js
52
51
import {
53
52
map ,
@@ -57,12 +56,6 @@ import {
57
56
// Adds the `map` and `reduce` method from `underscore` to the global object under the name `_.map` and `_.reduce`
58
57
```
59
58
60
- The ` | ` or ` %20 ` (space) allow to separate the export name of the module and the name in the global object.
61
-
62
- > ⚠ ` %20 ` is space in a query string, because you can't use spaces in URLs
63
-
64
- Description of string values can be found in the documentation below.
65
-
66
59
## Using Configuration
67
60
68
61
** src/index.js**
@@ -129,6 +122,10 @@ List of exposes.
129
122
130
123
Allows to use a string to describe an expose.
131
124
125
+ ##### ` Syntax `
126
+
127
+ The ` | ` or ` %20 ` (space) allow to separate the ` globalName ` , ` moduleLocalName ` and ` override ` of expose.
128
+
132
129
String syntax - ` [[globalName] [moduleLocalName] [override]] ` or ` [[globalName]|[moduleLocalName]|[override]] ` , where:
133
130
134
131
- ` globalName ` - the name in the global object, for example ` window.$ ` for a browser environment (** required** )
0 commit comments