You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 26, 2022. It is now read-only.
This is a webpack loader which resolves `goog.provide()` and `goog.require()` statements in webpack
7
8
just like if they were regular CommonJS modules.
@@ -117,31 +118,26 @@ Here are the configuration options specific for this loader:
117
118
-**fileExt** (string, default: '.js'): Files extension which will be searched for dependency resolving.
118
119
Support [glob](https://github.com/isaacs/node-glob) pattern syntax.
119
120
120
-
## Examples
121
-
In the hopes of clarifying the usage of the loader a bit I have provided a couple of examples which
122
-
you can find in the `examples` directory.
123
-
124
-
To run an example please follow these steps:
125
-
-`npm install` in the closure-loader root directory
126
-
-`npm install` in the directory of the example
127
-
-`npm start` or `npm run build` in the directory of the example
128
-
129
-
The following examples are available:
130
-
-**common-js**: This example shows how to load some legacy code that contains `goog.provide()` and
131
-
`goog.require()` via commonJs `require()` calls.
132
-
-**common-js-closure-lib**: This example shows how to load the closure library via commonJs
133
-
`require()` calls.
134
-
-**es6**: This example shows how to load some legacy code that contains `goog.provide()` and
135
-
`goog.require()` via babel and es6 `import` calls.
136
-
-**es6-closure-lib**: This example shows how to load the closure library via babel and es6
137
-
`import` calls.
138
-
-**es6-fileext**: Demonstrates how different filetypes can be used using the fileExt option.
139
-
-**es6-webpack2**: Demonstrates how this loader can be used with webpack2
140
-
-**legacy-closure-lib**: This example shows how to load the closure library via your own `goog.require()`
141
-
calls. This is not advised. If you are using webpack you should think about using a proper module loader,
142
-
preferably es6 as this is now the standard.
143
-
144
-
**NOTE**: This loader does in no way include or wrap the actual google closure library. If you want to use the closure library you will have to include it yourself and ensure correct shimming. See the above examples on how this can be done.
121
+
**NOTE**: This loader does in no way include or wrap the actual google closure library. If you want to use the closure library you will have to include it yourself and ensure correct shimming:
0 commit comments