@@ -21,8 +21,8 @@ Module `cjs.js` is left as is since it's in CommonJS format.
21
21
The manifest includes ` example.js ` as the only exposed module and lists the exports as ` ["a","b","c"] `
22
22
from the corresponding modules ` a.js ` , ` b.js ` , and ` cjs.js ` . None of the other modules are exposed.
23
23
24
- Also, see [ tree shaking] ( https://github.com/webpack/webpack/tree/master /examples/harmony-unused )
25
- and [ scope hoisting example] ( https://github.com/webpack/webpack/tree/master /examples/scope-hoisting ) .
24
+ Also, see [ tree shaking] ( https://github.com/webpack/webpack/tree/main /examples/harmony-unused )
25
+ and [ scope hoisting example] ( https://github.com/webpack/webpack/tree/main /examples/scope-hoisting ) .
26
26
27
27
# example.js
28
28
@@ -142,66 +142,90 @@ exports.c = "c";
142
142
143
143
<details><summary><code>/* webpack runtime code */</code></summary>
144
144
145
- ` ` ` js
145
+ ` ` ` js
146
146
/** **********************************************************************/
147
- /** ****/ // The module cache
148
- /** ****/ var __webpack_module_cache__ = {};
149
- /** ****/
150
- /** ****/ // The require function
151
- /** ****/ function __webpack_require__ (moduleId ) {
152
- /** ****/ // Check if module is in cache
153
- /** ****/ if (__webpack_module_cache__[moduleId]) {
154
- /** ****/ return __webpack_module_cache__[moduleId].exports ;
155
- /** ****/ }
156
- /** ****/ // Create a new module (and put it into the cache)
157
- /** ****/ var module = __webpack_module_cache__[moduleId] = {
158
- /** ****/ // no module.id needed
159
- /** ****/ // no module.loaded needed
160
- /** ****/ exports: {}
161
- /** ****/ };
162
- /** ****/
163
- /** ****/ // Execute the module function
164
- /** ****/ __webpack_modules__[moduleId](module , module .exports , __webpack_require__);
165
- /** ****/
166
- /** ****/ // Return the exports of the module
167
- /** ****/ return module .exports ;
168
- /** ****/ }
169
- /** ****/
147
+ /** ****/ // The module cache
148
+ /** ****/ var __webpack_module_cache__ = {};
149
+ /** ****/
150
+ /** ****/ // The require function
151
+ /** ****/ function __webpack_require__ (moduleId ) {
152
+ /** ****/ // Check if module is in cache
153
+ /** ****/ if (__webpack_module_cache__[moduleId]) {
154
+ /** ****/ return __webpack_module_cache__[moduleId].exports ;
155
+ /** ****/
156
+ }
157
+ /** ****/ // Create a new module (and put it into the cache)
158
+ /** ****/ var module = (__webpack_module_cache__[moduleId] = {
159
+ /** ****/ // no module.id needed
160
+ /** ****/ // no module.loaded needed
161
+ /** ****/ exports: {}
162
+ /** ****/
163
+ });
164
+ /** ****/
165
+ /** ****/ // Execute the module function
166
+ /** ****/ __webpack_modules__[moduleId](
167
+ module ,
168
+ module .exports ,
169
+ __webpack_require__
170
+ );
171
+ /** ****/
172
+ /** ****/ // Return the exports of the module
173
+ /** ****/ return module .exports ;
174
+ /** ****/
175
+ }
176
+ /** ****/
170
177
/** **********************************************************************/
171
- /** ****/ /* webpack/runtime/define property getters */
172
- /** ****/ (() => {
173
- /** ****/ // define getter functions for harmony exports
174
- /** ****/ __webpack_require__ .d = (exports , definition ) => {
175
- /** ****/ for (var key in definition) {
176
- /** ****/ if (__webpack_require__ .o (definition, key) && ! __webpack_require__ .o (exports , key)) {
177
- /** ****/ Object .defineProperty (exports , key, { enumerable: true , get: definition[key] });
178
- /** ****/ }
179
- /** ****/ }
180
- /** ****/ };
181
- /** ****/ })();
182
- /** ****/
183
- /** ****/ /* webpack/runtime/hasOwnProperty shorthand */
184
- /** ****/ (() => {
185
- /** ****/ __webpack_require__ .o = (obj , prop ) => Object .prototype .hasOwnProperty .call (obj, prop)
186
- /** ****/ })();
187
- /** ****/
188
- /** ****/ /* webpack/runtime/make namespace object */
189
- /** ****/ (() => {
190
- /** ****/ // define __esModule on exports
191
- /** ****/ __webpack_require__ .r = (exports ) => {
192
- /** ****/ if (typeof Symbol !== ' undefined' && Symbol .toStringTag ) {
193
- /** ****/ Object .defineProperty (exports , Symbol .toStringTag , { value: ' Module' });
194
- /** ****/ }
195
- /** ****/ Object .defineProperty (exports , ' __esModule' , { value: true });
196
- /** ****/ };
197
- /** ****/ })();
198
- /** ****/
178
+ /** ****/ /* webpack/runtime/define property getters */
179
+ /** ****/ (() => {
180
+ /** ****/ // define getter functions for harmony exports
181
+ /** ****/ __webpack_require__ .d = (exports , definition ) => {
182
+ /** ****/ for (var key in definition) {
183
+ /** ****/ if (
184
+ __webpack_require__ .o (definition, key) &&
185
+ ! __webpack_require__ .o (exports , key)
186
+ ) {
187
+ /** ****/ Object .defineProperty (exports , key, {
188
+ enumerable: true ,
189
+ get: definition[key]
190
+ });
191
+ /** ****/
192
+ }
193
+ /** ****/
194
+ }
195
+ /** ****/
196
+ };
197
+ /** ****/
198
+ })();
199
+ /** ****/
200
+ /** ****/ /* webpack/runtime/hasOwnProperty shorthand */
201
+ /** ****/ (() => {
202
+ /** ****/ __webpack_require__ .o = (obj , prop ) =>
203
+ Object .prototype .hasOwnProperty .call (obj, prop);
204
+ /** ****/
205
+ })();
206
+ /** ****/
207
+ /** ****/ /* webpack/runtime/make namespace object */
208
+ /** ****/ (() => {
209
+ /** ****/ // define __esModule on exports
210
+ /** ****/ __webpack_require__ .r = exports => {
211
+ /** ****/ if (typeof Symbol !== " undefined" && Symbol .toStringTag ) {
212
+ /** ****/ Object .defineProperty (exports , Symbol .toStringTag , {
213
+ value: " Module"
214
+ });
215
+ /** ****/
216
+ }
217
+ /** ****/ Object .defineProperty (exports , " __esModule" , { value: true });
218
+ /** ****/
219
+ };
220
+ /** ****/
221
+ })();
222
+ /** ****/
199
223
/** **********************************************************************/
200
224
` ` `
201
225
202
226
</details>
203
227
204
- ` ` ` js
228
+ ` ` ` js
205
229
/** ****/ // module exports must be returned from runtime so entry inlining is disabled
206
230
/** ****/ // startup
207
231
/** ****/ // Load entry module and return exports
0 commit comments