Merge branch 'main' into fixruntimeissue

This commit is contained in:
janlent1 2023-04-14 22:22:55 +02:00 committed by GitHub
commit fe680fd00c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
415 changed files with 7935 additions and 4316 deletions

View File

@ -1,26 +1,28 @@
# Ignore node_modules
node_modules
# Ignore some test files
test/**/*.*
!test/*.js
!test/**/webpack.config.js
!test/**/test.config.js
!test/**/test.filter.js
test/cases/parsing/es2022/test.filter.js
!test/**/errors.js
!test/**/warnings.js
!test/**/deprecations.js
!test/helpers/*.*
# Ignore some folders
benchmark
coverage
# Ignore generated files
*.check.js
# Ignore not supported files
!.*.js
.eslintrc.js
*.d.ts
# Ignore precompiled schemas
schemas/**/*.check.js
# Ignore some test files
test/*
!test/*Cases
!test/helpers
!test/*.js
test/*Cases/**/*.js
!test/*Cases/**/webpack.config.js
# Ignore some examples files
examples/**/*.js
!examples/*/webpack.config.js

View File

@ -90,6 +90,13 @@ module.exports = {
ecmaVersion: 5
}
},
{
files: ["tooling/**/*.js"],
env: { es6: true },
parserOptions: {
ecmaVersion: 2020
}
},
{
files: ["test/**/*.js"],
env: {

View File

@ -2,7 +2,7 @@
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->
<!-- Also consider trying the webpack@beta version, maybe it's already fixed. -->
**Do you want to request a *feature* or report a *bug*?**
**Do you want to request a _feature_ or report a _bug_?**
<!-- Please ask questions on StackOverflow or the webpack Gitter (https://gitter.im/webpack/webpack). -->
<!-- Issues which contain questions or support requests will be closed. -->

View File

@ -15,10 +15,8 @@ about: Create a report to help us improve
**What is the current behavior?**
**If the current behavior is a bug, please provide the steps to reproduce.**
<!-- A great way to do this is to provide your configuration via a GitHub repository -->
<!-- The most helpful is a minimal reproduction with instructions on how to reproduce -->
<!-- Repositories with too many files or large `webpack.config.js` files are not suitable -->
@ -28,12 +26,11 @@ about: Create a report to help us improve
**What is the expected behavior?**
<!-- "It should work" is not a helpful explanation -->
<!-- Explain exactly how it should behave -->
**Other relevant information:**
webpack version:
Node.js version:
Operating System:
Node.js version:
Operating System:
Additional tools:

View File

@ -1,7 +1,6 @@
---
name: Feature request
about: Suggest an idea for this project
---
<!-- Please don't delete this template or we'll close your issue -->
@ -16,12 +15,9 @@ about: Suggest an idea for this project
**What is the expected behavior?**
**What is motivation or use case for adding/changing the behavior?**
**How should this be implemented in your opinion?**
**Are you willing to work on this yourself?**
yes

View File

@ -1,7 +1,6 @@
---
name: Other
about: Something else
---
<!-- Bug reports and Feature requests must use other templates, or will be closed -->

View File

@ -4,10 +4,14 @@
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
<!-- Try to link to an open issue for more information. -->
## Summary
## Summary
<!-- cspell:disable-next-line -->
copilot:summary
## Details
## Details
<!-- cspell:disable-next-line -->
copilot:walkthrough

View File

@ -2,7 +2,6 @@
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
<!-- Try to link to an open issue for more information. -->
<!-- In addition to that please answer these questions: -->
**What kind of change does this PR introduce?**

View File

@ -1,12 +1,21 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "04:00"
timezone: Europe/Berlin
open-pull-requests-limit: 20
labels:
- dependencies
versioning-strategy: widen
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "04:00"
timezone: Europe/Berlin
open-pull-requests-limit: 20
labels:
- dependencies
versioning-strategy: widen
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
time: "04:00"
timezone: Europe/Berlin
open-pull-requests-limit: 20
labels:
- dependencies

View File

@ -24,7 +24,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 17.x
node-version: 16.x
cache: "yarn"
- run: yarn --frozen-lockfile
- uses: actions/cache@v3
@ -40,7 +40,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 17.x
node-version: 16.x
cache: "yarn"
- run: yarn --frozen-lockfile
- run: yarn link --frozen-lockfile || true
@ -50,6 +50,18 @@ jobs:
with:
flags: basic
functionalities: gcov
validate-legacy-node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 10.x
cache: "yarn"
# Remove `devDependencies` from `package.json` to avoid `yarn install` compatibility error
- run: node -e "const content = require('./package.json');delete content.devDependencies;require('fs').writeFileSync('package.json', JSON.stringify(content, null, 2));"
- run: yarn install --production --frozen-lockfile
unit:
runs-on: ubuntu-latest
steps:
@ -57,7 +69,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 17.x
node-version: 16.x
cache: "yarn"
- run: yarn --frozen-lockfile
- run: yarn link --frozen-lockfile || true
@ -78,9 +90,12 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.x, 17.x]
node-version: [10.x, 19.x]
part: [a, b]
include:
- os: ubuntu-latest
node-version: 18.x
part: a
- os: ubuntu-latest
node-version: 16.x
part: a
@ -98,7 +113,13 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
# Install old `jest` version and deps for legacy node versions
- run: |
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 --ignore-engines
yarn --frozen-lockfile --ignore-engines
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
- run: yarn --frozen-lockfile
if: matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x'
- run: yarn link --frozen-lockfile || true
- run: yarn link webpack --frozen-lockfile
- uses: actions/cache@v3

1
.husky/.gitignore vendored
View File

@ -1 +0,0 @@
_

View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no-install lint-staged

View File

@ -1,14 +1,30 @@
package.json
# Ignore test fixtures
test/*.*
# Ignore some test files
test/**/*.*
!test/*.js
!test/**/webpack.config.js
!test/**/test.config.js
!test/**/test.filter.js
!test/**/errors.js
!test/**/warnings.js
!test/**/deprecations.js
!test/*.md
!test/helpers/*.*
# Ignore example fixtures
examples/*.*
!examples/**/webpack.config.js
# Ignore some folders
benchmark/
coverage/
# Ignore generated files
*.check.js
# Ignore not supported files
*.d.ts
# Ignore precompiled schemas
schemas/**/*.check.js
# Ignore example fixtures
examples/
!examples/**/webpack.config.js

View File

@ -35,6 +35,9 @@
<a href="https://gitter.im/webpack/webpack">
<img src="https://badges.gitter.im/webpack/webpack.svg">
</a>
<a href="https://twitter.com/Webpack">
<img src="https://img.shields.io/twitter/follow/Webpack?style=social">
</a>
<h1>webpack</h1>
<p>
Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset.

View File

@ -1,6 +1,4 @@
{
"extends": "assemblyscript/std/assembly.json",
"include": [
"./**/*.asm.ts"
]
"include": ["./**/*.asm.ts"]
}

View File

@ -60,7 +60,7 @@ jobs:
steps:
- task: NodeTool@0
inputs:
versionSpec: "^14.0.0"
versionSpec: "^16.0.0"
displayName: "Install Node.js"
- script: |
curl -o- -L https://yarnpkg.com/install.sh | bash
@ -141,8 +141,15 @@ jobs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: "Cache Yarn packages"
# Install old `jest` version and ignore platform problem for legacy node versions
- script: |
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 --ignore-engines
yarn --frozen-lockfile --ignore-engines
displayName: "Install dependencies (old node.js version)"
condition: or(eq(variables['node_version'], '^10.13.0'), eq(variables['node_version'], '^12.4.0'))
- script: yarn --frozen-lockfile
displayName: "Install dependencies"
condition: and(not(eq(variables['node_version'], '^10.13.0')), not(eq(variables['node_version'], '^12.4.0')))
- script: yarn link --frozen-lockfile || true
displayName: "Link webpack"
continueOnError: true
@ -207,6 +214,16 @@ jobs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: "Cache Yarn packages"
# Install old `jest` version and ignore platform problem for legacy node versions
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 --ignore-engines
yarn --frozen-lockfile --ignore-engines
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies (old node.js version)"
condition: or(eq(variables['node_version'], '^10.13.0'), eq(variables['node_version'], '^12.4.0'), eq(variables['node_version'], '^14.0.0'))
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
@ -214,6 +231,7 @@ jobs:
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies"
condition: and(not(eq(variables['node_version'], '^10.13.0')), not(eq(variables['node_version'], '^12.4.0')), not(eq(variables['node_version'], '^14.0.0')))
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
@ -269,6 +287,15 @@ jobs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: "Cache Yarn packages"
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 --ignore-engines
yarn --frozen-lockfile --ignore-engines
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies (old node.js version)"
condition: or(eq(variables['node_version'], '^10.13.0'), eq(variables['node_version'], '^12.4.0'))
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
@ -276,6 +303,7 @@ jobs:
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies"
condition: and(not(eq(variables['node_version'], '^10.13.0')), not(eq(variables['node_version'], '^12.4.0')))
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"

View File

@ -5,6 +5,8 @@
"absolutify",
"acircular",
"amdmodule",
"analyse",
"analysed",
"asmjs",
"assemblyscript",
"asyncloader",
@ -15,6 +17,7 @@
"backported",
"basictest",
"bigint",
"bindgen",
"Biró",
"bitfield",
"bomfile",
@ -181,6 +184,7 @@
"preloaded",
"preloading",
"preparsed",
"preprocess",
"prettierrc",
"prewalking",
"prioritise",
@ -189,6 +193,7 @@
"queryloader",
"querystrings",
"RBDT",
"reconsume",
"recurse",
"redeclaration",
"reexecuted",
@ -288,12 +293,15 @@
"ignorePaths": [
"**/dist/**",
"examples/**/README.md",
"examples/wasm-bindgen*/pkg/*_bg.js",
"examples/wasm-bindgen*/pkg/*_bg*.d.ts",
"**/webpack.lock.data/**",
"package.json",
"yarn.lock",
"types.d.ts",
"**/**/*.snap",
"test/cases/json/weird-properties/globals.json",
"test/JavascriptParser.unittest.js",
"**/*.svg",
"*.log",
"**/*.wasm",
@ -303,6 +311,7 @@
"test/cases/**",
"test/configCases/**",
"test/statsCases/**",
"test/fixtures/**"
"test/fixtures/**",
"test/memoryLimitCases/**"
]
}

View File

@ -82,6 +82,10 @@ export type FilenameTemplate =
* Specifies the layer in which modules of this entrypoint are placed.
*/
export type Layer = null | string;
/**
* Add a container for define/require functions in the AMD module.
*/
export type AmdContainer = string;
/**
* Add a comment in the UMD wrapper.
*/
@ -1091,6 +1095,10 @@ export interface EntryDescription {
* Options for library.
*/
export interface LibraryOptions {
/**
* Add a container for define/require functions in the AMD module.
*/
amdContainer?: AmdContainer;
/**
* Add a comment in the UMD wrapper.
*/
@ -1964,6 +1972,10 @@ export interface OptimizationSplitChunksCacheGroup {
* Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.
*/
export interface Output {
/**
* Add a container for define/require functions in the AMD module.
*/
amdContainer?: AmdContainer;
/**
* The filename of asset modules as relative path inside the 'output.path' directory.
*/

View File

@ -16,6 +16,10 @@ export type ExposesItem = string;
* Modules that should be exposed by this container.
*/
export type ExposesItems = ExposesItem[];
/**
* Add a container for define/require functions in the AMD module.
*/
export type AmdContainer = string;
/**
* Add a comment in the UMD wrapper.
*/
@ -114,6 +118,10 @@ export interface ExposesConfig {
* Options for library.
*/
export interface LibraryOptions {
/**
* Add a container for define/require functions in the AMD module.
*/
amdContainer?: AmdContainer;
/**
* Add a comment in the UMD wrapper.
*/

View File

@ -16,6 +16,10 @@ export type ExposesItem = string;
* Modules that should be exposed by this container.
*/
export type ExposesItems = ExposesItem[];
/**
* Add a container for define/require functions in the AMD module.
*/
export type AmdContainer = string;
/**
* Add a comment in the UMD wrapper.
*/
@ -171,6 +175,10 @@ export interface ExposesConfig {
* Options for library.
*/
export interface LibraryOptions {
/**
* Add a container for define/require functions in the AMD module.
*/
amdContainer?: AmdContainer;
/**
* Add a comment in the UMD wrapper.
*/

View File

@ -50,8 +50,6 @@
[two-explicit-vendor-chunks](two-explicit-vendor-chunks)
## Code Splitted
[code-splitted-css-bundle](code-splitted-css-bundle)
[code-splitted-require.context-amd](code-splitted-require.context-amd) example demonstrating contexts in a code-split environment with AMD.
[code-splitted-require.context](code-splitted-require.context) example demonstrating contexts in a code-split environment.
@ -59,7 +57,7 @@
## Code Splitting
[code-splitting](code-splitting) example demonstrating a very simple case of Code Splitting.
[code-splitting-bundle-loader](code-splitting-bundle-loader) example demonstrating Code Splitting through the builder loader
[code-splitting-bundle-loader](code-splitting-bundle-loader) example demonstrating Code Splitting through the bundle loader
[code-splitting-harmony](code-splitting-harmony)

View File

@ -60,20 +60,20 @@ module.exports = {
## Unoptimized
```
asset pageA.bundle.js 8.91 KiB [emitted] (name: pageA)
asset pageB.bundle.js 8.91 KiB [emitted] (name: pageB)
asset pageC.bundle.js 8.91 KiB [emitted] (name: pageC)
asset pageA.bundle.js 8.9 KiB [emitted] (name: pageA)
asset pageB.bundle.js 8.9 KiB [emitted] (name: pageB)
asset pageC.bundle.js 8.9 KiB [emitted] (name: pageC)
asset 456.chunk.js 6.28 KiB [emitted]
asset 394.chunk.js 606 bytes [emitted]
chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageB pageB
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageB.js 69 bytes [built] [code generated]
[used exports unknown]
entry ./pageB pageB
chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageC pageC
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageC.js 68 bytes [built] [code generated]
[used exports unknown]
entry ./pageC pageC
@ -89,9 +89,9 @@ chunk (runtime: pageC) 394.chunk.js 42 bytes [rendered]
cjs self exports reference ./b.js 1:0-14
cjs require ./b ./pageB.js 2:8-22
cjs require ./b ./pageC.js 2:17-31
chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageA pageA
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageA.js 69 bytes [built] [code generated]
[used exports unknown]
entry ./pageA pageA
@ -113,7 +113,7 @@ chunk (runtime: pageA, pageB) 456.chunk.js 5.45 KiB [rendered]
cjs self exports reference ./common.js 1:0-14
amd require ./common ./pageA.js 1:0-3:2
amd require ./common ./pageB.js 1:0-3:2
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -124,15 +124,15 @@ asset pageA.bundle.js 1.73 KiB [emitted] [minimized] (name: pageA)
asset pageB.bundle.js 1.73 KiB [emitted] [minimized] (name: pageB)
asset 456.chunk.js 155 bytes [emitted] [minimized]
asset 394.chunk.js 104 bytes [emitted] [minimized]
chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageB pageB
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageB.js 69 bytes [built] [code generated]
[no exports used]
entry ./pageB pageB
chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageC pageC
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageC.js 68 bytes [built] [code generated]
[no exports used]
entry ./pageC pageC
@ -148,9 +148,9 @@ chunk (runtime: pageC) 394.chunk.js 42 bytes [rendered]
cjs self exports reference ./b.js 1:0-14
cjs require ./b ./pageB.js 2:8-22
cjs require ./b ./pageC.js 2:17-31
chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageA pageA
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageA.js 69 bytes [built] [code generated]
[no exports used]
entry ./pageA pageA
@ -172,5 +172,5 @@ chunk (runtime: pageA, pageB) 456.chunk.js 5.45 KiB [rendered]
cjs self exports reference ./common.js 1:0-14
amd require ./common ./pageA.js 1:0-3:2
amd require ./common ./pageB.js 1:0-3:2
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -196,5 +196,5 @@ chunk (runtime: main) output.js (main) 1.54 KiB (javascript) 274 bytes (runtime)
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -68,7 +68,7 @@ module.exports = {
\*************************/
/*! default exports */
/*! exports [not provided] [no usage info] */
/*! runtime requirements: module, __webpack_require__.p, __webpack_require__.* */
/*! runtime requirements: __webpack_require__.p, module, __webpack_require__.* */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module.exports = __webpack_require__.p + "images/89a353e9c515885abd8e.png";
@ -217,5 +217,5 @@ chunk (runtime: main) output.js (main) 9.58 KiB (javascript) 14.6 KiB (asset) 30
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -20,7 +20,12 @@ module.exports = {
// loggingDebug: /HttpUriPlugin/
// },
experiments: {
buildHttp: true
buildHttp: [
"https://cdn.esm.sh/",
"https://cdn.skypack.dev/",
"https://jspm.dev/",
/^https:\/\/unpkg\.com\/.+\?module$/
]
}
};
```
@ -33,12 +38,35 @@ module.exports = {
asset output.js 82.6 KiB [emitted] (name: main)
runtime modules 670 bytes 3 modules
modules by path https:// 30 KiB
modules by path https://jspm.dev/ 16.1 KiB
modules by path https://jspm.dev/*.0 6.04 KiB 5 modules
modules by path https://jspm.dev/npm:@jspm/ 9.67 KiB 3 modules
4 modules
modules by path https://cdn.esm.sh/ 6.15 KiB 7 modules
modules by path https://cdn.skypack.dev/ 7.46 KiB 6 modules
modules by path https://jspm.dev/ 16.1 KiB 12 modules
modules by path https://cdn.esm.sh/ 6.15 KiB
https://cdn.esm.sh/p-map 173 bytes [built] [code generated]
[exports: default, pMapSkip]
[used exports unknown]
harmony side effect evaluation https://cdn.esm.sh/p-map ./example.js 2:0-45
harmony import specifier https://cdn.esm.sh/p-map ./example.js 6:12-17
https://cdn.esm.sh/v53/p-map@5.1.0/es2015/p-map.js 1.18 KiB [built] [code generated]
[exports: default, pMapSkip]
[used exports unknown]
harmony side effect evaluation https://cdn.esm.sh/v53/p-map@5.1.0/es2015/p-map.js https://cdn.esm.sh/p-map 2:0-67
harmony export imported specifier https://cdn.esm.sh/v53/p-map@5.1.0/es2015/p-map.js https://cdn.esm.sh/p-map 2:0-67
harmony side effect evaluation https://cdn.esm.sh/v53/p-map@5.1.0/es2015/p-map.js https://cdn.esm.sh/p-map 3:0-77
harmony export imported specifier https://cdn.esm.sh/v53/p-map@5.1.0/es2015/p-map.js https://cdn.esm.sh/p-map 3:0-77
+ 5 modules
modules by path https://cdn.skypack.dev/ 7.46 KiB
https://cdn.skypack.dev/p-map 757 bytes [built] [code generated]
[exports: default, pMapSkip]
[used exports unknown]
harmony side effect evaluation https://cdn.skypack.dev/p-map ./example.js 1:0-50
harmony import specifier https://cdn.skypack.dev/p-map ./example.js 5:12-17
https://cdn.skypack.dev/-/p-map@v5.1.0-7ixXvZxXPKKt9unR9LT0/dist=es2020,mode=imports/optimized/p-map.js 2.29 KiB [built] [code generated]
[exports: default, pMapSkip]
[used exports unknown]
harmony side effect evaluation /-/p-map@v5.1.0-7ixXvZxXPKKt9unR9LT0/dist=es2020,mode=imports/optimized/p-map.js https://cdn.skypack.dev/p-map 15:0-97
harmony export imported specifier /-/p-map@v5.1.0-7ixXvZxXPKKt9unR9LT0/dist=es2020,mode=imports/optimized/p-map.js https://cdn.skypack.dev/p-map 15:0-97
harmony side effect evaluation /-/p-map@v5.1.0-7ixXvZxXPKKt9unR9LT0/dist=es2020,mode=imports/optimized/p-map.js https://cdn.skypack.dev/p-map 16:0-105
harmony export imported specifier /-/p-map@v5.1.0-7ixXvZxXPKKt9unR9LT0/dist=es2020,mode=imports/optimized/p-map.js https://cdn.skypack.dev/p-map 16:0-105
+ 4 modules
https://unpkg.com/p-map-series?module 263 bytes [built] [code generated]
[exports: default]
[used exports unknown]
@ -48,17 +76,17 @@ modules by path https:// 30 KiB
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.53.0 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 12.5 KiB [emitted] [minimized] (name: main)
asset output.js 12.4 KiB [emitted] [minimized] (name: main)
orphan modules 30 KiB [orphan] 26 modules
./example.js + 25 modules 30.2 KiB [built] [code generated]
[no exports]
[no exports used]
entry ./example.js main
webpack 5.53.0 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -43,7 +43,7 @@ module.exports = {
<body>
<!-- inlined minimized file "runtime~main.[chunkhash].js" -->
<script>
(()=>{"use strict";var e,r,t,o,n={},a={};function i(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={exports:{}};return n[e](t,t.exports,i),t.exports}i.m=n,e=[],i.O=(r,t,o,n)=>{if(!t){var a=1/0;for(s=0;s<e.length;s++){for(var[t,o,n]=e[s],l=!0,u=0;u<t.length;u++)(!1&n||a>=n)&&Object.keys(i.O).every((e=>i.O[e](t[u])))?t.splice(u--,1):(l=!1,n<a&&(a=n));if(l){e.splice(s--,1);var f=o();void 0!==f&&(r=f)}}return r}n=n||0;for(var s=e.length;s>0&&e[s-1][2]>n;s--)e[s]=e[s-1];e[s]=[t,o,n]},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var n=Object.create(null);i.r(n);var a={};r=r||[null,t({}),t([]),t(t)];for(var l=2&o&&e;"object"==typeof l&&!~r.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((r=>a[r]=()=>e[r]));return a.default=()=>e,i.d(n,a),n},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((r,t)=>(i.f[t](e,r),r)),[])),i.u=e=>e+".[chunkhash].js",i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o={},i.l=(e,r,t,n)=>{if(o[e])o[e].push(r);else{var a,l;if(void 0!==t)for(var u=document.getElementsByTagName("script"),f=0;f<u.length;f++){var s=u[f];if(s.getAttribute("src")==e){a=s;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=e),o[e]=[r];var c=(r,t)=>{a.onerror=a.onload=null,clearTimeout(d);var n=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(t))),r)return r(t)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),l&&document.head.appendChild(a)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.p="dist/",(()=>{var e={303:0};i.f.j=(r,t)=>{var o=i.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else if(303!=r){var n=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=n);var a=i.p+i.u(r),l=new Error;i.l(a,(t=>{if(i.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+n+": "+a+")",l.name="ChunkLoadError",l.type=n,l.request=a,o[1](l)}}),"chunk-"+r,r)}else e[r]=0},i.O.j=r=>0===e[r];var r=(r,t)=>{var o,n,[a,l,u]=t,f=0;if(a.some((r=>0!==e[r]))){for(o in l)i.o(l,o)&&(i.m[o]=l[o]);if(u)var s=u(i)}for(r&&r(t);f<a.length;f++)n=a[f],i.o(e,n)&&e[n]&&e[n][0](),e[a[f]]=0;return i.O(s)},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();
(()=>{"use strict";var e,r,t,o,n={},a={};function i(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={exports:{}};return n[e](t,t.exports,i),t.exports}i.m=n,e=[],i.O=(r,t,o,n)=>{if(!t){var a=1/0;for(s=0;s<e.length;s++){for(var[t,o,n]=e[s],l=!0,u=0;u<t.length;u++)(!1&n||a>=n)&&Object.keys(i.O).every((e=>i.O[e](t[u])))?t.splice(u--,1):(l=!1,n<a&&(a=n));if(l){e.splice(s--,1);var f=o();void 0!==f&&(r=f)}}return r}n=n||0;for(var s=e.length;s>0&&e[s-1][2]>n;s--)e[s]=e[s-1];e[s]=[t,o,n]},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var n=Object.create(null);i.r(n);var a={};r=r||[null,t({}),t([]),t(t)];for(var l=2&o&&e;"object"==typeof l&&!~r.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((r=>a[r]=()=>e[r]));return a.default=()=>e,i.d(n,a),n},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((r,t)=>(i.f[t](e,r),r)),[])),i.u=e=>e+".[chunkhash].js",i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o={},i.l=(e,r,t,n)=>{if(o[e])o[e].push(r);else{var a,l;if(void 0!==t)for(var u=document.getElementsByTagName("script"),f=0;f<u.length;f++){var s=u[f];if(s.getAttribute("src")==e){a=s;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=e),o[e]=[r];var c=(r,t)=>{a.onerror=a.onload=null,clearTimeout(d);var n=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(t))),r)return r(t)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),l&&document.head.appendChild(a)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.p="dist/",(()=>{var e={303:0};i.f.j=(r,t)=>{var o=i.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else if(303!=r){var n=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=n);var a=i.p+i.u(r),l=new Error;i.l(a,(t=>{if(i.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+n+": "+a+")",l.name="ChunkLoadError",l.type=n,l.request=a,o[1](l)}}),"chunk-"+r,r)}else e[r]=0},i.O.j=r=>0===e[r];var r=(r,t)=>{var o,n,[a,l,u]=t,f=0;if(a.some((r=>0!==e[r]))){for(o in l)i.o(l,o)&&(i.m[o]=l[o]);if(u)var s=u(i)}for(r&&r(t);f<a.length;f++)n=a[f],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(s)},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();
</script>
<script src="dist/main.[chunkhash].js"></script>
@ -230,7 +230,6 @@ module.exports = {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -334,7 +333,7 @@ module.exports = {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ return __webpack_require__.O(result);
/******/ }
@ -397,9 +396,9 @@ chunk (runtime: runtime~main) main.[chunkhash].js (main) 55 bytes [initial] [ren
./example.js 55 bytes [built] [code generated]
[used exports unknown]
entry ./example main
chunk (runtime: runtime~main) runtime~main.[chunkhash].js (runtime~main) 7.6 KiB [entry] [rendered]
chunk (runtime: runtime~main) runtime~main.[chunkhash].js (runtime~main) 7.59 KiB [entry] [rendered]
> ./example main
runtime modules 7.6 KiB 10 modules
runtime modules 7.59 KiB 10 modules
chunk (runtime: runtime~main) 2.[chunkhash].js 28 bytes [rendered]
> ./async1 ./example.js 2:0-18
./async1.js 28 bytes [built] [code generated]
@ -410,7 +409,7 @@ chunk (runtime: runtime~main) 3.[chunkhash].js 28 bytes [rendered]
./async2.js 28 bytes [built] [code generated]
[used exports unknown]
import() ./async2 ./example.js 3:0-18
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -420,7 +419,7 @@ asset runtime~main.[chunkhash].js 2.73 KiB [emitted] [minimized] (name: runtime~
asset main.[chunkhash].js 157 bytes [emitted] [minimized] (name: main)
asset 114.[chunkhash].js 69 bytes [emitted] [minimized]
asset 172.[chunkhash].js 69 bytes [emitted] [minimized]
Entrypoint main 2.89 KiB = runtime~main.[chunkhash].js 2.73 KiB main.[chunkhash].js 157 bytes
Entrypoint main 2.88 KiB = runtime~main.[chunkhash].js 2.73 KiB main.[chunkhash].js 157 bytes
chunk (runtime: runtime~main) 114.[chunkhash].js 28 bytes [rendered]
> ./async1 ./example.js 2:0-18
./async1.js 28 bytes [built] [code generated]
@ -436,8 +435,8 @@ chunk (runtime: runtime~main) main.[chunkhash].js (main) 55 bytes [initial] [ren
./example.js 55 bytes [built] [code generated]
[no exports used]
entry ./example main
chunk (runtime: runtime~main) runtime~main.[chunkhash].js (runtime~main) 7.6 KiB [entry] [rendered]
chunk (runtime: runtime~main) runtime~main.[chunkhash].js (runtime~main) 7.59 KiB [entry] [rendered]
> ./example main
runtime modules 7.6 KiB 10 modules
webpack 5.51.1 compiled successfully
runtime modules 7.59 KiB 10 modules
webpack 5.78.0 compiled successfully
```

View File

@ -65,7 +65,7 @@ exports.multiply = function multiply() {
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
var __webpack_unused_export__;
const add = __webpack_require__(/*! ./math */ 2)/* .add */ .I;
const add = (__webpack_require__(/*! ./math */ 2)/* .add */ .I);
exports.nP = function increment(val) {
return add(val, 1);
};
@ -158,7 +158,7 @@ var __webpack_exports__ = {};
\********************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: __webpack_require__ */
const inc = __webpack_require__(/*! ./increment */ 1)/* .increment */ .nP;
const inc = (__webpack_require__(/*! ./increment */ 1)/* .increment */ .nP);
var a = 1;
inc(a); // 2
@ -187,14 +187,14 @@ inc(a); // 2
## Unoptimized
```
asset output.js 2.93 KiB [emitted] (name: main)
asset output.js 2.94 KiB [emitted] (name: main)
chunk (runtime: main) output.js (main) 634 bytes [entry] [rendered]
> ./example.js main
dependent modules 564 bytes [dependent] 2 modules
./example.js 70 bytes [built] [code generated]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
asset without.js 3.08 KiB [emitted] (name: main)
chunk (runtime: main) without.js (main) 634 bytes [entry] [rendered]
@ -203,7 +203,7 @@ chunk (runtime: main) without.js (main) 634 bytes [entry] [rendered]
./example.js 70 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -216,7 +216,7 @@ chunk (runtime: main) output.js (main) 634 bytes [entry] [rendered]
./example.js 70 bytes [built] [code generated]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
asset without.js 551 bytes [emitted] [minimized] (name: main) 1 related asset
chunk (runtime: main) without.js (main) 634 bytes [entry] [rendered]
@ -225,5 +225,5 @@ chunk (runtime: main) without.js (main) 634 bytes [entry] [rendered]
./example.js 70 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -118,7 +118,6 @@ getTemplate("b", function(b) {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -211,7 +210,7 @@ getTemplate("b", function(b) {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -236,7 +235,7 @@ var __webpack_exports__ = {};
function getTemplate(templateName, callback) {
__webpack_require__.e(/*! AMD require */ 577).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(1)("./"+templateName)]; (function(tmpl) {
callback(tmpl());
}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}).catch(__webpack_require__.oe);
}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);})['catch'](__webpack_require__.oe);
}
getTemplate("a", function(a) {
console.log(a);
@ -342,11 +341,11 @@ module.exports = function() {
## Unoptimized
```
asset output.js 9.05 KiB [emitted] (name: main)
asset output.js 9.04 KiB [emitted] (name: main)
asset 577.output.js 2.23 KiB [emitted]
chunk (runtime: main) output.js (main) 251 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 251 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./example.js 251 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
@ -357,7 +356,7 @@ chunk (runtime: main) 577.output.js 457 bytes [rendered]
[no exports]
[used exports unknown]
amd require context ./example.js 2:1-4:3
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -365,9 +364,9 @@ webpack 5.51.1 compiled successfully
```
asset output.js 1.82 KiB [emitted] [minimized] (name: main)
asset 577.output.js 609 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 251 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 251 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./example.js 251 bytes [built] [code generated]
[no exports used]
entry ./example.js main
@ -377,5 +376,5 @@ chunk (runtime: main) 577.output.js 457 bytes [rendered]
../require.context/templates/ sync ^\.\/.*$ 217 bytes [built] [code generated]
[no exports]
amd require context ./example.js 2:1-4:3
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -118,7 +118,6 @@ getTemplate("b", function(b) {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -211,7 +210,7 @@ getTemplate("b", function(b) {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -236,7 +235,7 @@ var __webpack_exports__ = {};
function getTemplate(templateName, callback) {
__webpack_require__.e(/*! require.ensure */ 577).then((function(require) {
callback(__webpack_require__(1)("./"+templateName)());
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
}
getTemplate("a", function(a) {
console.log(a);
@ -342,11 +341,11 @@ module.exports = function() {
## Unoptimized
```
asset output.js 8.96 KiB [emitted] (name: main)
asset output.js 8.95 KiB [emitted] (name: main)
asset 577.output.js 2.23 KiB [emitted]
chunk (runtime: main) output.js (main) 266 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 266 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./example.js 266 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
@ -357,17 +356,17 @@ chunk (runtime: main) 577.output.js 457 bytes [rendered]
[no exports]
[used exports unknown]
cjs require context ./example.js 3:11-64
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 1.8 KiB [emitted] [minimized] (name: main)
asset output.js 1.79 KiB [emitted] [minimized] (name: main)
asset 577.output.js 609 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 266 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 266 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./example.js 266 bytes [built] [code generated]
[no exports used]
entry ./example.js main
@ -377,5 +376,5 @@ chunk (runtime: main) 577.output.js 457 bytes [rendered]
../require.context/templates/ sync ^\.\/.*$ 217 bytes [built] [code generated]
[no exports]
cjs require context ./example.js 3:11-64
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -44,7 +44,7 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) {
for(var i = 0, l = callbacks.length; i < l; i++) {
callbacks[i](data);
}
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
/***/ })
/******/ ]);
@ -147,7 +147,6 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -240,7 +239,7 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -300,11 +299,11 @@ module.exports = "It works";
## Unoptimized
```
asset output.js 9.7 KiB [emitted] (name: main)
asset output.js 9.68 KiB [emitted] (name: main)
asset 929.output.js 354 bytes [emitted]
chunk (runtime: main) output.js (main) 375 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 375 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
dependent modules 281 bytes [dependent] 1 module
./example.js 94 bytes [built] [code generated]
[used exports unknown]
@ -315,7 +314,7 @@ chunk (runtime: main) 929.output.js 28 bytes [rendered]
[used exports unknown]
cjs self exports reference ./file.js 1:0-14
cjs require !!./file.js ../../node_modules/bundle-loader/index.js!./file.js 8:8-30
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -323,9 +322,9 @@ webpack 5.51.1 compiled successfully
```
asset output.js 1.85 KiB [emitted] [minimized] (name: main)
asset 929.output.js 88 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 375 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 375 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
dependent modules 281 bytes [dependent] 1 module
./example.js 94 bytes [built] [code generated]
[no exports used]
@ -336,5 +335,5 @@ chunk (runtime: main) 929.output.js 28 bytes [rendered]
[used exports unknown]
cjs self exports reference ./file.js 1:0-14
cjs require !!./file.js ../../node_modules/bundle-loader/index.js!./file.js 8:8-30
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -222,7 +222,6 @@ console.log(lodash, isomorphicFetch);
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -326,7 +325,7 @@ console.log(lodash, isomorphicFetch);
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ return __webpack_require__.O(result);
/******/ }
@ -555,7 +554,7 @@ asset react-vendors.js 1.33 KiB [emitted] (name: react-vendors)
asset lazy_js.js 1.11 KiB [emitted]
Entrypoint app 1.44 KiB = app.js
Entrypoint page1 1.91 KiB = page1.js
Entrypoint react-vendors 12.5 KiB = runtime.js 11.1 KiB react-vendors.js 1.33 KiB
Entrypoint react-vendors 12.4 KiB = runtime.js 11.1 KiB react-vendors.js 1.33 KiB
Entrypoint other-vendors 13.3 KiB = runtime.js 11.1 KiB other-vendors.js 2.13 KiB
chunk (runtime: runtime) app.js (app) 116 bytes <{other-vendors}> <{runtime}> >{page1}< [initial] [rendered]
> ./app.js app
@ -607,13 +606,13 @@ chunk (runtime: runtime) react-vendors.js (react-vendors) 87 bytes ={runtime}= >
harmony import specifier react ./page1.js 5:29-34
cjs self exports reference ./node_modules/react.js 1:0-14
entry react react-vendors
chunk (runtime: runtime) runtime.js (runtime) 6.75 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered]
chunk (runtime: runtime) runtime.js (runtime) 6.74 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered]
> ./other-vendors other-vendors
> prop-types react-vendors
> react react-vendors
> react-dom react-vendors
runtime modules 6.75 KiB 10 modules
webpack 5.51.1 compiled successfully
runtime modules 6.74 KiB 10 modules
webpack 5.78.0 compiled successfully
```
## Production mode
@ -627,7 +626,7 @@ asset react-vendors.js 200 bytes [emitted] [minimized] (name: react-vendors)
asset lazy_js.js 159 bytes [emitted] [minimized]
Entrypoint app 207 bytes = app.js
Entrypoint page1 287 bytes = page1.js
Entrypoint react-vendors 2.57 KiB = runtime.js 2.37 KiB react-vendors.js 200 bytes
Entrypoint react-vendors 2.56 KiB = runtime.js 2.37 KiB react-vendors.js 200 bytes
Entrypoint other-vendors 2.6 KiB = runtime.js 2.37 KiB other-vendors.js 239 bytes
chunk (runtime: runtime) app.js (app) 116 bytes <{other-vendors}> <{runtime}> >{page1}< [initial] [rendered]
> ./app.js app
@ -678,11 +677,11 @@ chunk (runtime: runtime) react-vendors.js (react-vendors) 87 bytes ={runtime}= >
harmony import specifier react ./page1.js 5:29-34
cjs self exports reference ./node_modules/react.js 1:0-14
entry react react-vendors
chunk (runtime: runtime) runtime.js (runtime) 6.75 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered]
chunk (runtime: runtime) runtime.js (runtime) 6.74 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered]
> ./other-vendors other-vendors
> prop-types react-vendors
> react react-vendors
> react-dom react-vendors
runtime modules 6.75 KiB 10 modules
webpack 5.51.1 compiled successfully
runtime modules 6.74 KiB 10 modules
webpack 5.78.0 compiled successfully
```

View File

@ -261,7 +261,7 @@ module.exports = 'prop-types';
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ return __webpack_require__.O(result);
/******/ }
@ -303,11 +303,11 @@ chunk (runtime: react-vendors) app.js (app) 139 bytes <{react-vendors}> [initial
[no exports]
[used exports unknown]
entry ./app.js app
chunk (runtime: react-vendors) react-vendors.js (react-vendors) 87 bytes (javascript) 3.3 KiB (runtime) >{app}< [entry] [rendered]
chunk (runtime: react-vendors) react-vendors.js (react-vendors) 87 bytes (javascript) 3.29 KiB (runtime) >{app}< [entry] [rendered]
> prop-types react-vendors
> react react-vendors
> react-dom react-vendors
runtime modules 3.3 KiB 6 modules
runtime modules 3.29 KiB 6 modules
cacheable modules 87 bytes
./node_modules/prop-types.js 31 bytes [built] [code generated]
[used exports unknown]
@ -330,7 +330,7 @@ chunk (runtime: react-vendors) react-vendors.js (react-vendors) 87 bytes (javasc
harmony import specifier react ./app.js 5:12-17
cjs self exports reference ./node_modules/react.js 1:0-14
entry react react-vendors
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -371,5 +371,5 @@ chunk (runtime: react-vendors) react-vendors.js (react-vendors) 87 bytes (javasc
harmony import specifier react ./app.js 5:12-17
cjs self exports reference ./node_modules/react.js 1:0-14
entry react react-vendors
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -241,7 +241,6 @@ module.exports = webpackAsyncContext;
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -345,7 +344,7 @@ module.exports = webpackAsyncContext;
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -410,9 +409,9 @@ chunk (runtime: main) 98.output.js 13 bytes [rendered]
[used exports unknown]
import() context element ./2 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2
import() context element ./2.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2.js
chunk (runtime: main) output.js (main) 414 bytes (javascript) 6.92 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 414 bytes (javascript) 6.91 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 6.92 KiB 10 modules
runtime modules 6.91 KiB 10 modules
dependent modules 171 bytes [dependent] 2 modules
./example.js 243 bytes [built] [code generated]
[no exports]
@ -430,7 +429,7 @@ chunk (runtime: main) 644.output.js 11 bytes [rendered]
./node_modules/b.js 11 bytes [built] [code generated]
[used exports unknown]
import() b ./example.js 3:0-11
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -447,9 +446,9 @@ chunk (runtime: main) 98.output.js 13 bytes [rendered]
[used exports unknown]
import() context element ./2 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2
import() context element ./2.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2.js
chunk (runtime: main) output.js (main) 403 bytes (javascript) 6.66 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 403 bytes (javascript) 6.65 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 6.66 KiB 9 modules
runtime modules 6.65 KiB 9 modules
dependent modules 160 bytes [dependent] 1 module
./example.js 243 bytes [built] [code generated]
[no exports]
@ -467,5 +466,5 @@ chunk (runtime: main) 644.output.js 11 bytes [rendered]
./node_modules/b.js 11 bytes [built] [code generated]
[used exports unknown]
import() b ./example.js 3:0-11
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -215,7 +215,6 @@ module.exports = webpackAsyncContext;
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -319,7 +318,7 @@ module.exports = webpackAsyncContext;
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -407,13 +406,13 @@ chunk (runtime: main) 718.output.js 38 bytes [rendered]
[used exports unknown]
import() context element ./foo ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
import() context element ./foo.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 2.48 KiB [emitted] [minimized] (name: main)
asset output.js 2.47 KiB [emitted] [minimized] (name: main)
asset 398.output.js 130 bytes [emitted] [minimized]
asset 544.output.js 130 bytes [emitted] [minimized]
asset 718.output.js 130 bytes [emitted] [minimized]
@ -445,5 +444,5 @@ chunk (runtime: main) 718.output.js 38 bytes [rendered]
[exports: default]
import() context element ./foo ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
import() context element ./foo.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -204,7 +204,6 @@ module.exports = webpackAsyncContext;
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -308,7 +307,7 @@ module.exports = webpackAsyncContext;
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -394,13 +393,13 @@ chunk (runtime: main) 718.output.js 38 bytes [rendered]
[used exports unknown]
import() context element ./foo ./templates/ lazy ^\.\/.*$ namespace object ./foo
import() context element ./foo.js ./templates/ lazy ^\.\/.*$ namespace object ./foo.js
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 2.44 KiB [emitted] [minimized] (name: main)
asset output.js 2.43 KiB [emitted] [minimized] (name: main)
asset 398.output.js 130 bytes [emitted] [minimized]
asset 544.output.js 130 bytes [emitted] [minimized]
asset 718.output.js 130 bytes [emitted] [minimized]
@ -432,5 +431,5 @@ chunk (runtime: main) 718.output.js 38 bytes [rendered]
[exports: default]
import() context element ./foo ./templates/ lazy ^\.\/.*$ namespace object ./foo
import() context element ./foo.js ./templates/ lazy ^\.\/.*$ namespace object ./foo.js
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -196,7 +196,6 @@ module.exports = webpackAsyncContext;
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -300,7 +299,7 @@ module.exports = webpackAsyncContext;
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -331,7 +330,7 @@ __webpack_require__.e(/*! import() | chunk-foo */ 930).then(__webpack_require__.
__webpack_require__.e(/*! require.ensure | chunk-foo1 */ 930).then((function(require) {
var foo = __webpack_require__(/*! ./templates/foo */ 2);
console.log('foo:', foo);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
var createContextVar = "r";
__webpack_require__(1)("./ba" + createContextVar).then(function(bar) {
@ -386,7 +385,7 @@ chunk (runtime: main) 930.output.js (chunk-foo) 38 bytes [rendered]
[used exports unknown]
import() ./templates/foo ./example.js 1:0-62
cjs require ./templates/foo ./example.js 6:11-37
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -424,5 +423,5 @@ chunk (runtime: main) 930.output.js (chunk-foo) 38 bytes [rendered]
[exports: default]
import() ./templates/foo ./example.js 1:0-62
cjs require ./templates/foo ./example.js 6:11-37
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -162,7 +162,6 @@ require.ensure(["c"], function(require) {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -255,7 +254,7 @@ require.ensure(["c"], function(require) {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -282,9 +281,9 @@ var __webpack_exports__ = {};
var a = __webpack_require__(/*! a */ 1);
var b = __webpack_require__(/*! b */ 2);
__webpack_require__.e(/*! require.ensure */ 796).then((function(require) {
__webpack_require__(/*! b */ 2).xyz();
(__webpack_require__(/*! b */ 2).xyz)();
var d = __webpack_require__(/*! d */ 4);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
})();
/******/ })()
@ -334,11 +333,11 @@ Minimized
## Unoptimized
```
asset output.js 9.49 KiB [emitted] (name: main)
asset output.js 9.47 KiB [emitted] (name: main)
asset 796.output.js 528 bytes [emitted]
chunk (runtime: main) output.js (main) 161 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 161 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
dependent modules 22 bytes [dependent] 2 modules
./example.js 139 bytes [built] [code generated]
[used exports unknown]
@ -351,7 +350,7 @@ chunk (runtime: main) 796.output.js 22 bytes [rendered]
./node_modules/d.js 11 bytes [built] [code generated]
[used exports unknown]
cjs require d ./example.js 5:12-24
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -359,9 +358,9 @@ webpack 5.51.1 compiled successfully
```
asset output.js 1.74 KiB [emitted] [minimized] (name: main)
asset 796.output.js 80 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 161 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 161 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
dependent modules 22 bytes [dependent] 2 modules
./example.js 139 bytes [built] [code generated]
[no exports used]
@ -374,5 +373,5 @@ chunk (runtime: main) 796.output.js 22 bytes [rendered]
./node_modules/d.js 11 bytes [built] [code generated]
[used exports unknown]
cjs require d ./example.js 5:12-24
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -125,7 +125,7 @@ chunk (runtime: main) output.js (main) 206 bytes [entry] [rendered]
./example.js 31 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -138,5 +138,5 @@ chunk (runtime: main) output.js (main) 206 bytes [entry] [rendered]
./example.js 31 bytes [built] [code generated]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -296,7 +296,7 @@ module.exports = "utility1";
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ return __webpack_require__.O(result);
/******/ }
@ -462,7 +462,7 @@ module.exports = "pageB";
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ return __webpack_require__.O(result);
/******/ }
@ -626,7 +626,7 @@ module.exports = "pageC";
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ return __webpack_require__.O(result);
/******/ }
@ -661,11 +661,11 @@ module.exports = "pageC";
assets by chunk 768 bytes (id hint: commons)
asset commons-utility2_js.js 384 bytes [emitted] (id hint: commons)
asset commons-utility3_js.js 384 bytes [emitted] (id hint: commons)
asset pageA.js 6.08 KiB [emitted] (name: pageA)
asset pageA.js 6.07 KiB [emitted] (name: pageA)
asset pageB.js 5.8 KiB [emitted] (name: pageB)
asset pageC.js 5.74 KiB [emitted] (name: pageC)
asset vendor.js 737 bytes [emitted] (name: vendor) (id hint: vendor)
Entrypoint pageA 7.17 KiB = vendor.js 737 bytes commons-utility2_js.js 384 bytes pageA.js 6.08 KiB
Entrypoint pageA 7.17 KiB = vendor.js 737 bytes commons-utility2_js.js 384 bytes pageA.js 6.07 KiB
Entrypoint pageB 7.27 KiB = vendor.js 737 bytes commons-utility2_js.js 384 bytes commons-utility3_js.js 384 bytes pageB.js 5.8 KiB
Entrypoint pageC 6.49 KiB = commons-utility2_js.js 384 bytes commons-utility3_js.js 384 bytes pageC.js 5.74 KiB
chunk (runtime: pageA, pageB, pageC) commons-utility2_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons)
@ -719,7 +719,7 @@ chunk (runtime: pageA, pageB) vendor.js (vendor) (id hint: vendor) 54 bytes [ini
[used exports unknown]
cjs self exports reference ./node_modules/vendor2.js 1:0-14
cjs require vendor2 ./pageB.js 1:14-32
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -728,12 +728,12 @@ webpack 5.51.1 compiled successfully
assets by chunk 212 bytes (id hint: commons)
asset commons-utility2_js.js 106 bytes [emitted] [minimized] (id hint: commons)
asset commons-utility3_js.js 106 bytes [emitted] [minimized] (id hint: commons)
asset pageA.js 1.01 KiB [emitted] [minimized] (name: pageA)
asset pageB.js 1 KiB [emitted] [minimized] (name: pageB)
asset pageA.js 1 KiB [emitted] [minimized] (name: pageA)
asset pageB.js 1020 bytes [emitted] [minimized] (name: pageB)
asset pageC.js 1010 bytes [emitted] [minimized] (name: pageC)
asset vendor.js 121 bytes [emitted] [minimized] (name: vendor) (id hint: vendor)
Entrypoint pageA 1.23 KiB = vendor.js 121 bytes commons-utility2_js.js 106 bytes pageA.js 1.01 KiB
Entrypoint pageB 1.33 KiB = vendor.js 121 bytes commons-utility2_js.js 106 bytes commons-utility3_js.js 106 bytes pageB.js 1 KiB
Entrypoint pageA 1.23 KiB = vendor.js 121 bytes commons-utility2_js.js 106 bytes pageA.js 1 KiB
Entrypoint pageB 1.32 KiB = vendor.js 121 bytes commons-utility2_js.js 106 bytes commons-utility3_js.js 106 bytes pageB.js 1020 bytes
Entrypoint pageC 1.19 KiB = commons-utility2_js.js 106 bytes commons-utility3_js.js 106 bytes pageC.js 1010 bytes
chunk (runtime: pageA, pageB, pageC) commons-utility2_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons)
> ./pageA pageA
@ -786,5 +786,5 @@ chunk (runtime: pageA, pageB) vendor.js (vendor) (id hint: vendor) 54 bytes [ini
[used exports unknown]
cjs self exports reference ./node_modules/vendor2.js 1:0-14
cjs require vendor2 ./pageB.js 1:14-32
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -207,7 +207,6 @@ module.exports = {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -300,7 +299,7 @@ module.exports = {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -327,11 +326,11 @@ var main = function() {
Promise.all(/*! require.ensure */[__webpack_require__.e(421), __webpack_require__.e(366)]).then((() => {
const page = __webpack_require__(/*! ./pageA */ 1);
page();
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
__webpack_require__.e(/*! require.ensure */ 588).then((() => {
const page = __webpack_require__(/*! ./pageB */ 3);
page();
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
};
main();
@ -385,7 +384,7 @@ module.exports = function() {
Promise.all(/*! require.ensure */[__webpack_require__.e(421), __webpack_require__.e(145)]).then((()=>{
const page = __webpack_require__(/*! ./pageC */ 4);
page();
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
};
@ -450,8 +449,8 @@ module.exports = function() {
## Unoptimized
```
asset output.js 9.11 KiB [emitted] (name: main)
asset 588.output.js 736 bytes [emitted]
asset output.js 9.09 KiB [emitted] (name: main)
asset 588.output.js 739 bytes [emitted]
asset 366.output.js 558 bytes [emitted]
asset 145.output.js 552 bytes [emitted]
asset 421.output.js 434 bytes [emitted]
@ -461,9 +460,9 @@ chunk (runtime: main) 145.output.js 136 bytes [rendered]
[used exports unknown]
cjs require ./pageC ./pageB.js 4:15-33
cjs self exports reference ./pageC.js 3:0-14
chunk (runtime: main) output.js (main) 220 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 220 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./example.js 220 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
@ -487,13 +486,13 @@ chunk (runtime: main) 588.output.js 133 bytes [rendered]
[used exports unknown]
cjs require ./pageB ./example.js 8:15-33
cjs self exports reference ./pageB.js 1:0-14
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 1.8 KiB [emitted] [minimized] (name: main)
asset output.js 1.79 KiB [emitted] [minimized] (name: main)
asset 588.output.js 198 bytes [emitted] [minimized]
asset 145.output.js 134 bytes [emitted] [minimized]
asset 366.output.js 134 bytes [emitted] [minimized]
@ -504,9 +503,9 @@ chunk (runtime: main) 145.output.js 136 bytes [rendered]
[used exports unknown]
cjs require ./pageC ./pageB.js 4:15-33
cjs self exports reference ./pageC.js 3:0-14
chunk (runtime: main) output.js (main) 220 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 220 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./example.js 220 bytes [built] [code generated]
[no exports used]
entry ./example.js main
@ -530,5 +529,5 @@ chunk (runtime: main) 588.output.js 133 bytes [rendered]
[used exports unknown]
cjs require ./pageB ./example.js 8:15-33
cjs self exports reference ./pageB.js 1:0-14
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -51,7 +51,7 @@ exports.add = function() {
/*! runtime requirements: __webpack_require__, __webpack_exports__ */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
const add = __webpack_require__(/*! ./math */ 2).add;
const add = (__webpack_require__(/*! ./math */ 2).add);
exports.increment = function(val) {
return add(val, 1);
};
@ -122,7 +122,7 @@ var __webpack_exports__ = {};
\********************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: __webpack_require__ */
const inc = __webpack_require__(/*! ./increment */ 1).increment;
const inc = (__webpack_require__(/*! ./increment */ 1).increment);
const a = 1;
inc(a); // 2
@ -137,14 +137,14 @@ inc(a); // 2
## Unoptimized
```
asset output.js 2.51 KiB [emitted] (name: main)
asset output.js 2.52 KiB [emitted] (name: main)
chunk (runtime: main) output.js (main) 326 bytes [entry] [rendered]
> ./example.js main
dependent modules 254 bytes [dependent] 2 modules
./example.js 72 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -157,5 +157,5 @@ chunk (runtime: main) output.js (main) 326 bytes [entry] [rendered]
./example.js 72 bytes [built] [code generated]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -34,7 +34,7 @@ body {
\*************************/
/*! default exports */
/*! exports [not provided] [no usage info] */
/*! runtime requirements: module, __webpack_require__.p, __webpack_require__.* */
/*! runtime requirements: __webpack_require__.p, module, __webpack_require__.* */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module.exports = __webpack_require__.p + "89a353e9c515885abd8e.png";
@ -150,7 +150,6 @@ module.exports = __webpack_require__.p + "89a353e9c515885abd8e.png";
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -437,6 +436,18 @@ body {
color: darkblue;
}
@media (min-width: 1024px) {
.app-6-main {
color: green;
}
}
@supports (display: grid) {
.app-6-main {
display: grid
}
}
head{--webpack-app-0:_4,_2,_1,_5,large%main/_6;}
```
@ -469,6 +480,18 @@ body {
color: darkblue;
}
@media (min-width: 1024px) {
.app-491-D {
color: green;
}
}
@supports (display: grid) {
.app-491-D {
display: grid
}
}
head{--webpack-app-179:_548,_431,_258,_268,b%D/_491;}
```
@ -487,16 +510,16 @@ head{--webpack-app-1:_7;}
## Unoptimized
```
assets by chunk 16.9 KiB (name: main)
assets by chunk 17 KiB (name: main)
asset output.js 16.5 KiB [emitted] (name: main)
asset output.css 385 bytes [emitted] (name: main)
asset output.css 516 bytes [emitted] (name: main)
asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: images/file.png] (auxiliary name: main)
asset 1.output.css 49 bytes [emitted]
Entrypoint main 16.9 KiB (14.6 KiB) = output.js 16.5 KiB output.css 385 bytes 1 auxiliary asset
chunk (runtime: main) output.js, output.css (main) 218 bytes (javascript) 335 bytes (css) 14.6 KiB (asset) 42 bytes (css-import) 10 KiB (runtime) [entry] [rendered]
Entrypoint main 17 KiB (14.6 KiB) = output.js 16.5 KiB output.css 516 bytes 1 auxiliary asset
chunk (runtime: main) output.js, output.css (main) 218 bytes (javascript) 454 bytes (css) 14.6 KiB (asset) 42 bytes (css-import) 10 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 10 KiB 9 modules
dependent modules 42 bytes (javascript) 14.6 KiB (asset) 335 bytes (css) 42 bytes (css-import) [dependent] 6 modules
dependent modules 42 bytes (javascript) 14.6 KiB (asset) 454 bytes (css) 42 bytes (css-import) [dependent] 6 modules
./example.js 176 bytes [built] [code generated]
[no exports]
[used exports unknown]
@ -507,30 +530,30 @@ chunk (runtime: main) 1.output.css 23 bytes
[no exports]
[used exports unknown]
import() ./lazy-style.css ./example.js 4:0-26
webpack 5.66.0 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
assets by chunk 4.25 KiB (name: main)
asset output.js 3.87 KiB [emitted] [minimized] (name: main)
asset output.css 385 bytes [emitted] (name: main)
assets by chunk 4.38 KiB (name: main)
asset output.js 3.88 KiB [emitted] [minimized] (name: main)
asset output.css 514 bytes [emitted] (name: main)
asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: images/file.png] (auxiliary name: main)
asset 159.output.css 53 bytes [emitted]
Entrypoint main 4.25 KiB (14.6 KiB) = output.js 3.87 KiB output.css 385 bytes 1 auxiliary asset
Entrypoint main 4.38 KiB (14.6 KiB) = output.js 3.88 KiB output.css 514 bytes 1 auxiliary asset
chunk (runtime: main) 159.output.css 23 bytes
> ./lazy-style.css ./example.js 4:0-26
./lazy-style.css 23 bytes [built] [code generated]
[no exports]
import() ./lazy-style.css ./example.js 4:0-26
chunk (runtime: main) output.js, output.css (main) 218 bytes (javascript) 335 bytes (css) 14.6 KiB (asset) 42 bytes (css-import) 10 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js, output.css (main) 218 bytes (javascript) 454 bytes (css) 14.6 KiB (asset) 42 bytes (css-import) 10 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 10 KiB 9 modules
dependent modules 42 bytes (javascript) 14.6 KiB (asset) 335 bytes (css) 42 bytes (css-import) [dependent] 6 modules
dependent modules 42 bytes (javascript) 14.6 KiB (asset) 454 bytes (css) 42 bytes (css-import) [dependent] 6 modules
./example.js 176 bytes [built] [code generated]
[no exports]
[no exports used]
entry ./example.js main
webpack 5.66.0 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -6,3 +6,15 @@
font-size: var(--large);
color: darkblue;
}
@media (min-width: 1024px) {
.main {
color: green;
}
}
@supports (display: grid) {
.main {
display: grid
}
}

View File

@ -255,5 +255,5 @@ chunk (runtime: main) output.js (main) 919 bytes (javascript) 274 bytes (runtime
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -41,7 +41,7 @@ export function square(n) {
# dist/vendor.js
```javascript
var vendor_lib_51062e5e93ee3a0507e7;
var vendor_lib_bef1463383efb1c65306;
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ([
/* 0 */
@ -147,7 +147,7 @@ function square(n) {
/******/ // Load entry module and return exports
/******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
/******/ var __webpack_exports__ = __webpack_require__(0);
/******/ vendor_lib_51062e5e93ee3a0507e7 = __webpack_exports__;
/******/ vendor_lib_bef1463383efb1c65306 = __webpack_exports__;
/******/
/******/ })()
;
@ -156,7 +156,7 @@ function square(n) {
# dist/vendor-manifest.json
```javascript
{"name":"vendor_lib_51062e5e93ee3a0507e7","content":{"../node_modules/example-vendor.js":{"id":1,"buildMeta":{"exportsType":"namespace"},"exports":["square"]}}}
{"name":"vendor_lib_bef1463383efb1c65306","content":{"../node_modules/example-vendor.js":{"id":1,"buildMeta":{"exportsType":"namespace"},"exports":["square"]}}}
```
# Info
@ -173,7 +173,7 @@ chunk (runtime: main) vendor.js (main) 57 bytes (javascript) 670 bytes (runtime)
[used exports unknown]
dll entry
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -187,5 +187,5 @@ chunk (runtime: main) vendor.js (main) 57 bytes (javascript) 670 bytes (runtime)
dll main 12 bytes [built] [code generated]
dll entry
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -53,7 +53,7 @@ console.log(new square(7));
/* 0 */,
/* 1 */
/*!******************************************************************************************************!*\
!*** delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_51062e5e93ee3a0507e7 ***!
!*** delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_bef1463383efb1c65306 ***!
\******************************************************************************************************/
/*! namespace exports */
/*! export square [provided] [no usage info] [provision prevents renaming (no use info)] */
@ -61,12 +61,12 @@ console.log(new square(7));
/*! runtime requirements: module, __webpack_require__ */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module.exports = (__webpack_require__(/*! dll-reference vendor_lib_51062e5e93ee3a0507e7 */ 2))(1);
module.exports = (__webpack_require__(/*! dll-reference vendor_lib_bef1463383efb1c65306 */ 2))(1);
/***/ }),
/* 2 */
/*!**************************************************!*\
!*** external "vendor_lib_51062e5e93ee3a0507e7" ***!
!*** external "vendor_lib_bef1463383efb1c65306" ***!
\**************************************************/
/*! dynamic exports */
/*! exports [maybe provided (runtime-defined)] [no usage info] */
@ -74,7 +74,7 @@ module.exports = (__webpack_require__(/*! dll-reference vendor_lib_51062e5e93ee3
/***/ ((module) => {
"use strict";
module.exports = vendor_lib_51062e5e93ee3a0507e7;
module.exports = vendor_lib_bef1463383efb1c65306;
/***/ })
/******/ ]);
@ -163,7 +163,7 @@ chunk (runtime: main) app.js (main) 178 bytes (javascript) 274 bytes (runtime) [
[no exports]
[used exports unknown]
entry ./example-app main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -177,7 +177,7 @@ chunk (runtime: main) app.js (main) 178 bytes [entry] [rendered]
[no exports]
[no exports used]
entry ./example-app main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
<!-- @TODO:

View File

@ -63,7 +63,7 @@ module.exports = {
# dist/dll.js
```javascript
var dll_c76e18f6e067cdcb6208;
var dll_3f097cf91db05865c656;
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ([
/* 0 */
@ -208,7 +208,7 @@ exports.c = "c";
/******/ // Load entry module and return exports
/******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
/******/ var __webpack_exports__ = __webpack_require__(0);
/******/ dll_c76e18f6e067cdcb6208 = __webpack_exports__;
/******/ dll_3f097cf91db05865c656 = __webpack_exports__;
/******/
/******/ })()
;
@ -217,7 +217,7 @@ exports.c = "c";
# dist/dll-manifest.json
```javascript
{"name":"dll_c76e18f6e067cdcb6208","content":{"./example.js":{"id":1,"buildMeta":{"exportsType":"namespace"},"exports":["a","b","c"]}}}
{"name":"dll_3f097cf91db05865c656","content":{"./example.js":{"id":1,"buildMeta":{"exportsType":"namespace"},"exports":["a","b","c"]}}}
```
# Info
@ -234,7 +234,7 @@ chunk (runtime: dll) dll.js (dll) 211 bytes (javascript) 670 bytes (runtime) [en
[used exports unknown]
dll entry
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -248,5 +248,5 @@ chunk (runtime: dll) dll.js (dll) 211 bytes (javascript) 670 bytes (runtime) [en
dll dll 12 bytes [built] [code generated]
dll entry
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -46,18 +46,18 @@ console.log(require("module"));
/* 0 */,
/* 1 */
/*!**************************************************************************!*\
!*** delegated ./alpha.js from dll-reference alpha_32ae439e7568b31a353c ***!
!*** delegated ./alpha.js from dll-reference alpha_a53f6ab3ecd4de18316c ***!
\**************************************************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: module, __webpack_require__ */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module.exports = (__webpack_require__(/*! dll-reference alpha_32ae439e7568b31a353c */ 2))(1);
module.exports = (__webpack_require__(/*! dll-reference alpha_a53f6ab3ecd4de18316c */ 2))(1);
/***/ }),
/* 2 */
/*!*********************************************!*\
!*** external "alpha_32ae439e7568b31a353c" ***!
!*** external "alpha_a53f6ab3ecd4de18316c" ***!
\*********************************************/
/*! dynamic exports */
/*! exports [maybe provided (runtime-defined)] [no usage info] */
@ -65,34 +65,34 @@ module.exports = (__webpack_require__(/*! dll-reference alpha_32ae439e7568b31a35
/***/ ((module) => {
"use strict";
module.exports = alpha_32ae439e7568b31a353c;
module.exports = alpha_a53f6ab3ecd4de18316c;
/***/ }),
/* 3 */
/*!**********************************************************************!*\
!*** delegated ./a.js from dll-reference alpha_32ae439e7568b31a353c ***!
!*** delegated ./a.js from dll-reference alpha_a53f6ab3ecd4de18316c ***!
\**********************************************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: module, __webpack_require__ */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module.exports = (__webpack_require__(/*! dll-reference alpha_32ae439e7568b31a353c */ 2))(2);
module.exports = (__webpack_require__(/*! dll-reference alpha_a53f6ab3ecd4de18316c */ 2))(2);
/***/ }),
/* 4 */
/*!************************************************************************!*\
!*** delegated ./beta.js from dll-reference beta_32ae439e7568b31a353c ***!
!*** delegated ./beta.js from dll-reference beta_a53f6ab3ecd4de18316c ***!
\************************************************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: module, __webpack_require__ */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module.exports = (__webpack_require__(/*! dll-reference beta_32ae439e7568b31a353c */ 5))(5);
module.exports = (__webpack_require__(/*! dll-reference beta_a53f6ab3ecd4de18316c */ 5))(5);
/***/ }),
/* 5 */
/*!********************************************!*\
!*** external "beta_32ae439e7568b31a353c" ***!
!*** external "beta_a53f6ab3ecd4de18316c" ***!
\********************************************/
/*! dynamic exports */
/*! exports [maybe provided (runtime-defined)] [no usage info] */
@ -100,40 +100,40 @@ module.exports = (__webpack_require__(/*! dll-reference beta_32ae439e7568b31a353
/***/ ((module) => {
"use strict";
module.exports = beta_32ae439e7568b31a353c;
module.exports = beta_a53f6ab3ecd4de18316c;
/***/ }),
/* 6 */
/*!*********************************************************************!*\
!*** delegated ./b.js from dll-reference beta_32ae439e7568b31a353c ***!
!*** delegated ./b.js from dll-reference beta_a53f6ab3ecd4de18316c ***!
\*********************************************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: module, __webpack_require__ */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module.exports = (__webpack_require__(/*! dll-reference beta_32ae439e7568b31a353c */ 5))(6);
module.exports = (__webpack_require__(/*! dll-reference beta_a53f6ab3ecd4de18316c */ 5))(6);
/***/ }),
/* 7 */
/*!**********************************************************************!*\
!*** delegated ./c.jsx from dll-reference beta_32ae439e7568b31a353c ***!
!*** delegated ./c.jsx from dll-reference beta_a53f6ab3ecd4de18316c ***!
\**********************************************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: module, __webpack_require__ */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module.exports = (__webpack_require__(/*! dll-reference beta_32ae439e7568b31a353c */ 5))(7);
module.exports = (__webpack_require__(/*! dll-reference beta_a53f6ab3ecd4de18316c */ 5))(7);
/***/ }),
/* 8 */
/*!*****************************************************************************************!*\
!*** delegated ../node_modules/module.js from dll-reference alpha_32ae439e7568b31a353c ***!
!*** delegated ../node_modules/module.js from dll-reference alpha_a53f6ab3ecd4de18316c ***!
\*****************************************************************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: module, __webpack_require__ */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module.exports = (__webpack_require__(/*! dll-reference alpha_32ae439e7568b31a353c */ 2))(3);
module.exports = (__webpack_require__(/*! dll-reference alpha_a53f6ab3ecd4de18316c */ 2))(3);
/***/ })
/******/ ]);
@ -208,7 +208,7 @@ chunk (runtime: main) output.js (main) 541 bytes [entry] [rendered]
./example.js 205 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -221,5 +221,5 @@ chunk (runtime: main) output.js (main) 541 bytes [entry] [rendered]
./example.js 205 bytes [built] [code generated]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -35,7 +35,7 @@ module.exports = {
# dist/MyDll.alpha.js
```javascript
var alpha_32ae439e7568b31a353c;
var alpha_a53f6ab3ecd4de18316c;
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ([
/* 0 */
@ -127,7 +127,7 @@ module.exports = "module";
/******/ // Load entry module and return exports
/******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
/******/ var __webpack_exports__ = __webpack_require__(0);
/******/ alpha_32ae439e7568b31a353c = __webpack_exports__;
/******/ alpha_a53f6ab3ecd4de18316c = __webpack_exports__;
/******/
/******/ })()
;
@ -136,7 +136,7 @@ module.exports = "module";
# dist/alpha-manifest.json
```javascript
{"name":"alpha_32ae439e7568b31a353c","content":{"./alpha.js":{"id":1,"buildMeta":{}},"./a.js":{"id":2,"buildMeta":{}},"../node_modules/module.js":{"id":3,"buildMeta":{}}}}
{"name":"alpha_a53f6ab3ecd4de18316c","content":{"./alpha.js":{"id":1,"buildMeta":{}},"./a.js":{"id":2,"buildMeta":{}},"../node_modules/module.js":{"id":3,"buildMeta":{}}}}
```
# Info
@ -160,7 +160,7 @@ chunk (runtime: beta) MyDll.beta.js (beta) 80 bytes [entry] [rendered]
[used exports unknown]
dll entry
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -180,5 +180,5 @@ chunk (runtime: beta) MyDll.beta.js (beta) 80 bytes [entry] [rendered]
dll beta 12 bytes [built] [code generated]
dll entry
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -46,7 +46,7 @@ module.exports = [
# dist/vendor.js
```javascript
var vendor_5993716ff0c3ad2aef3c;
var vendor_3fdea2c5a4937b737605;
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ([
/* 0 */
@ -126,7 +126,7 @@ module.exports = "Vendor2";
/******/ // Load entry module and return exports
/******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
/******/ var __webpack_exports__ = __webpack_require__(0);
/******/ vendor_5993716ff0c3ad2aef3c = __webpack_exports__;
/******/ vendor_3fdea2c5a4937b737605 = __webpack_exports__;
/******/
/******/ })()
;
@ -152,18 +152,18 @@ module.exports = "pageA";
/***/ }),
/* 1 */
/*!****************************************************************************!*\
!*** delegated ./vendor.js from dll-reference vendor_5993716ff0c3ad2aef3c ***!
!*** delegated ./vendor.js from dll-reference vendor_3fdea2c5a4937b737605 ***!
\****************************************************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: module, __webpack_require__ */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module.exports = (__webpack_require__(/*! dll-reference vendor_5993716ff0c3ad2aef3c */ 2))(1);
module.exports = (__webpack_require__(/*! dll-reference vendor_3fdea2c5a4937b737605 */ 2))(1);
/***/ }),
/* 2 */
/*!**********************************************!*\
!*** external "vendor_5993716ff0c3ad2aef3c" ***!
!*** external "vendor_3fdea2c5a4937b737605" ***!
\**********************************************/
/*! dynamic exports */
/*! exports [maybe provided (runtime-defined)] [no usage info] */
@ -171,7 +171,7 @@ module.exports = (__webpack_require__(/*! dll-reference vendor_5993716ff0c3ad2ae
/***/ ((module) => {
"use strict";
module.exports = vendor_5993716ff0c3ad2aef3c;
module.exports = vendor_3fdea2c5a4937b737605;
/***/ })
/******/ ]);
@ -235,7 +235,7 @@ vendor:
[used exports unknown]
dll entry
used as library export
vendor (webpack 5.51.1) compiled successfully
vendor (webpack 5.78.0) compiled successfully
app:
asset pageB.js 2.63 KiB [emitted] (name: pageB)
@ -261,7 +261,7 @@ app:
[used exports unknown]
cjs self exports reference ./pageC.js 1:0-14
entry ./pageC pageC
app (webpack 5.51.1) compiled successfully
app (webpack 5.78.0) compiled successfully
```
## Production mode
@ -275,7 +275,7 @@ vendor:
dll main 12 bytes [built] [code generated]
dll entry
used as library export
vendor (webpack 5.51.1) compiled successfully
vendor (webpack 5.78.0) compiled successfully
app:
asset pageA.js 297 bytes [emitted] [minimized] (name: pageA)
@ -301,5 +301,5 @@ app:
[used exports unknown]
cjs self exports reference ./pageA.js 2:0-14
entry ./pageA pageA
app (webpack 5.51.1) compiled successfully
app (webpack 5.78.0) compiled successfully
```

View File

@ -58,7 +58,7 @@ module.exports = {
var a = typeof exports === 'object' ? factory(require("add"), require("./math")["subtract"]) : factory(root["add"], root["subtract"]);
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(self, function(__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) {
})(self, (__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) => {
return /******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ([
/* 0 */,
@ -153,7 +153,7 @@ exports.exampleValue = subtract(add(42, 2), 2);
## Unoptimized
```
asset output.js 3.28 KiB [emitted] (name: main)
asset output.js 3.27 KiB [emitted] (name: main)
chunk (runtime: main) output.js (main) 194 bytes [entry] [rendered]
> ./example.js main
dependent modules 84 bytes [dependent] 2 modules
@ -162,13 +162,13 @@ chunk (runtime: main) output.js (main) 194 bytes [entry] [rendered]
[used exports unknown]
entry ./example.js main
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 679 bytes [emitted] [minimized] (name: main)
asset output.js 665 bytes [emitted] [minimized] (name: main)
chunk (runtime: main) output.js (main) 194 bytes [entry] [rendered]
> ./example.js main
dependent modules 84 bytes [dependent] 2 modules
@ -176,5 +176,5 @@ chunk (runtime: main) output.js (main) 194 bytes [entry] [rendered]
[exports: exampleValue]
entry ./example.js main
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -137,7 +137,6 @@ module.exports = {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -230,7 +229,7 @@ module.exports = {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -252,22 +251,22 @@ var __webpack_exports__ = {};
\********************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.oe, __webpack_require__.* */
Promise.all(/*! AMD require */[__webpack_require__.e(996), __webpack_require__.e(847), __webpack_require__.e(460)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 1), __webpack_require__(/*! ./b */ 2), __webpack_require__(/*! ./c */ 3)]; (function(a, b, c) {}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}).catch(__webpack_require__.oe);
Promise.all(/*! AMD require */[__webpack_require__.e(996), __webpack_require__.e(847), __webpack_require__.e(460)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 1), __webpack_require__(/*! ./b */ 2), __webpack_require__(/*! ./c */ 3)]; (function(a, b, c) {}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);})['catch'](__webpack_require__.oe);
Promise.all(/*! require.ensure */[__webpack_require__.e(996), __webpack_require__.e(847), __webpack_require__.e(767)]).then((function(require) {
__webpack_require__(/*! ./b */ 2);
__webpack_require__(/*! ./d */ 4);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
Promise.all(/*! require.ensure */[__webpack_require__.e(847), __webpack_require__.e(390)]).then((function(require) {
__webpack_require__(/*! ./a */ 1);
Promise.all(/*! require.ensure */[__webpack_require__.e(996), __webpack_require__.e(568)]).then((function(require) {
__webpack_require__(/*! ./f */ 6);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
Promise.all(/*! require.ensure */[__webpack_require__.e(996), __webpack_require__.e(785)]).then((function(require) {
__webpack_require__(/*! ./g */ 7);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
/******/ })()
;
@ -286,9 +285,9 @@ asset 568.output.js 338 bytes [emitted]
asset 767.output.js 338 bytes [emitted]
asset 785.output.js 338 bytes [emitted]
asset 996.output.js 338 bytes [emitted]
chunk (runtime: main) output.js (main) 346 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 346 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./example.js 346 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
@ -345,13 +344,13 @@ chunk (runtime: main) 996.output.js 21 bytes [rendered] split chunk (cache group
cjs require ./b ./example.js 4:1-15
require.ensure item ./b ./example.js 10:1-12:3
require.ensure item ./b ./example.js 13:1-15:3
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 2.12 KiB [emitted] [minimized] (name: main)
asset output.js 2.11 KiB [emitted] [minimized] (name: main)
asset 390.output.js 81 bytes [emitted] [minimized]
asset 460.output.js 81 bytes [emitted] [minimized]
asset 568.output.js 81 bytes [emitted] [minimized]
@ -359,9 +358,9 @@ asset 767.output.js 81 bytes [emitted] [minimized]
asset 785.output.js 81 bytes [emitted] [minimized]
asset 847.output.js 81 bytes [emitted] [minimized]
asset 996.output.js 81 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 346 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 346 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./example.js 346 bytes [built] [code generated]
[no exports used]
entry ./example.js main
@ -418,5 +417,5 @@ chunk (runtime: main) 996.output.js 21 bytes [rendered] split chunk (cache group
cjs require ./b ./example.js 4:1-15
require.ensure item ./b ./example.js 10:1-12:3
require.ensure item ./b ./example.js 13:1-15:3
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -148,7 +148,6 @@ require.ensure(["./a"], function(require) {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -241,7 +240,7 @@ require.ensure(["./a"], function(require) {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -264,13 +263,13 @@ var __webpack_exports__ = {};
/*! unknown exports (runtime-defined) */
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.oe, __webpack_require__.* */
// a chunks with a, b, c
Promise.all(/*! AMD require */[__webpack_require__.e(394), __webpack_require__.e(460)]).then(function() {[__webpack_require__(/*! ./a */ 1), __webpack_require__(/*! ./b */ 2), __webpack_require__(/*! ./c */ 3)];}).catch(__webpack_require__.oe);
Promise.all(/*! AMD require */[__webpack_require__.e(394), __webpack_require__.e(460)]).then(function() {[__webpack_require__(/*! ./a */ 1), __webpack_require__(/*! ./b */ 2), __webpack_require__(/*! ./c */ 3)];})['catch'](__webpack_require__.oe);
// a chunk with a, b, d
Promise.all(/*! require.ensure */[__webpack_require__.e(394), __webpack_require__.e(767)]).then((function(require) {
__webpack_require__(/*! ./b */ 2);
__webpack_require__(/*! ./d */ 4);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
/******/ })()
;
@ -355,13 +354,13 @@ module.exports = "d";
## Unoptimized
```
asset output.js 9.18 KiB [emitted] (name: main)
asset output.js 9.17 KiB [emitted] (name: main)
asset 394.output.js 610 bytes [emitted]
asset 460.output.js 338 bytes [emitted]
asset 767.output.js 338 bytes [emitted]
chunk (runtime: main) output.js (main) 164 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 164 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./example.js 164 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
@ -390,7 +389,7 @@ chunk (runtime: main) 767.output.js 21 bytes [rendered]
[used exports unknown]
cjs self exports reference ./d.js 1:0-14
cjs require ./d ./example.js 7:1-15
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -400,9 +399,9 @@ asset output.js 1.81 KiB [emitted] [minimized] (name: main)
asset 394.output.js 104 bytes [emitted] [minimized]
asset 460.output.js 81 bytes [emitted] [minimized]
asset 767.output.js 81 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 164 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 164 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./example.js 164 bytes [built] [code generated]
[no exports used]
entry ./example.js main
@ -431,5 +430,5 @@ chunk (runtime: main) 767.output.js 21 bytes [rendered]
[used exports unknown]
cjs self exports reference ./d.js 1:0-14
cjs require ./d ./example.js 7:1-15
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -286,7 +286,7 @@ chunk (runtime: main) output.js (main) 1.13 KiB (javascript) 937 bytes (runtime)
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -301,5 +301,5 @@ chunk (runtime: main) output.js (main) 1.13 KiB (javascript) 670 bytes (runtime)
[no exports]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -26,7 +26,7 @@ module.exports = {
exports["MyLibrary"] = factory();
else
root["MyLibrary"] = factory();
})(self, function() {
})(self, () => {
return /******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ // The require scope
@ -84,9 +84,9 @@ var __webpack_exports__ = {};
/*! runtime requirements: __webpack_exports__, __webpack_require__.r, __webpack_require__.d, __webpack_require__.* */
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "value": () => (/* binding */ value),
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */ "increment": () => (/* binding */ increment),
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ "value": () => (/* binding */ value)
/* harmony export */ });
var value = 0;
function increment() {
@ -105,7 +105,7 @@ function increment() {
## Unoptimized
```
asset MyLibrary.umd.js 2.89 KiB [emitted] (name: main)
asset MyLibrary.umd.js 2.88 KiB [emitted] (name: main)
chunk (runtime: main) MyLibrary.umd.js (main) 92 bytes (javascript) 670 bytes (runtime) [entry] [rendered]
> ./example main
runtime modules 670 bytes 3 modules
@ -114,13 +114,13 @@ chunk (runtime: main) MyLibrary.umd.js (main) 92 bytes (javascript) 670 bytes (r
[used exports unknown]
entry ./example main
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset MyLibrary.umd.js 688 bytes [emitted] [minimized] (name: main)
asset MyLibrary.umd.js 674 bytes [emitted] [minimized] (name: main)
chunk (runtime: main) MyLibrary.umd.js (main) 92 bytes (javascript) 670 bytes (runtime) [entry] [rendered]
> ./example main
runtime modules 670 bytes 3 modules
@ -128,5 +128,5 @@ chunk (runtime: main) MyLibrary.umd.js (main) 92 bytes (javascript) 670 bytes (r
[exports: default, increment, value]
entry ./example main
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -69,8 +69,8 @@ export { add as reexportedAdd, multiply as reexportedMultiply } from "./math";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "add": () => (/* binding */ add),
/* harmony export */ "multiply": () => (/* binding */ multiply),
/* harmony export */ "list": () => (/* binding */ list)
/* harmony export */ "list": () => (/* binding */ list),
/* harmony export */ "multiply": () => (/* binding */ multiply)
/* harmony export */ });
function add() {
var sum = 0, i = 0, args = arguments, l = args.length;
@ -256,7 +256,7 @@ chunk (runtime: main) output.js (main) 698 bytes (javascript) 670 bytes (runtime
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -271,5 +271,5 @@ chunk (runtime: main) output.js (main) 461 bytes (javascript) 396 bytes (runtime
[no exports]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -185,7 +185,6 @@ function add() {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -289,7 +288,7 @@ function add() {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -352,13 +351,13 @@ chunk (runtime: main) output.js (main) 400 bytes (javascript) 5.54 KiB (runtime)
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 2.04 KiB [emitted] [minimized] (name: main)
asset output.js 2.03 KiB [emitted] [minimized] (name: main)
asset 35.output.js 122 bytes [emitted] [minimized]
chunk (runtime: main) 35.output.js 24 bytes [rendered]
> ./async-loaded ./example.js 6:0-24
@ -372,5 +371,5 @@ chunk (runtime: main) output.js (main) 400 bytes (javascript) 5.54 KiB (runtime)
[no exports]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -46,45 +46,45 @@ module.exports = {
## Unoptimized
```
asset f2fe25321765cafe1394.js 119 KiB [emitted] [immutable] (id hint: vendors)
asset 69c04fd86d28ad70ad54.js 25.7 KiB [emitted] [immutable] (name: main)
asset d55c486284db715b4167.js 15.3 KiB [emitted] [immutable]
chunk (runtime: main) 69c04fd86d28ad70ad54.js (main) 8.58 KiB (javascript) 5.02 KiB (runtime) [entry] [rendered]
asset 4fb93bdcf707906b4096.js 130 KiB [emitted] [immutable] (id hint: vendors)
asset 946bfb099aeb10733813.js 25.5 KiB [emitted] [immutable] (name: main)
asset fc12108f1066403ead6b.js 14.6 KiB [emitted] [immutable]
chunk (runtime: main) 946bfb099aeb10733813.js (main) 6.98 KiB (javascript) 5.02 KiB (runtime) [entry] [rendered]
> ./example main
runtime modules 5.02 KiB 6 modules
dependent modules 8.54 KiB [dependent] 3 modules
dependent modules 6.94 KiB [dependent] 2 modules
./example.js 42 bytes [built] [code generated]
chunk (runtime: main) d55c486284db715b4167.js 6.24 KiB [rendered]
chunk (runtime: main) fc12108f1066403ead6b.js 5.66 KiB [rendered]
> react-dom ./example.js 2:0-22
dependent modules 4.72 KiB [dependent] 1 module
dependent modules 4.14 KiB [dependent] 1 module
../../node_modules/react-dom/index.js 1.33 KiB [built] [code generated]
../../node_modules/scheduler/index.js 198 bytes [built] [code generated]
chunk (runtime: main) f2fe25321765cafe1394.js (id hint: vendors) 118 KiB [rendered] [recorded] aggressive splitted, reused as split chunk (cache group: defaultVendors)
chunk (runtime: main) 4fb93bdcf707906b4096.js (id hint: vendors) 129 KiB [rendered] [recorded] aggressive splitted, reused as split chunk (cache group: defaultVendors)
> react-dom ./example.js 2:0-22
../../node_modules/react-dom/cjs/react-dom.production.min.js 118 KiB [built] [code generated]
webpack 5.51.1 compiled successfully
../../node_modules/react-dom/cjs/react-dom.production.min.js 129 KiB [built] [code generated]
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset c8fa933d7a3ad24388bb.js 115 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
asset 0db29d54b9bbcbe2b30c.js 8.6 KiB [emitted] [immutable] [minimized] (name: main) 1 related asset
asset 2dda43f08b24e3f1b2bf.js 4.68 KiB [emitted] [immutable] [minimized] 1 related asset
chunk (runtime: main) 0db29d54b9bbcbe2b30c.js (main) 8.58 KiB (javascript) 5.03 KiB (runtime) [entry] [rendered]
asset 8d87087aa75c47be9b05.js 126 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
asset 9d09362c80c0b4708c7a.js 8.14 KiB [emitted] [immutable] [minimized] (name: main) 1 related asset
asset b9e0b2d00d17329af7b7.js 4.12 KiB [emitted] [immutable] [minimized] 1 related asset
chunk (runtime: main) 9d09362c80c0b4708c7a.js (main) 6.98 KiB (javascript) 5.02 KiB (runtime) [entry] [rendered]
> ./example main
runtime modules 5.03 KiB 6 modules
dependent modules 8.54 KiB [dependent] 3 modules
runtime modules 5.02 KiB 6 modules
dependent modules 6.94 KiB [dependent] 2 modules
./example.js 42 bytes [built] [code generated]
chunk (runtime: main) 2dda43f08b24e3f1b2bf.js 6.24 KiB [rendered]
chunk (runtime: main) b9e0b2d00d17329af7b7.js 5.66 KiB [rendered]
> react-dom ./example.js 2:0-22
dependent modules 4.72 KiB [dependent] 1 module
dependent modules 4.14 KiB [dependent] 1 module
../../node_modules/react-dom/index.js 1.33 KiB [built] [code generated]
../../node_modules/scheduler/index.js 198 bytes [built] [code generated]
chunk (runtime: main) c8fa933d7a3ad24388bb.js (id hint: vendors) 118 KiB [rendered] [recorded] aggressive splitted, reused as split chunk (cache group: defaultVendors)
chunk (runtime: main) 8d87087aa75c47be9b05.js (id hint: vendors) 129 KiB [rendered] [recorded] aggressive splitted, reused as split chunk (cache group: defaultVendors)
> react-dom ./example.js 2:0-22
../../node_modules/react-dom/cjs/react-dom.production.min.js 118 KiB [built] [code generated]
webpack 5.51.1 compiled successfully
../../node_modules/react-dom/cjs/react-dom.production.min.js 129 KiB [built] [code generated]
webpack 5.78.0 compiled successfully
```
## Records
@ -93,12 +93,12 @@ webpack 5.51.1 compiled successfully
{
"aggressiveSplits": [
{
"hash": "f2fe25321765cafe1394b09fbb9aa0cb",
"hash": "4fb93bdcf707906b4096f918339c66ef",
"id": 2,
"modules": [
"../../node_modules/react-dom/cjs/react-dom.production.min.js"
],
"size": 120688
"size": 131737
}
],
"chunks": {
@ -118,13 +118,12 @@ webpack 5.51.1 compiled successfully
},
"modules": {
"byIdentifier": {
"../../node_modules/object-assign/index.js": 3,
"../../node_modules/react-dom/cjs/react-dom.production.min.js": 5,
"../../node_modules/react-dom/index.js": 4,
"../../node_modules/react-dom/cjs/react-dom.production.min.js": 4,
"../../node_modules/react-dom/index.js": 3,
"../../node_modules/react/cjs/react.production.min.js": 2,
"../../node_modules/react/index.js": 1,
"../../node_modules/scheduler/cjs/scheduler.production.min.js": 7,
"../../node_modules/scheduler/index.js": 6,
"../../node_modules/scheduler/cjs/scheduler.production.min.js": 6,
"../../node_modules/scheduler/index.js": 5,
"./example.js": 0
},
"usedIds": [
@ -134,8 +133,7 @@ webpack 5.51.1 compiled successfully
3,
4,
5,
6,
7
6
]
}
}

View File

@ -366,7 +366,6 @@ render(__webpack_require__(/*! ./aPage */ 2));
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -470,7 +469,7 @@ render(__webpack_require__(/*! ./aPage */ 2));
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ return __webpack_require__.O(result);
/******/ }
@ -531,8 +530,8 @@ asset pageA.bundle.js 13 KiB [emitted] (name: pageA)
asset router_js.bundle.js 2.45 KiB [emitted]
asset aPage.bundle.js 392 bytes [emitted] (name: aPage)
asset bPage.bundle.js 392 bytes [emitted] (name: bPage)
Entrypoint pageA 15.9 KiB = router_js.bundle.js 2.45 KiB aPage.bundle.js 392 bytes pageA.bundle.js 13 KiB
Entrypoint pageB 15.9 KiB = router_js.bundle.js 2.45 KiB bPage.bundle.js 392 bytes pageB.bundle.js 13 KiB
Entrypoint pageA 15.8 KiB = router_js.bundle.js 2.45 KiB aPage.bundle.js 392 bytes pageA.bundle.js 13 KiB
Entrypoint pageB 15.8 KiB = router_js.bundle.js 2.45 KiB bPage.bundle.js 392 bytes pageB.bundle.js 13 KiB
chunk (runtime: pageA, pageB) aPage.bundle.js (aPage) 59 bytes [initial] [rendered] reused as split chunk (cache group: default)
> ./aPage ././ lazy ^\.\/.*Page$ chunkName: [request] namespace object ./aPage
> ./aEntry pageA
@ -575,7 +574,7 @@ chunk (runtime: pageA, pageB) router_js.bundle.js 951 bytes [initial] [rendered]
[used exports unknown]
entry ./router pageA
entry ./router pageB
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -630,5 +629,5 @@ chunk (runtime: pageA, pageB) router_js.bundle.js 951 bytes [initial] [rendered]
[no exports used]
entry ./router pageA
entry ./router pageB
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -279,7 +279,7 @@ chunk (runtime: main) output.js (main) 2.14 KiB (javascript) 937 bytes (runtime)
./example.js 205 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -293,5 +293,5 @@ chunk (runtime: main) output.js (main) 2.14 KiB (javascript) 937 bytes (runtime)
./example.js 205 bytes [built] [code generated]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -58,12 +58,12 @@ assets by chunk 772 bytes (id hint: vendors)
asset 497.js 111 bytes [emitted] [minimized] (id hint: vendors)
asset 730.js 111 bytes [emitted] [minimized] (id hint: vendors)
asset 777.js 111 bytes [emitted] [minimized] (id hint: vendors)
asset pageC.js 1.26 KiB [emitted] [minimized] (name: pageC)
asset pageB.js 1.26 KiB [emitted] [minimized] (name: pageB)
asset pageC.js 1.25 KiB [emitted] [minimized] (name: pageC)
asset pageB.js 1.25 KiB [emitted] [minimized] (name: pageB)
asset pageD.js 1.18 KiB [emitted] [minimized] (name: pageD)
asset pageF.js 1.18 KiB [emitted] [minimized] (name: pageF)
asset pageA.js 1.18 KiB [emitted] [minimized] (name: pageA)
asset pageE.js 1.17 KiB [emitted] [minimized] (name: pageE)
asset pageE.js 1.16 KiB [emitted] [minimized] (name: pageE)
asset pageG.js 1.15 KiB [emitted] [minimized] (name: pageG)
asset 505.js 140 bytes [emitted] [minimized]
chunk (runtime: pageA, pageB, pageC) 115.js (id hint: vendors) 86 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
@ -72,27 +72,27 @@ chunk (runtime: pageA, pageB, pageC) 115.js (id hint: vendors) 86 bytes [initial
> ./pages/c pageC
./node_modules/m1.js 43 bytes [built] [code generated]
./node_modules/m2.js 43 bytes [built] [code generated]
chunk (runtime: pageB) pageB.js (pageB) 199 bytes (javascript) 3.02 KiB (runtime) [entry] [rendered]
chunk (runtime: pageB) pageB.js (pageB) 199 bytes (javascript) 3.01 KiB (runtime) [entry] [rendered]
> ./pages/b pageB
runtime modules 3.02 KiB 5 modules
runtime modules 3.01 KiB 5 modules
dependent modules 93 bytes [dependent] 3 modules
./pages/b.js 106 bytes [built] [code generated]
chunk (runtime: pageC) pageC.js (pageC) 199 bytes (javascript) 3.02 KiB (runtime) [entry] [rendered]
chunk (runtime: pageC) pageC.js (pageC) 199 bytes (javascript) 3.01 KiB (runtime) [entry] [rendered]
> ./pages/c pageC
runtime modules 3.02 KiB 5 modules
runtime modules 3.01 KiB 5 modules
dependent modules 93 bytes [dependent] 3 modules
./pages/c.js 106 bytes [built] [code generated]
chunk (runtime: pageE) pageE.js (pageE) 93 bytes (javascript) 3.02 KiB (runtime) [entry] [rendered]
chunk (runtime: pageE) pageE.js (pageE) 93 bytes (javascript) 3.01 KiB (runtime) [entry] [rendered]
> ./pages/e pageE
runtime modules 3.02 KiB 5 modules
runtime modules 3.01 KiB 5 modules
dependent modules 31 bytes [dependent] 1 module
./pages/e.js 62 bytes [built] [code generated]
chunk (runtime: pageC) 402.js (id hint: vendors) 43 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
> ./pages/c pageC
./node_modules/m5.js 43 bytes [built] [code generated]
chunk (runtime: pageA) pageA.js (pageA) 137 bytes (javascript) 3.02 KiB (runtime) [entry] [rendered]
chunk (runtime: pageA) pageA.js (pageA) 137 bytes (javascript) 3.01 KiB (runtime) [entry] [rendered]
> ./pages/a pageA
runtime modules 3.02 KiB 5 modules
runtime modules 3.01 KiB 5 modules
dependent modules 31 bytes [dependent] 1 module
./pages/a.js 106 bytes [built] [code generated]
chunk (runtime: pageB) 497.js (id hint: vendors) 43 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
@ -104,14 +104,14 @@ chunk (runtime: pageA, pageD, pageF) 505.js 62 bytes [initial] [rendered] split
> ./pages/f pageF
./stuff/s2.js 31 bytes [built] [code generated]
./stuff/s3.js 31 bytes [built] [code generated]
chunk (runtime: pageG) pageG.js (pageG) 67 bytes (javascript) 3.02 KiB (runtime) [entry] [rendered]
chunk (runtime: pageG) pageG.js (pageG) 67 bytes (javascript) 3.01 KiB (runtime) [entry] [rendered]
> ./pages/g pageG
runtime modules 3.02 KiB 5 modules
runtime modules 3.01 KiB 5 modules
dependent modules 31 bytes [dependent] 1 module
./pages/g.js 36 bytes [built] [code generated]
chunk (runtime: pageD) pageD.js (pageD) 137 bytes (javascript) 3.02 KiB (runtime) [entry] [rendered]
chunk (runtime: pageD) pageD.js (pageD) 137 bytes (javascript) 3.01 KiB (runtime) [entry] [rendered]
> ./pages/d pageD
runtime modules 3.02 KiB 5 modules
runtime modules 3.01 KiB 5 modules
dependent modules 31 bytes [dependent] 1 module
./pages/d.js 106 bytes [built] [code generated]
chunk (runtime: pageA) 730.js (id hint: vendors) 43 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
@ -123,9 +123,9 @@ chunk (runtime: pageD, pageE, pageF, pageG) 777.js (id hint: vendors) 43 bytes [
> ./pages/f pageF
> ./pages/g pageG
./node_modules/m6.js 43 bytes [built] [code generated]
chunk (runtime: pageF) pageF.js (pageF) 137 bytes (javascript) 3.02 KiB (runtime) [entry] [rendered]
chunk (runtime: pageF) pageF.js (pageF) 137 bytes (javascript) 3.01 KiB (runtime) [entry] [rendered]
> ./pages/f pageF
runtime modules 3.02 KiB 5 modules
runtime modules 3.01 KiB 5 modules
dependent modules 31 bytes [dependent] 1 module
./pages/f.js 106 bytes [built] [code generated]
chunk (runtime: pageD, pageE, pageF) 833.js (id hint: vendors) 86 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
@ -134,5 +134,5 @@ chunk (runtime: pageD, pageE, pageF) 833.js (id hint: vendors) 86 bytes [initial
> ./pages/f pageF
./node_modules/m7.js 43 bytes [built] [code generated]
./node_modules/m8.js 43 bytes [built] [code generated]
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -76,7 +76,7 @@ module.exports = 123;
Promise.resolve(/*! AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./amd */ 2), __webpack_require__(/*! ./harmony */ 3)]; (function(amd1, harmony) {
var amd2 = __webpack_require__(/*! ./amd */ 2);
var harmony2 = __webpack_require__(/*! ./harmony */ 3);
}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}).catch(__webpack_require__.oe);
}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);})['catch'](__webpack_require__.oe);
/***/ }),
/* 2 */
@ -249,7 +249,6 @@ __webpack_require__.r(__webpack_exports__);
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -353,7 +352,7 @@ __webpack_require__.r(__webpack_exports__);
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -388,7 +387,7 @@ __webpack_require__.e(/*! AMD require */ 635).then(function() { var __WEBPACK_AM
__webpack_require__(4)("./"+amd1+".js"),
Math.random() < 0.5 ? __webpack_require__(/*! ./commonjs */ 1) : __webpack_require__(/*! ./amd */ 2)]; (function(commonjs2, amd2, template, randModule) {
// Do something with it...
}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}).catch(__webpack_require__.oe);
}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);})['catch'](__webpack_require__.oe);
})();
@ -492,9 +491,9 @@ module.exports = function() {
```
asset output.js 13.8 KiB [emitted] (name: main)
asset 635.output.js 2.24 KiB [emitted]
chunk (runtime: main) output.js (main) 1010 bytes (javascript) 5.81 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 1010 bytes (javascript) 5.8 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 5.81 KiB 9 modules
runtime modules 5.8 KiB 9 modules
dependent modules 617 bytes [dependent] 3 modules
./example.js 396 bytes [built] [code generated]
[used exports unknown]
@ -506,17 +505,17 @@ chunk (runtime: main) 635.output.js 433 bytes [rendered]
[no exports]
[used exports unknown]
amd require context ./example.js 7:0-14:1
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 2.5 KiB [emitted] [minimized] (name: main)
asset output.js 2.49 KiB [emitted] [minimized] (name: main)
asset 635.output.js 580 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 1010 bytes (javascript) 5.81 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 1010 bytes (javascript) 5.8 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 5.81 KiB 9 modules
runtime modules 5.8 KiB 9 modules
dependent modules 617 bytes [dependent] 3 modules
./example.js 396 bytes [built] [code generated]
[no exports used]
@ -527,5 +526,5 @@ chunk (runtime: main) 635.output.js 433 bytes [rendered]
../require.context/templates/ sync ^\.\/.*\.js$ 193 bytes [built] [code generated]
[no exports]
amd require context ./example.js 7:0-14:1
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -250,7 +250,7 @@ chunk (runtime: main) 1.output.js 146 bytes [rendered]
[exports: decrement, increment, reset, value]
import() ./counter ./example.js + 1 modules ./example.js 4:23-42
import() ./counter ./example.js + 1 modules ./methods.js 2:8-27
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -273,5 +273,5 @@ chunk (runtime: main) 946.output.js 146 bytes [rendered]
[exports: decrement, increment, reset, value]
import() ./counter ./example.js + 1 modules ./example.js 4:23-42
import() ./counter ./example.js + 1 modules ./methods.js 2:8-27
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -290,7 +290,7 @@ export default App;
<!-- A spinner -->
<div class="spinner"></div>
<!-- This script only contains boostrapping logic -->
<!-- This script only contains bootstrapping logic -->
<!-- It will load all other scripts if necessary -->
<script src="/dist/aaa/app.js" async></script>
@ -346,16 +346,20 @@ export default Component;
// Sharing modules requires that all remotes are initialized
// and can provide shared modules to the common scope
// As this is an async operation we need an async boundary (import())
// Using modules from remotes is also an async operation
// as chunks need to be loaded for the code of the remote module
// This also requires an async boundary (import())
// At this point shared modules initialized and remote modules are loaded
Promise.all(/*! import() */[__webpack_require__.e("vendors-node_modules_date-fns_esm_locale_de_index_js-node_modules_react-dom_index_js"), __webpack_require__.e("src_bootstrap_js-webpack_sharing_consume_default_react_react")]).then(__webpack_require__.bind(__webpack_require__, /*! ./bootstrap */ 2)); // It's possible to place more code here to do stuff on page init
Promise.all(/*! import() */[__webpack_require__.e("vendors-node_modules_date-fns_esm_locale_de_index_js-node_modules_react-dom_index_js"), __webpack_require__.e("src_bootstrap_js")]).then(__webpack_require__.bind(__webpack_require__, /*! ./bootstrap */ 2));
// It's possible to place more code here to do stuff on page init
// but it can't use any of the shared modules or remote modules.
/***/ }),
/***/ 12:
/***/ 10:
/*!*********************************************!*\
!*** external "mfeBBB@/dist/bbb/mfeBBB.js" ***!
\*********************************************/
@ -382,7 +386,7 @@ module.exports = new Promise((resolve, reject) => {
/***/ }),
/***/ 14:
/***/ 12:
/*!*********************************************!*\
!*** external "mfeCCC@/dist/ccc/mfeCCC.js" ***!
\*********************************************/
@ -566,7 +570,6 @@ module.exports = new Promise((resolve, reject) => {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -588,29 +591,29 @@ module.exports = new Promise((resolve, reject) => {
/******/ /* webpack/runtime/remotes loading */
/******/ (() => {
/******/ var chunkMapping = {
/******/ "src_bootstrap_js-webpack_sharing_consume_default_react_react": [
/******/ 11,
/******/ 13
/******/ "src_bootstrap_js": [
/******/ 9,
/******/ 11
/******/ ],
/******/ "webpack_container_remote_mfe-c_Component2": [
/******/ 27
/******/ 25
/******/ ]
/******/ };
/******/ var idToExternalAndNameMapping = {
/******/ "9": [
/******/ "default",
/******/ "./Component",
/******/ 10
/******/ ],
/******/ "11": [
/******/ "default",
/******/ "./Component",
/******/ 12
/******/ ],
/******/ "13": [
/******/ "default",
/******/ "./Component",
/******/ 14
/******/ ],
/******/ "27": [
/******/ "25": [
/******/ "default",
/******/ "./Component2",
/******/ 14
/******/ 12
/******/ ]
/******/ };
/******/ __webpack_require__.f.remotes = (chunkId, promises) => {
@ -626,7 +629,7 @@ module.exports = new Promise((resolve, reject) => {
/******/ if(!error) error = new Error("Container missing");
/******/ if(typeof error.message === "string")
/******/ error.message += '\nwhile loading "' + data[1] + '" from ' + data[2];
/******/ __webpack_modules__[id] = () => {
/******/ __webpack_require__.m[id] = () => {
/******/ throw error;
/******/ }
/******/ data.p = 0;
@ -648,7 +651,7 @@ module.exports = new Promise((resolve, reject) => {
/******/ var onInitialized = (_, external, first) => (handleFunction(external.get, data[1], getScope, 0, onFactory, first));
/******/ var onFactory = (factory) => {
/******/ data.p = 1;
/******/ __webpack_modules__[id] = (module) => {
/******/ __webpack_require__.m[id] = (module) => {
/******/ module.exports = factory();
/******/ }
/******/ };
@ -691,15 +694,15 @@ module.exports = new Promise((resolve, reject) => {
/******/ var initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))
/******/ if(module.then) return promises.push(module.then(initFn, handleError));
/******/ var initResult = initFn(module);
/******/ if(initResult && initResult.then) return promises.push(initResult.catch(handleError));
/******/ if(initResult && initResult.then) return promises.push(initResult['catch'](handleError));
/******/ } catch(err) { handleError(err); }
/******/ }
/******/ var promises = [];
/******/ switch(name) {
/******/ case "default": {
/******/ register("react", "17.0.2", () => (__webpack_require__.e("node_modules_react_index_js-_11190").then(() => (() => (__webpack_require__(/*! ../../node_modules/react/index.js */ 25))))));
/******/ register("react", "18.2.0", () => (__webpack_require__.e("node_modules_react_index_js").then(() => (() => (__webpack_require__(/*! ../../node_modules/react/index.js */ 23))))));
/******/ initExternal(10);
/******/ initExternal(12);
/******/ initExternal(14);
/******/ }
/******/ break;
/******/ }
@ -749,17 +752,21 @@ module.exports = new Promise((resolve, reject) => {
/******/ return !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;
/******/ }, 0);
/******/ };
/******/ var getInvalidSingletonVersionMessage = (key, version, requiredVersion) => {
/******/ return "Unsatisfied version " + version + " of shared singleton module " + key + " (required " + rangeToString(requiredVersion) + ")"
/******/ var getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {
/******/ return "Unsatisfied version " + version + " from " + (version && scope[key][version].from) + " of shared singleton module " + key + " (required " + rangeToString(requiredVersion) + ")"
/******/ };
/******/ var getSingleton = (scope, scopeName, key, requiredVersion) => {
/******/ var version = findSingletonVersionKey(scope, key);
/******/ return get(scope[key][version]);
/******/ };
/******/ var getSingletonVersion = (scope, scopeName, key, requiredVersion) => {
/******/ var version = findSingletonVersionKey(scope, key);
/******/ if (!satisfy(requiredVersion, version)) typeof console !== "undefined" && console.warn && console.warn(getInvalidSingletonVersionMessage(key, version, requiredVersion));
/******/ if (!satisfy(requiredVersion, version)) typeof console !== "undefined" && console.warn && console.warn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));
/******/ return get(scope[key][version]);
/******/ };
/******/ var getStrictSingletonVersion = (scope, scopeName, key, requiredVersion) => {
/******/ var version = findSingletonVersionKey(scope, key);
/******/ if (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(key, version, requiredVersion));
/******/ if (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));
/******/ return get(scope[key][version]);
/******/ };
/******/ var findValidVersion = (scope, key, requiredVersion) => {
@ -806,6 +813,10 @@ module.exports = new Promise((resolve, reject) => {
/******/ ensureExistence(scopeName, key);
/******/ return get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));
/******/ });
/******/ var loadSingleton = /*#__PURE__*/ init((scopeName, scope, key) => {
/******/ ensureExistence(scopeName, key);
/******/ return getSingleton(scope, scopeName, key);
/******/ });
/******/ var loadSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {
/******/ ensureExistence(scopeName, key);
/******/ return getSingletonVersion(scope, scopeName, key, version);
@ -822,6 +833,10 @@ module.exports = new Promise((resolve, reject) => {
/******/ if(!scope || !__webpack_require__.o(scope, key)) return fallback();
/******/ return get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));
/******/ });
/******/ var loadSingletonFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {
/******/ if(!scope || !__webpack_require__.o(scope, key)) return fallback();
/******/ return getSingleton(scope, scopeName, key);
/******/ });
/******/ var loadSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {
/******/ if(!scope || !__webpack_require__.o(scope, key)) return fallback();
/******/ return getSingletonVersion(scope, scopeName, key, version);
@ -836,14 +851,12 @@ module.exports = new Promise((resolve, reject) => {
/******/ });
/******/ var installedModules = {};
/******/ var moduleToHandlerMapping = {
/******/ 5: () => (loadSingletonVersionCheckFallback("default", "react", [4,17,0,2], () => (__webpack_require__.e("node_modules_react_index_js-_11191").then(() => (() => (__webpack_require__(/*! react */ 25))))))),
/******/ 9: () => (loadSingletonVersionCheckFallback("default", "react", [1,17,0,1], () => (__webpack_require__.e("node_modules_react_index_js-_11191").then(() => (() => (__webpack_require__(/*! react */ 25)))))))
/******/ 5: () => (loadSingletonVersionCheckFallback("default", "react", [1,18,2,0], () => (__webpack_require__.e("node_modules_react_index_js").then(() => (() => (__webpack_require__(/*! react */ 23)))))))
/******/ };
/******/ // no consumes in initial chunks
/******/ var chunkMapping = {
/******/ "src_bootstrap_js-webpack_sharing_consume_default_react_react": [
/******/ 5,
/******/ 9
/******/ "src_bootstrap_js": [
/******/ 5
/******/ ]
/******/ };
/******/ __webpack_require__.f.consumes = (chunkId, promises) => {
@ -867,7 +880,7 @@ module.exports = new Promise((resolve, reject) => {
/******/ try {
/******/ var promise = moduleToHandlerMapping[id]();
/******/ if(promise.then) {
/******/ promises.push(installedModules[id] = promise.then(onFactory).catch(onError));
/******/ promises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));
/******/ } else onFactory(promise);
/******/ } catch(e) { onError(e); }
/******/ });
@ -955,7 +968,7 @@ module.exports = new Promise((resolve, reject) => {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -992,7 +1005,10 @@ var mfeBBB;
/*!***********************!*\
!*** container entry ***!
\***********************/
/*! unknown exports (runtime-defined) */
/*! namespace exports */
/*! export get [provided] [maybe used in mfeBBB (runtime-defined)] [usage and provision prevents renaming] */
/*! export init [provided] [maybe used in mfeBBB (runtime-defined)] [usage and provision prevents renaming] */
/*! other exports [not provided] [maybe used in mfeBBB (runtime-defined)] */
/*! runtime requirements: __webpack_require__.d, __webpack_require__.o, __webpack_exports__, __webpack_require__.e, __webpack_require__, __webpack_require__.* */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
@ -1015,8 +1031,8 @@ var get = (module, getScope) => {
};
var init = (shareScope, initScope) => {
if (!__webpack_require__.S) return;
var oldScope = __webpack_require__.S["default"];
var name = "default"
var oldScope = __webpack_require__.S[name];
if(oldScope && oldScope !== shareScope) throw new Error("Container initialization failed as it has already been initialized with a different share scope");
__webpack_require__.S[name] = shareScope;
return __webpack_require__.I(name, initScope);
@ -1156,7 +1172,6 @@ __webpack_require__.d(exports, {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -1208,14 +1223,14 @@ __webpack_require__.d(exports, {
/******/ var initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))
/******/ if(module.then) return promises.push(module.then(initFn, handleError));
/******/ var initResult = initFn(module);
/******/ if(initResult && initResult.then) return promises.push(initResult.catch(handleError));
/******/ if(initResult && initResult.then) return promises.push(initResult['catch'](handleError));
/******/ } catch(err) { handleError(err); }
/******/ }
/******/ var promises = [];
/******/ switch(name) {
/******/ case "default": {
/******/ register("date-fns", "2.23.0", () => (__webpack_require__.e("vendors-node_modules_date-fns_esm_index_js").then(() => (() => (__webpack_require__(/*! ../../node_modules/date-fns/esm/index.js */ 6))))));
/******/ register("react", "17.0.2", () => (__webpack_require__.e("node_modules_react_index_js").then(() => (() => (__webpack_require__(/*! ../../node_modules/react/index.js */ 270))))));
/******/ register("date-fns", "2.29.3", () => (__webpack_require__.e("vendors-node_modules_date-fns_esm_index_js").then(() => (() => (__webpack_require__(/*! ../../node_modules/date-fns/esm/index.js */ 6))))));
/******/ register("react", "18.2.0", () => (__webpack_require__.e("node_modules_react_index_js").then(() => (() => (__webpack_require__(/*! ../../node_modules/react/index.js */ 319))))));
/******/ }
/******/ break;
/******/ }
@ -1265,17 +1280,21 @@ __webpack_require__.d(exports, {
/******/ return !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;
/******/ }, 0);
/******/ };
/******/ var getInvalidSingletonVersionMessage = (key, version, requiredVersion) => {
/******/ return "Unsatisfied version " + version + " of shared singleton module " + key + " (required " + rangeToString(requiredVersion) + ")"
/******/ var getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {
/******/ return "Unsatisfied version " + version + " from " + (version && scope[key][version].from) + " of shared singleton module " + key + " (required " + rangeToString(requiredVersion) + ")"
/******/ };
/******/ var getSingleton = (scope, scopeName, key, requiredVersion) => {
/******/ var version = findSingletonVersionKey(scope, key);
/******/ return get(scope[key][version]);
/******/ };
/******/ var getSingletonVersion = (scope, scopeName, key, requiredVersion) => {
/******/ var version = findSingletonVersionKey(scope, key);
/******/ if (!satisfy(requiredVersion, version)) typeof console !== "undefined" && console.warn && console.warn(getInvalidSingletonVersionMessage(key, version, requiredVersion));
/******/ if (!satisfy(requiredVersion, version)) typeof console !== "undefined" && console.warn && console.warn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));
/******/ return get(scope[key][version]);
/******/ };
/******/ var getStrictSingletonVersion = (scope, scopeName, key, requiredVersion) => {
/******/ var version = findSingletonVersionKey(scope, key);
/******/ if (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(key, version, requiredVersion));
/******/ if (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));
/******/ return get(scope[key][version]);
/******/ };
/******/ var findValidVersion = (scope, key, requiredVersion) => {
@ -1322,6 +1341,10 @@ __webpack_require__.d(exports, {
/******/ ensureExistence(scopeName, key);
/******/ return get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));
/******/ });
/******/ var loadSingleton = /*#__PURE__*/ init((scopeName, scope, key) => {
/******/ ensureExistence(scopeName, key);
/******/ return getSingleton(scope, scopeName, key);
/******/ });
/******/ var loadSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {
/******/ ensureExistence(scopeName, key);
/******/ return getSingletonVersion(scope, scopeName, key, version);
@ -1338,6 +1361,10 @@ __webpack_require__.d(exports, {
/******/ if(!scope || !__webpack_require__.o(scope, key)) return fallback();
/******/ return get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));
/******/ });
/******/ var loadSingletonFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {
/******/ if(!scope || !__webpack_require__.o(scope, key)) return fallback();
/******/ return getSingleton(scope, scopeName, key);
/******/ });
/******/ var loadSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {
/******/ if(!scope || !__webpack_require__.o(scope, key)) return fallback();
/******/ return getSingletonVersion(scope, scopeName, key, version);
@ -1352,7 +1379,7 @@ __webpack_require__.d(exports, {
/******/ });
/******/ var installedModules = {};
/******/ var moduleToHandlerMapping = {
/******/ 4: () => (loadSingletonVersionCheckFallback("default", "react", [1,17,0,1], () => (__webpack_require__.e("node_modules_react_index_js").then(() => (() => (__webpack_require__(/*! react */ 270))))))),
/******/ 4: () => (loadSingletonVersionCheckFallback("default", "react", [1,18,2,0], () => (__webpack_require__.e("node_modules_react_index_js").then(() => (() => (__webpack_require__(/*! react */ 319))))))),
/******/ 5: () => (loadStrictVersionCheckFallback("default", "date-fns", [1,2,15,0], () => (__webpack_require__.e("vendors-node_modules_date-fns_esm_index_js").then(() => (() => (__webpack_require__(/*! date-fns */ 6)))))))
/******/ };
/******/ // no consumes in initial chunks
@ -1383,7 +1410,7 @@ __webpack_require__.d(exports, {
/******/ try {
/******/ var promise = moduleToHandlerMapping[id]();
/******/ if(promise.then) {
/******/ promises.push(installedModules[id] = promise.then(onFactory).catch(onError));
/******/ promises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));
/******/ } else onFactory(promise);
/******/ } catch(e) { onError(e); }
/******/ });
@ -1471,7 +1498,7 @@ __webpack_require__.d(exports, {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -1509,7 +1536,10 @@ var mfeCCC;
/*!***********************!*\
!*** container entry ***!
\***********************/
/*! unknown exports (runtime-defined) */
/*! namespace exports */
/*! export get [provided] [maybe used in mfeCCC (runtime-defined)] [usage and provision prevents renaming] */
/*! export init [provided] [maybe used in mfeCCC (runtime-defined)] [usage and provision prevents renaming] */
/*! other exports [not provided] [maybe used in mfeCCC (runtime-defined)] */
/*! runtime requirements: __webpack_require__.d, __webpack_require__.o, __webpack_exports__, __webpack_require__.e, __webpack_require__, __webpack_require__.* */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
@ -1535,8 +1565,8 @@ var get = (module, getScope) => {
};
var init = (shareScope, initScope) => {
if (!__webpack_require__.S) return;
var oldScope = __webpack_require__.S["default"];
var name = "default"
var oldScope = __webpack_require__.S[name];
if(oldScope && oldScope !== shareScope) throw new Error("Container initialization failed as it has already been initialized with a different share scope");
__webpack_require__.S[name] = shareScope;
return __webpack_require__.I(name, initScope);
@ -1688,7 +1718,6 @@ __webpack_require__.d(exports, {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -1740,14 +1769,14 @@ __webpack_require__.d(exports, {
/******/ var initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))
/******/ if(module.then) return promises.push(module.then(initFn, handleError));
/******/ var initResult = initFn(module);
/******/ if(initResult && initResult.then) return promises.push(initResult.catch(handleError));
/******/ if(initResult && initResult.then) return promises.push(initResult['catch'](handleError));
/******/ } catch(err) { handleError(err); }
/******/ }
/******/ var promises = [];
/******/ switch(name) {
/******/ case "default": {
/******/ register("date-fns", "2.23.0", () => (__webpack_require__.e("vendors-node_modules_date-fns_esm_index_js").then(() => (() => (__webpack_require__(/*! ../../node_modules/date-fns/esm/index.js */ 8))))));
/******/ register("lodash/random", "4.17.21", () => (__webpack_require__.e("vendors-node_modules_lodash_random_js").then(() => (() => (__webpack_require__(/*! ../../node_modules/lodash/random.js */ 272))))));
/******/ register("date-fns", "2.29.3", () => (__webpack_require__.e("vendors-node_modules_date-fns_esm_index_js").then(() => (() => (__webpack_require__(/*! ../../node_modules/date-fns/esm/index.js */ 8))))));
/******/ register("lodash/random", "4.17.21", () => (__webpack_require__.e("vendors-node_modules_lodash_random_js").then(() => (() => (__webpack_require__(/*! ../../node_modules/lodash/random.js */ 321))))));
/******/ }
/******/ break;
/******/ }
@ -1797,17 +1826,21 @@ __webpack_require__.d(exports, {
/******/ return !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;
/******/ }, 0);
/******/ };
/******/ var getInvalidSingletonVersionMessage = (key, version, requiredVersion) => {
/******/ return "Unsatisfied version " + version + " of shared singleton module " + key + " (required " + rangeToString(requiredVersion) + ")"
/******/ var getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {
/******/ return "Unsatisfied version " + version + " from " + (version && scope[key][version].from) + " of shared singleton module " + key + " (required " + rangeToString(requiredVersion) + ")"
/******/ };
/******/ var getSingleton = (scope, scopeName, key, requiredVersion) => {
/******/ var version = findSingletonVersionKey(scope, key);
/******/ return get(scope[key][version]);
/******/ };
/******/ var getSingletonVersion = (scope, scopeName, key, requiredVersion) => {
/******/ var version = findSingletonVersionKey(scope, key);
/******/ if (!satisfy(requiredVersion, version)) typeof console !== "undefined" && console.warn && console.warn(getInvalidSingletonVersionMessage(key, version, requiredVersion));
/******/ if (!satisfy(requiredVersion, version)) typeof console !== "undefined" && console.warn && console.warn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));
/******/ return get(scope[key][version]);
/******/ };
/******/ var getStrictSingletonVersion = (scope, scopeName, key, requiredVersion) => {
/******/ var version = findSingletonVersionKey(scope, key);
/******/ if (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(key, version, requiredVersion));
/******/ if (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));
/******/ return get(scope[key][version]);
/******/ };
/******/ var findValidVersion = (scope, key, requiredVersion) => {
@ -1854,6 +1887,10 @@ __webpack_require__.d(exports, {
/******/ ensureExistence(scopeName, key);
/******/ return get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));
/******/ });
/******/ var loadSingleton = /*#__PURE__*/ init((scopeName, scope, key) => {
/******/ ensureExistence(scopeName, key);
/******/ return getSingleton(scope, scopeName, key);
/******/ });
/******/ var loadSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {
/******/ ensureExistence(scopeName, key);
/******/ return getSingletonVersion(scope, scopeName, key, version);
@ -1870,6 +1907,10 @@ __webpack_require__.d(exports, {
/******/ if(!scope || !__webpack_require__.o(scope, key)) return fallback();
/******/ return get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));
/******/ });
/******/ var loadSingletonFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {
/******/ if(!scope || !__webpack_require__.o(scope, key)) return fallback();
/******/ return getSingleton(scope, scopeName, key);
/******/ });
/******/ var loadSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {
/******/ if(!scope || !__webpack_require__.o(scope, key)) return fallback();
/******/ return getSingletonVersion(scope, scopeName, key, version);
@ -1884,9 +1925,9 @@ __webpack_require__.d(exports, {
/******/ });
/******/ var installedModules = {};
/******/ var moduleToHandlerMapping = {
/******/ 4: () => (loadSingletonVersionCheck("default", "react", [1,17,0,1])),
/******/ 4: () => (loadSingletonVersionCheck("default", "react", [1,18,2,0])),
/******/ 5: () => (loadStrictVersionCheckFallback("default", "date-fns", [1,2,15,0], () => (__webpack_require__.e("vendors-node_modules_date-fns_esm_index_js").then(() => (() => (__webpack_require__(/*! date-fns */ 8))))))),
/******/ 7: () => (loadStrictVersionCheckFallback("default", "lodash/random", [1,4,17,19], () => (__webpack_require__.e("vendors-node_modules_lodash_random_js").then(() => (() => (__webpack_require__(/*! lodash/random */ 272)))))))
/******/ 7: () => (loadStrictVersionCheckFallback("default", "lodash/random", [1,4,17,19], () => (__webpack_require__.e("vendors-node_modules_lodash_random_js").then(() => (() => (__webpack_require__(/*! lodash/random */ 321)))))))
/******/ };
/******/ // no consumes in initial chunks
/******/ var chunkMapping = {
@ -1921,7 +1962,7 @@ __webpack_require__.d(exports, {
/******/ try {
/******/ var promise = moduleToHandlerMapping[id]();
/******/ if(promise.then) {
/******/ promises.push(installedModules[id] = promise.then(onFactory).catch(onError));
/******/ promises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));
/******/ } else onFactory(promise);
/******/ } catch(e) { onError(e); }
/******/ });
@ -2009,7 +2050,7 @@ __webpack_require__.d(exports, {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -2042,100 +2083,93 @@ __webpack_require__.d(exports, {
```
app:
asset vendors-node_modules_date-fns_esm_locale_de_index_js-node_modules_react-dom_index_js.js 163 KiB [emitted] (id hint: vendors)
asset app.js 30.5 KiB [emitted] (name: app)
asset node_modules_react_index_js-_11190.js 16.8 KiB [emitted]
asset node_modules_react_index_js-_11191.js 14.4 KiB [emitted]
asset src_bootstrap_js-webpack_sharing_consume_default_react_react.js 5.02 KiB [emitted]
chunk (runtime: app) app.js (app) 669 bytes (javascript) 42 bytes (share-init) 19.3 KiB (runtime) [entry] [rendered]
asset vendors-node_modules_date-fns_esm_locale_de_index_js-node_modules_react-dom_index_js.js 171 KiB [emitted] (id hint: vendors)
asset app.js 30.8 KiB [emitted] (name: app)
asset node_modules_react_index_js.js 16.6 KiB [emitted]
asset src_bootstrap_js.js 4.98 KiB [emitted]
chunk (runtime: app) app.js (app) 672 bytes (javascript) 42 bytes (share-init) 19.6 KiB (runtime) [entry] [rendered]
> ./src/index.js app
runtime modules 19.3 KiB 13 modules
built modules 669 bytes (javascript) 42 bytes (share-init) [built]
./src/index.js 585 bytes [built] [code generated]
runtime modules 19.6 KiB 13 modules
built modules 672 bytes (javascript) 42 bytes (share-init) [built]
./src/index.js 588 bytes [built] [code generated]
external "mfeBBB@/dist/bbb/mfeBBB.js" 42 bytes [built] [code generated]
external "mfeCCC@/dist/ccc/mfeCCC.js" 42 bytes [built] [code generated]
provide shared module (default) react@17.0.2 = ../../node_modules/react/index.js 42 bytes [built] [code generated]
chunk (runtime: app) node_modules_react_index_js-_11190.js 8.54 KiB [rendered]
> provide shared module (default) react@17.0.2 = ../../node_modules/react/index.js
dependent modules 8.36 KiB [dependent] 2 modules
provide shared module (default) react@18.2.0 = ../../node_modules/react/index.js 42 bytes [built] [code generated]
chunk (runtime: app) node_modules_react_index_js.js 6.94 KiB [rendered]
> provide shared module (default) react@18.2.0 = ../../node_modules/react/index.js
> consume shared module (default) react@^18.2.0 (singleton) (fallback: ../../node_modules/react/index.js)
dependent modules 6.75 KiB [dependent] 1 module
../../node_modules/react/index.js 190 bytes [built] [code generated]
chunk (runtime: app) node_modules_react_index_js-_11191.js 6.48 KiB [rendered]
> consume shared module (default) react@=17.0.2 (singleton) (fallback: ../../node_modules/react/index.js)
> consume shared module (default) react@^17.0.1 (singleton) (fallback: ../../node_modules/react/index.js)
dependent modules 6.3 KiB [dependent] 1 module
../../node_modules/react/index.js 190 bytes [built] [code generated]
chunk (runtime: app) src_bootstrap_js-webpack_sharing_consume_default_react_react.js 1.56 KiB (javascript) 84 bytes (consume-shared) 12 bytes (remote) 12 bytes (share-init) [rendered]
> ./bootstrap ./src/index.js 8:0-21
dependent modules 1.19 KiB (javascript) 42 bytes (consume-shared) 12 bytes (remote) 12 bytes (share-init) [dependent] 4 modules
built modules 382 bytes (javascript) 42 bytes (consume-shared) [built]
./src/bootstrap.js 382 bytes [built] [code generated]
consume shared module (default) react@=17.0.2 (singleton) (fallback: ../../node_modules/react/index.js) 42 bytes [built] [code generated]
chunk (runtime: app) vendors-node_modules_date-fns_esm_locale_de_index_js-node_modules_react-dom_index_js.js (id hint: vendors) 142 KiB [rendered] split chunk (cache group: defaultVendors)
> ./bootstrap ./src/index.js 8:0-21
dependent modules 140 KiB [dependent] 13 modules
chunk (runtime: app) src_bootstrap_js.js 1.56 KiB (javascript) 42 bytes (consume-shared) 12 bytes (remote) 12 bytes (share-init) [rendered]
> ./bootstrap ./src/index.js 10:0-21
dependent modules 1.18 KiB (javascript) 42 bytes (consume-shared) 12 bytes (remote) 12 bytes (share-init) [dependent] 4 modules
./src/bootstrap.js 381 bytes [built] [code generated]
chunk (runtime: app) vendors-node_modules_date-fns_esm_locale_de_index_js-node_modules_react-dom_index_js.js (id hint: vendors) 151 KiB [rendered] split chunk (cache group: defaultVendors)
> ./bootstrap ./src/index.js 10:0-21
dependent modules 148 KiB [dependent] 12 modules
cacheable modules 2.3 KiB
../../node_modules/date-fns/esm/locale/de/index.js 995 bytes [built] [code generated]
../../node_modules/react-dom/index.js 1.33 KiB [built] [code generated]
chunk (runtime: app) 6 bytes (remote) 6 bytes (share-init)
> mfe-c/Component2 ./src/App.js 8:49-75
> mfe-c/Component2 ./src/App.js 7:49-75
remote mfe-c/Component2 6 bytes (remote) 6 bytes (share-init) [built] [code generated]
app (webpack 5.51.1) compiled successfully
app (webpack 5.78.0) compiled successfully
mfe-b:
asset vendors-node_modules_date-fns_esm_index_js.js 943 KiB [emitted] (id hint: vendors)
asset mfeBBB.js 24.5 KiB [emitted] (name: mfeBBB)
asset node_modules_react_index_js.js 16.8 KiB [emitted]
asset vendors-node_modules_date-fns_esm_index_js.js 1.12 MiB [emitted] (id hint: vendors)
asset mfeBBB.js 25.5 KiB [emitted] (name: mfeBBB)
asset node_modules_react_index_js.js 16.7 KiB [emitted]
asset src-b_Component_js.js 2.25 KiB [emitted]
chunk (runtime: mfeBBB) mfeBBB.js (mfeBBB) 42 bytes (javascript) 84 bytes (share-init) 16.5 KiB (runtime) [entry] [rendered]
chunk (runtime: mfeBBB) mfeBBB.js (mfeBBB) 42 bytes (javascript) 84 bytes (share-init) 17 KiB (runtime) [entry] [rendered]
> mfeBBB
runtime modules 16.5 KiB 11 modules
runtime modules 17 KiB 11 modules
built modules 42 bytes (javascript) 84 bytes (share-init) [built]
container entry 42 bytes [built] [code generated]
provide shared module (default) date-fns@2.23.0 = ../../node_modules/date-fns/esm/index.js 42 bytes [built] [code generated]
provide shared module (default) react@17.0.2 = ../../node_modules/react/index.js 42 bytes [built] [code generated]
chunk (runtime: mfeBBB) node_modules_react_index_js.js 8.54 KiB [rendered]
> provide shared module (default) react@17.0.2 = ../../node_modules/react/index.js
> consume shared module (default) react@^17.0.1 (singleton) (fallback: ../../node_modules/react/index.js)
dependent modules 8.36 KiB [dependent] 2 modules
provide shared module (default) date-fns@2.29.3 = ../../node_modules/date-fns/esm/index.js 42 bytes [built] [code generated]
provide shared module (default) react@18.2.0 = ../../node_modules/react/index.js 42 bytes [built] [code generated]
chunk (runtime: mfeBBB) node_modules_react_index_js.js 6.94 KiB [rendered]
> provide shared module (default) react@18.2.0 = ../../node_modules/react/index.js
> consume shared module (default) react@^18.2.0 (singleton) (fallback: ../../node_modules/react/index.js)
dependent modules 6.75 KiB [dependent] 1 module
../../node_modules/react/index.js 190 bytes [built] [code generated]
chunk (runtime: mfeBBB) src-b_Component_js.js 753 bytes (javascript) 84 bytes (consume-shared) [rendered]
chunk (runtime: mfeBBB) src-b_Component_js.js 752 bytes (javascript) 84 bytes (consume-shared) [rendered]
> ./src-b/Component container entry ./Component
dependent modules 84 bytes [dependent] 2 modules
./src-b/Component.js 753 bytes [built] [code generated]
chunk (runtime: mfeBBB) vendors-node_modules_date-fns_esm_index_js.js (id hint: vendors) 546 KiB [rendered] reused as split chunk (cache group: defaultVendors)
> provide shared module (default) date-fns@2.23.0 = ../../node_modules/date-fns/esm/index.js
./src-b/Component.js 752 bytes [built] [code generated]
chunk (runtime: mfeBBB) vendors-node_modules_date-fns_esm_index_js.js (id hint: vendors) 679 KiB [rendered] reused as split chunk (cache group: defaultVendors)
> provide shared module (default) date-fns@2.29.3 = ../../node_modules/date-fns/esm/index.js
> consume shared module (default) date-fns@^2.15.0 (strict) (fallback: ../../node_modules/date-fns/esm/index.js)
dependent modules 531 KiB [dependent] 263 modules
../../node_modules/date-fns/esm/index.js 15.4 KiB [built] [code generated]
mfe-b (webpack 5.51.1) compiled successfully
dependent modules 663 KiB [dependent] 312 modules
../../node_modules/date-fns/esm/index.js 16.2 KiB [built] [code generated]
mfe-b (webpack 5.78.0) compiled successfully
mfe-c:
assets by chunk 968 KiB (id hint: vendors)
asset vendors-node_modules_date-fns_esm_index_js.js 943 KiB [emitted] (id hint: vendors)
assets by chunk 1.15 MiB (id hint: vendors)
asset vendors-node_modules_date-fns_esm_index_js.js 1.12 MiB [emitted] (id hint: vendors)
asset vendors-node_modules_lodash_random_js.js 24.8 KiB [emitted] (id hint: vendors)
asset mfeCCC.js 25.5 KiB [emitted] (name: mfeCCC)
asset src-c_LazyComponent_js.js 2.06 KiB [emitted]
asset mfeCCC.js 26.5 KiB [emitted] (name: mfeCCC)
asset src-c_LazyComponent_js.js 2.05 KiB [emitted]
asset src-c_Component_js.js 1.97 KiB [emitted]
chunk (runtime: mfeCCC) mfeCCC.js (mfeCCC) 42 bytes (javascript) 84 bytes (share-init) 16.9 KiB (runtime) [entry] [rendered]
chunk (runtime: mfeCCC) mfeCCC.js (mfeCCC) 42 bytes (javascript) 84 bytes (share-init) 17.5 KiB (runtime) [entry] [rendered]
> mfeCCC
runtime modules 16.9 KiB 12 modules
runtime modules 17.5 KiB 12 modules
built modules 42 bytes (javascript) 84 bytes (share-init) [built]
container entry 42 bytes [built] [code generated]
provide shared module (default) date-fns@2.23.0 = ../../node_modules/date-fns/esm/index.js 42 bytes [built] [code generated]
provide shared module (default) date-fns@2.29.3 = ../../node_modules/date-fns/esm/index.js 42 bytes [built] [code generated]
provide shared module (default) lodash/random@4.17.21 = ../../node_modules/lodash/random.js 42 bytes [built] [code generated]
chunk (runtime: mfeCCC) src-c_Component_js.js 469 bytes (javascript) 42 bytes (consume-shared) [rendered]
chunk (runtime: mfeCCC) src-c_Component_js.js 467 bytes (javascript) 42 bytes (consume-shared) [rendered]
> ./src-c/Component container entry ./Component
dependent modules 42 bytes [dependent] 1 module
./src-c/Component.js 469 bytes [built] [code generated]
chunk (runtime: mfeCCC) src-c_LazyComponent_js.js 506 bytes (javascript) 42 bytes (consume-shared) [rendered]
./src-c/Component.js 467 bytes [built] [code generated]
chunk (runtime: mfeCCC) src-c_LazyComponent_js.js 504 bytes (javascript) 42 bytes (consume-shared) [rendered]
> ./src-c/LazyComponent container entry ./Component2
dependent modules 42 bytes [dependent] 1 module
./src-c/LazyComponent.js 506 bytes [built] [code generated]
chunk (runtime: mfeCCC) vendors-node_modules_date-fns_esm_index_js.js (id hint: vendors) 546 KiB [rendered] reused as split chunk (cache group: defaultVendors)
> provide shared module (default) date-fns@2.23.0 = ../../node_modules/date-fns/esm/index.js
./src-c/LazyComponent.js 504 bytes [built] [code generated]
chunk (runtime: mfeCCC) vendors-node_modules_date-fns_esm_index_js.js (id hint: vendors) 679 KiB [rendered] reused as split chunk (cache group: defaultVendors)
> provide shared module (default) date-fns@2.29.3 = ../../node_modules/date-fns/esm/index.js
> consume shared module (default) date-fns@^2.15.0 (strict) (fallback: ../../node_modules/date-fns/esm/index.js)
dependent modules 531 KiB [dependent] 263 modules
../../node_modules/date-fns/esm/index.js 15.4 KiB [built] [code generated]
dependent modules 663 KiB [dependent] 312 modules
../../node_modules/date-fns/esm/index.js 16.2 KiB [built] [code generated]
chunk (runtime: mfeCCC) vendors-node_modules_lodash_random_js.js (id hint: vendors) 16 KiB [rendered] reused as split chunk (cache group: defaultVendors)
> provide shared module (default) lodash/random@4.17.21 = ../../node_modules/lodash/random.js
> consume shared module (default) lodash/random@^4.17.19 (strict) (fallback: ../../node_modules/lodash/random.js)
@ -2144,113 +2178,106 @@ mfe-c:
chunk (runtime: mfeCCC) 42 bytes split chunk (cache group: default)
> ./src-c/Component container entry ./Component
> ./src-c/LazyComponent container entry ./Component2
consume shared module (default) react@^17.0.1 (singleton) 42 bytes [built] [code generated]
mfe-c (webpack 5.51.1) compiled successfully
consume shared module (default) react@^18.2.0 (singleton) 42 bytes [built] [code generated]
mfe-c (webpack 5.78.0) compiled successfully
```
## Production mode
```
app:
asset vendors-node_modules_date-fns_esm_locale_de_index_js-node_modules_react-dom_index_js.js 129 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
asset app.js 7.64 KiB [emitted] [minimized] (name: app)
asset node_modules_react_index_js-_11190.js 6.99 KiB [emitted] [minimized] 1 related asset
asset node_modules_react_index_js-_11191.js 6.06 KiB [emitted] [minimized] 1 related asset
asset src_bootstrap_js-webpack_sharing_consume_default_react_react.js 1.08 KiB [emitted] [minimized]
chunk (runtime: app) app.js (app) 669 bytes (javascript) 42 bytes (share-init) 19.3 KiB (runtime) [entry] [rendered]
asset vendors-node_modules_date-fns_esm_locale_de_index_js-node_modules_react-dom_index_js.js 139 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
asset app.js 7.42 KiB [emitted] [minimized] (name: app)
asset node_modules_react_index_js.js 6.5 KiB [emitted] [minimized] 1 related asset
asset src_bootstrap_js.js 1.04 KiB [emitted] [minimized]
chunk (runtime: app) app.js (app) 672 bytes (javascript) 42 bytes (share-init) 19.5 KiB (runtime) [entry] [rendered]
> ./src/index.js app
runtime modules 19.3 KiB 13 modules
built modules 669 bytes (javascript) 42 bytes (share-init) [built]
./src/index.js 585 bytes [built] [code generated]
runtime modules 19.5 KiB 13 modules
built modules 672 bytes (javascript) 42 bytes (share-init) [built]
./src/index.js 588 bytes [built] [code generated]
external "mfeBBB@/dist/bbb/mfeBBB.js" 42 bytes [built] [code generated]
external "mfeCCC@/dist/ccc/mfeCCC.js" 42 bytes [built] [code generated]
provide shared module (default) react@17.0.2 = ../../node_modules/react/index.js 42 bytes [built] [code generated]
chunk (runtime: app) node_modules_react_index_js-_11190.js 8.54 KiB [rendered]
> provide shared module (default) react@17.0.2 = ../../node_modules/react/index.js
dependent modules 8.36 KiB [dependent] 2 modules
provide shared module (default) react@18.2.0 = ../../node_modules/react/index.js 42 bytes [built] [code generated]
chunk (runtime: app) node_modules_react_index_js.js 6.94 KiB [rendered]
> provide shared module (default) react@18.2.0 = ../../node_modules/react/index.js
> consume shared module (default) react@^18.2.0 (singleton) (fallback: ../../node_modules/react/index.js)
dependent modules 6.75 KiB [dependent] 1 module
../../node_modules/react/index.js 190 bytes [built] [code generated]
chunk (runtime: app) node_modules_react_index_js-_11191.js 6.48 KiB [rendered]
> consume shared module (default) react@^17.0.1 (singleton) (fallback: ../../node_modules/react/index.js)
> consume shared module (default) react@=17.0.2 (singleton) (fallback: ../../node_modules/react/index.js)
dependent modules 6.3 KiB [dependent] 1 module
../../node_modules/react/index.js 190 bytes [built] [code generated]
chunk (runtime: app) src_bootstrap_js-webpack_sharing_consume_default_react_react.js 84 bytes (consume-shared) 12 bytes (remote) 12 bytes (share-init) 1.56 KiB (javascript) [rendered]
> ./bootstrap ./src/index.js 8:0-21
chunk (runtime: app) src_bootstrap_js.js 42 bytes (consume-shared) 12 bytes (remote) 12 bytes (share-init) 1.56 KiB (javascript) [rendered]
> ./bootstrap ./src/index.js 10:0-21
dependent modules 42 bytes (consume-shared) 12 bytes (remote) 12 bytes (share-init) [dependent] 3 modules
built modules 1.56 KiB (javascript) 42 bytes (consume-shared) [built]
./src/bootstrap.js + 1 modules 1.56 KiB [built] [code generated]
consume shared module (default) react@=17.0.2 (singleton) (fallback: ../../node_modules/react/index.js) 42 bytes [built] [code generated]
chunk (runtime: app) vendors-node_modules_date-fns_esm_locale_de_index_js-node_modules_react-dom_index_js.js (id hint: vendors) 142 KiB [rendered] split chunk (cache group: defaultVendors)
> ./bootstrap ./src/index.js 8:0-21
dependent modules 125 KiB [dependent] 4 modules
cacheable modules 17.1 KiB
../../node_modules/date-fns/esm/locale/de/index.js + 9 modules 15.8 KiB [built] [code generated]
./src/bootstrap.js + 1 modules 1.56 KiB [built] [code generated]
chunk (runtime: app) vendors-node_modules_date-fns_esm_locale_de_index_js-node_modules_react-dom_index_js.js (id hint: vendors) 151 KiB [rendered] split chunk (cache group: defaultVendors)
> ./bootstrap ./src/index.js 10:0-21
dependent modules 133 KiB [dependent] 3 modules
cacheable modules 17.5 KiB
../../node_modules/date-fns/esm/locale/de/index.js + 9 modules 16.2 KiB [built] [code generated]
../../node_modules/react-dom/index.js 1.33 KiB [built] [code generated]
chunk (runtime: app) 6 bytes (remote) 6 bytes (share-init)
> mfe-c/Component2 ./src/App.js 8:49-75
> mfe-c/Component2 ./src/App.js 7:49-75
remote mfe-c/Component2 6 bytes (remote) 6 bytes (share-init) [built] [code generated]
app (webpack 5.51.1) compiled successfully
app (webpack 5.78.0) compiled successfully
mfe-b:
asset vendors-node_modules_date-fns_esm_index_js.js 82.3 KiB [emitted] [minimized] (id hint: vendors)
asset node_modules_react_index_js.js 6.94 KiB [emitted] [minimized] 1 related asset
asset mfeBBB.js 5.81 KiB [emitted] [minimized] (name: mfeBBB)
asset vendors-node_modules_date-fns_esm_index_js.js 154 KiB [emitted] [minimized] (id hint: vendors)
asset node_modules_react_index_js.js 6.5 KiB [emitted] [minimized] 1 related asset
asset mfeBBB.js 5.82 KiB [emitted] [minimized] (name: mfeBBB)
asset src-b_Component_js.js 489 bytes [emitted] [minimized]
chunk (runtime: mfeBBB) mfeBBB.js (mfeBBB) 42 bytes (javascript) 84 bytes (share-init) 16.4 KiB (runtime) [entry] [rendered]
chunk (runtime: mfeBBB) mfeBBB.js (mfeBBB) 42 bytes (javascript) 84 bytes (share-init) 16.9 KiB (runtime) [entry] [rendered]
> mfeBBB
runtime modules 16.4 KiB 11 modules
runtime modules 16.9 KiB 11 modules
built modules 42 bytes (javascript) 84 bytes (share-init) [built]
container entry 42 bytes [built] [code generated]
provide shared module (default) date-fns@2.23.0 = ../../node_modules/date-fns/esm/index.js 42 bytes [built] [code generated]
provide shared module (default) react@17.0.2 = ../../node_modules/react/index.js 42 bytes [built] [code generated]
chunk (runtime: mfeBBB) node_modules_react_index_js.js 8.54 KiB [rendered]
> consume shared module (default) react@^17.0.1 (singleton) (fallback: ../../node_modules/react/index.js)
> provide shared module (default) react@17.0.2 = ../../node_modules/react/index.js
dependent modules 8.36 KiB [dependent] 2 modules
provide shared module (default) date-fns@2.29.3 = ../../node_modules/date-fns/esm/index.js 42 bytes [built] [code generated]
provide shared module (default) react@18.2.0 = ../../node_modules/react/index.js 42 bytes [built] [code generated]
chunk (runtime: mfeBBB) node_modules_react_index_js.js 6.94 KiB [rendered]
> provide shared module (default) react@18.2.0 = ../../node_modules/react/index.js
> consume shared module (default) react@^18.2.0 (singleton) (fallback: ../../node_modules/react/index.js)
dependent modules 6.75 KiB [dependent] 1 module
../../node_modules/react/index.js 190 bytes [built] [code generated]
chunk (runtime: mfeBBB) src-b_Component_js.js 753 bytes (javascript) 84 bytes (consume-shared) [rendered]
chunk (runtime: mfeBBB) src-b_Component_js.js 752 bytes (javascript) 84 bytes (consume-shared) [rendered]
> ./src-b/Component container entry ./Component
dependent modules 84 bytes [dependent] 2 modules
./src-b/Component.js 753 bytes [built] [code generated]
chunk (runtime: mfeBBB) vendors-node_modules_date-fns_esm_index_js.js (id hint: vendors) 546 KiB [rendered] reused as split chunk (cache group: defaultVendors)
./src-b/Component.js 752 bytes [built] [code generated]
chunk (runtime: mfeBBB) vendors-node_modules_date-fns_esm_index_js.js (id hint: vendors) 679 KiB [rendered] reused as split chunk (cache group: defaultVendors)
> provide shared module (default) date-fns@2.29.3 = ../../node_modules/date-fns/esm/index.js
> consume shared module (default) date-fns@^2.15.0 (strict) (fallback: ../../node_modules/date-fns/esm/index.js)
> provide shared module (default) date-fns@2.23.0 = ../../node_modules/date-fns/esm/index.js
../../node_modules/date-fns/esm/index.js + 263 modules 546 KiB [built] [code generated]
mfe-b (webpack 5.51.1) compiled successfully
../../node_modules/date-fns/esm/index.js + 312 modules 679 KiB [built] [code generated]
mfe-b (webpack 5.78.0) compiled successfully
mfe-c:
asset vendors-node_modules_date-fns_esm_index_js.js 82.3 KiB [emitted] [minimized] (id hint: vendors)
asset mfeCCC.js 6.46 KiB [emitted] [minimized] (name: mfeCCC)
asset vendors-node_modules_date-fns_esm_index_js.js 154 KiB [emitted] [minimized] (id hint: vendors)
asset mfeCCC.js 6.47 KiB [emitted] [minimized] (name: mfeCCC)
asset node_modules_lodash_random_js.js 3.13 KiB [emitted] [minimized]
asset src-c_LazyComponent_js.js 533 bytes [emitted] [minimized]
asset src-c_Component_js.js 489 bytes [emitted] [minimized]
chunk (runtime: mfeCCC) mfeCCC.js (mfeCCC) 42 bytes (javascript) 84 bytes (share-init) 16.8 KiB (runtime) [entry] [rendered]
asset src-c_LazyComponent_js.js 532 bytes [emitted] [minimized]
asset src-c_Component_js.js 488 bytes [emitted] [minimized]
chunk (runtime: mfeCCC) mfeCCC.js (mfeCCC) 42 bytes (javascript) 84 bytes (share-init) 17.3 KiB (runtime) [entry] [rendered]
> mfeCCC
runtime modules 16.8 KiB 12 modules
runtime modules 17.3 KiB 12 modules
built modules 42 bytes (javascript) 84 bytes (share-init) [built]
container entry 42 bytes [built] [code generated]
provide shared module (default) date-fns@2.23.0 = ../../node_modules/date-fns/esm/index.js 42 bytes [built] [code generated]
provide shared module (default) date-fns@2.29.3 = ../../node_modules/date-fns/esm/index.js 42 bytes [built] [code generated]
provide shared module (default) lodash/random@4.17.21 = ../../node_modules/lodash/random.js 42 bytes [built] [code generated]
chunk (runtime: mfeCCC) node_modules_lodash_random_js.js 16 KiB [rendered]
> provide shared module (default) lodash/random@4.17.21 = ../../node_modules/lodash/random.js
> consume shared module (default) lodash/random@^4.17.19 (strict) (fallback: ../../node_modules/lodash/random.js)
dependent modules 13.7 KiB [dependent] 20 modules
../../node_modules/lodash/random.js 2.32 KiB [built] [code generated]
chunk (runtime: mfeCCC) src-c_Component_js.js 469 bytes (javascript) 42 bytes (consume-shared) [rendered]
chunk (runtime: mfeCCC) src-c_Component_js.js 467 bytes (javascript) 42 bytes (consume-shared) [rendered]
> ./src-c/Component container entry ./Component
dependent modules 42 bytes [dependent] 1 module
./src-c/Component.js 469 bytes [built] [code generated]
chunk (runtime: mfeCCC) src-c_LazyComponent_js.js 506 bytes (javascript) 42 bytes (consume-shared) [rendered]
./src-c/Component.js 467 bytes [built] [code generated]
chunk (runtime: mfeCCC) src-c_LazyComponent_js.js 504 bytes (javascript) 42 bytes (consume-shared) [rendered]
> ./src-c/LazyComponent container entry ./Component2
dependent modules 42 bytes [dependent] 1 module
./src-c/LazyComponent.js 506 bytes [built] [code generated]
chunk (runtime: mfeCCC) vendors-node_modules_date-fns_esm_index_js.js (id hint: vendors) 546 KiB [rendered] reused as split chunk (cache group: defaultVendors)
./src-c/LazyComponent.js 504 bytes [built] [code generated]
chunk (runtime: mfeCCC) vendors-node_modules_date-fns_esm_index_js.js (id hint: vendors) 679 KiB [rendered] reused as split chunk (cache group: defaultVendors)
> provide shared module (default) date-fns@2.29.3 = ../../node_modules/date-fns/esm/index.js
> consume shared module (default) date-fns@^2.15.0 (strict) (fallback: ../../node_modules/date-fns/esm/index.js)
> provide shared module (default) date-fns@2.23.0 = ../../node_modules/date-fns/esm/index.js
../../node_modules/date-fns/esm/index.js + 263 modules 546 KiB [built] [code generated]
../../node_modules/date-fns/esm/index.js + 312 modules 679 KiB [built] [code generated]
chunk (runtime: mfeCCC) 42 bytes split chunk (cache group: default)
> ./src-c/Component container entry ./Component
> ./src-c/LazyComponent container entry ./Component2
consume shared module (default) react@^17.0.1 (singleton) 42 bytes [built] [code generated]
mfe-c (webpack 5.51.1) compiled successfully
consume shared module (default) react@^18.2.0 (singleton) 42 bytes [built] [code generated]
mfe-c (webpack 5.78.0) compiled successfully
```

View File

@ -150,7 +150,7 @@ chunk (runtime: main) output.js (main) 302 bytes (javascript) 670 bytes (runtime
[used exports unknown]
entry ./example.js main
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -165,5 +165,5 @@ chunk (runtime: main) output.js (main) 302 bytes (javascript) 396 bytes (runtime
[all exports used]
entry ./example.js main
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -849,7 +849,7 @@ chunk (runtime: 9a81d90cfd0dfd13d748) workers/fibonacci.js (fibonacci) 176 bytes
./fib-worker.js 176 bytes [built] [code generated]
[used exports unknown]
new Worker() ./fib-worker.js ./example.js 80:18-84:2
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -892,5 +892,5 @@ chunk (runtime: 9a81d90cfd0dfd13d748) workers/fibonacci.js (fibonacci) 176 bytes
./fib-worker.js 176 bytes [built] [code generated]
[no exports used]
new Worker() ./fib-worker.js ./example.js 80:18-84:2
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -142,7 +142,7 @@ chunk (runtime: main) output.js (main) 453 bytes (javascript) 396 bytes (runtime
[all exports used]
entry ./example.js main
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -157,5 +157,5 @@ chunk (runtime: main) output.js (main) 453 bytes (javascript) 396 bytes (runtime
[all exports used]
entry ./example.js main
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -146,7 +146,7 @@ mobile:
./example.js 94 bytes [built] [code generated]
[used exports unknown]
entry ./example main
mobile (webpack 5.51.1) compiled successfully
mobile (webpack 5.78.0) compiled successfully
desktop:
asset desktop.js 292 bytes [emitted] (name: main)
@ -155,7 +155,7 @@ desktop:
./example.js 94 bytes [built] [code generated]
[used exports unknown]
entry ./example main
desktop (webpack 5.51.1) compiled successfully
desktop (webpack 5.78.0) compiled successfully
```
## Production mode
@ -169,7 +169,7 @@ mobile:
./example.js 94 bytes [built] [code generated]
[no exports used]
entry ./example main
mobile (webpack 5.51.1) compiled successfully
mobile (webpack 5.78.0) compiled successfully
desktop:
asset desktop.js 37 bytes [emitted] [minimized] (name: main)
@ -178,5 +178,5 @@ desktop:
./example.js 94 bytes [built] [code generated]
[no exports used]
entry ./example main
desktop (webpack 5.51.1) compiled successfully
desktop (webpack 5.78.0) compiled successfully
```

View File

@ -43,7 +43,7 @@ module.exports = {
exports["MyLibrary"] = factory();
else
root["MyLibrary"] = root["MyLibrary"] || {}, root["MyLibrary"]["alpha"] = factory();
})(self, function() {
})(self, () => {
return /******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ([
/* 0 */
@ -119,7 +119,7 @@ module.exports = "alpha";
exports["MyLibrary"] = factory();
else
root["MyLibrary"] = root["MyLibrary"] || {}, root["MyLibrary"]["beta"] = factory();
})(self, function() {
})(self, () => {
return /******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ([
/* 0 */,
@ -189,7 +189,7 @@ module.exports = "beta";
## Unoptimized
```
asset MyLibrary.beta.js 2.07 KiB [emitted] (name: beta)
asset MyLibrary.beta.js 2.06 KiB [emitted] (name: beta)
asset MyLibrary.alpha.js 2.06 KiB [emitted] (name: alpha)
chunk (runtime: alpha) MyLibrary.alpha.js (alpha) 25 bytes [entry] [rendered]
> ./alpha alpha
@ -205,14 +205,14 @@ chunk (runtime: beta) MyLibrary.beta.js (beta) 24 bytes [entry] [rendered]
cjs self exports reference ./beta.js 1:0-14
entry ./beta beta
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset MyLibrary.alpha.js 429 bytes [emitted] [minimized] (name: alpha)
asset MyLibrary.beta.js 425 bytes [emitted] [minimized] (name: beta)
asset MyLibrary.alpha.js 423 bytes [emitted] [minimized] (name: alpha)
asset MyLibrary.beta.js 419 bytes [emitted] [minimized] (name: beta)
chunk (runtime: alpha) MyLibrary.alpha.js (alpha) 25 bytes [entry] [rendered]
> ./alpha alpha
./alpha.js 25 bytes [built] [code generated]
@ -227,5 +227,5 @@ chunk (runtime: beta) MyLibrary.beta.js (beta) 24 bytes [entry] [rendered]
cjs self exports reference ./beta.js 1:0-14
entry ./beta beta
used as library export
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -120,7 +120,7 @@ module.exports = "Common";
var common = __webpack_require__(/*! ./common */ 1);
__webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./shared */ 3)]; (function(shared) {
shared("This is page A");
}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}).catch(__webpack_require__.oe);
}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);})['catch'](__webpack_require__.oe);
/***/ })
/******/ ]);
@ -255,7 +255,6 @@ __webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -348,7 +347,7 @@ __webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ return __webpack_require__.O(result);
/******/ }
@ -393,7 +392,7 @@ var common = __webpack_require__(/*! ./common */ 1);
__webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
var shared = __webpack_require__(/*! ./shared */ 3);
shared("This is page B");
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
/***/ })
@ -529,7 +528,6 @@ __webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -622,7 +620,7 @@ __webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ return __webpack_require__.O(result);
/******/ }
@ -694,9 +692,9 @@ chunk (runtime: pageA, pageB) 52.js 88 bytes [rendered]
cjs require ./shared ./pageB.js 3:14-33
amd require ./shared ./pageA.js 2:0-4:2
cjs self exports reference ./shared.js 2:0-14
chunk (runtime: pageB) pageB.js (pageB) 148 bytes (javascript) 5.92 KiB (runtime) [entry] [rendered]
chunk (runtime: pageB) pageB.js (pageB) 148 bytes (javascript) 5.91 KiB (runtime) [entry] [rendered]
> ./pageB pageB
runtime modules 5.92 KiB 7 modules
runtime modules 5.91 KiB 7 modules
./pageB.js 148 bytes [built] [code generated]
[used exports unknown]
entry ./pageB pageB
@ -709,13 +707,13 @@ chunk (runtime: pageA, pageB) commons.js (commons) (id hint: commons) 26 bytes [
cjs require ./common ./pageA.js 1:13-32
cjs require ./common ./pageB.js 1:13-32
cjs require ./common ./shared.js 1:13-32
chunk (runtime: pageA) pageA.js (pageA) 105 bytes (javascript) 5.92 KiB (runtime) [entry] [rendered]
chunk (runtime: pageA) pageA.js (pageA) 105 bytes (javascript) 5.91 KiB (runtime) [entry] [rendered]
> ./pageA pageA
runtime modules 5.92 KiB 7 modules
runtime modules 5.91 KiB 7 modules
./pageA.js 105 bytes [built] [code generated]
[used exports unknown]
entry ./pageA pageA
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -726,7 +724,7 @@ asset pageB.js 2.13 KiB [emitted] [minimized] (name: pageB)
asset 52.js 116 bytes [emitted] [minimized]
asset commons.js 86 bytes [emitted] [minimized] (name: commons) (id hint: commons)
Entrypoint pageA 2.24 KiB = commons.js 86 bytes pageA.js 2.16 KiB
Entrypoint pageB 2.22 KiB = commons.js 86 bytes pageB.js 2.13 KiB
Entrypoint pageB 2.21 KiB = commons.js 86 bytes pageB.js 2.13 KiB
chunk (runtime: pageA, pageB) 52.js 88 bytes [rendered]
> ./shared ./pageA.js 2:0-4:2
> ./pageB.js 2:0-5:2
@ -737,9 +735,9 @@ chunk (runtime: pageA, pageB) 52.js 88 bytes [rendered]
cjs require ./shared ./pageB.js 3:14-33
amd require ./shared ./pageA.js 2:0-4:2
cjs self exports reference ./shared.js 2:0-14
chunk (runtime: pageB) pageB.js (pageB) 148 bytes (javascript) 5.92 KiB (runtime) [entry] [rendered]
chunk (runtime: pageB) pageB.js (pageB) 148 bytes (javascript) 5.91 KiB (runtime) [entry] [rendered]
> ./pageB pageB
runtime modules 5.92 KiB 7 modules
runtime modules 5.91 KiB 7 modules
./pageB.js 148 bytes [built] [code generated]
[no exports used]
entry ./pageB pageB
@ -752,11 +750,11 @@ chunk (runtime: pageA, pageB) commons.js (commons) (id hint: commons) 26 bytes [
cjs require ./common ./pageA.js 1:13-32
cjs require ./common ./pageB.js 1:13-32
cjs require ./common ./shared.js 1:13-32
chunk (runtime: pageA) pageA.js (pageA) 105 bytes (javascript) 5.92 KiB (runtime) [entry] [rendered]
chunk (runtime: pageA) pageA.js (pageA) 105 bytes (javascript) 5.91 KiB (runtime) [entry] [rendered]
> ./pageA pageA
runtime modules 5.92 KiB 7 modules
runtime modules 5.91 KiB 7 modules
./pageA.js 105 bytes [built] [code generated]
[no exports used]
entry ./pageA pageA
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -140,7 +140,6 @@ require.ensure(["b"], function(require) {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -233,7 +232,7 @@ require.ensure(["b"], function(require) {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -262,21 +261,21 @@ var a = __webpack_require__(/*! a */ 1);
__webpack_require__.e(/*! require.ensure | my own chunk */ 666).then((function(require) {
// a named chunk
var c = __webpack_require__(/*! c */ 3);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
__webpack_require__.e(/*! require.ensure | my own chunk */ 666).then((function(require) {
// another chunk with the same name
var d = __webpack_require__(/*! d */ 4);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
__webpack_require__.e(/*! require.ensure | my own chunk */ 666).then((function(require) {
// the same again
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
__webpack_require__.e(/*! require.ensure */ 885).then((function(require) {
// chunk without name
var d = __webpack_require__(/*! d */ 4);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__))['catch'](__webpack_require__.oe);
})();
@ -366,9 +365,9 @@ __webpack_require__.e(/*! require.ensure */ 885).then((function(require) {
asset output.js 9.83 KiB [emitted] (name: main)
asset 666.output.js 735 bytes [emitted] (name: my own chunk)
asset 885.output.js 528 bytes [emitted]
chunk (runtime: main) output.js (main) 432 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 432 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
dependent modules 11 bytes [dependent] 1 module
./example.js 421 bytes [built] [code generated]
[used exports unknown]
@ -400,7 +399,7 @@ chunk (runtime: main) 885.output.js 22 bytes [rendered]
[used exports unknown]
cjs require d ./example.js 10:9-21
cjs require d ./example.js 19:9-21
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -409,9 +408,9 @@ webpack 5.51.1 compiled successfully
asset output.js 1.88 KiB [emitted] [minimized] (name: main)
asset 666.output.js 95 bytes [emitted] [minimized] (name: my own chunk)
asset 885.output.js 80 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 432 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 432 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
dependent modules 11 bytes [dependent] 1 module
./example.js 421 bytes [built] [code generated]
[no exports used]
@ -443,5 +442,5 @@ chunk (runtime: main) 885.output.js 22 bytes [rendered]
[used exports unknown]
cjs require d ./example.js 10:9-21
cjs require d ./example.js 19:9-21
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -55,34 +55,34 @@ module.exports = (env = "development") => ({
## Unoptimized
```
asset output.js 4.04 MiB [emitted] (name: main)
chunk (runtime: main) output.js (main) 2.9 MiB (javascript) 1.25 KiB (runtime) [entry]
asset output.js 4.52 MiB [emitted] (name: main)
chunk (runtime: main) output.js (main) 3.26 MiB (javascript) 1.29 KiB (runtime) [entry]
> ./example.js main
cached modules 2.9 MiB (javascript) 1.25 KiB (runtime) [cached] 1210 modules
webpack 5.51.1 compiled successfully
cached modules 3.26 MiB (javascript) 1.29 KiB (runtime) [cached] 1415 modules
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 562 KiB [emitted] [minimized] [big] (name: main) 1 related asset
chunk (runtime: main) output.js (main) 1.95 MiB (javascript) 1.25 KiB (runtime) [entry]
asset output.js 630 KiB [emitted] [minimized] [big] (name: main) 1 related asset
chunk (runtime: main) output.js (main) 2.18 MiB (javascript) 1.29 KiB (runtime) [entry]
> ./example.js main
cached modules 1.95 MiB (javascript) 1.25 KiB (runtime) [cached] 583 modules
cached modules 2.18 MiB (javascript) 1.29 KiB (runtime) [cached] 791 modules
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
output.js (562 KiB)
output.js (630 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (562 KiB)
main (630 KiB)
output.js
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
webpack 5.51.1 compiled with 3 warnings
webpack 5.78.0 compiled with 3 warnings
```

View File

@ -69,7 +69,6 @@ const Button = () => {
};
/***/ }),
/***/ "./components/Checkbox.js":
@ -91,7 +90,6 @@ const Checkbox = () => {
};
/***/ }),
/***/ "./pages/Dashboard.js":
@ -111,11 +109,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components */ "./components/Button.js");
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components */ "./components/Checkbox.js");
const Dashboard = () => {
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components__WEBPACK_IMPORTED_MODULE_0__.default, null), /*#__PURE__*/React.createElement(_components__WEBPACK_IMPORTED_MODULE_1__.Checkbox, null));
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components__WEBPACK_IMPORTED_MODULE_0__["default"], null), /*#__PURE__*/React.createElement(_components__WEBPACK_IMPORTED_MODULE_1__.Checkbox, null));
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Dashboard);
/***/ })
@ -146,7 +142,6 @@ const Button = () => {
};
/***/ }),
/***/ "./components/Dialog.js":
@ -166,7 +161,6 @@ const Dialog = ({
}) => {
return /*#__PURE__*/React.createElement("dialog", null, children);
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Dialog);
/***/ }),
@ -188,11 +182,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components */ "./components/Button.js");
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components */ "./components/Dialog.js");
const Login = () => {
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components__WEBPACK_IMPORTED_MODULE_0__.default, null), /*#__PURE__*/React.createElement(_components__WEBPACK_IMPORTED_MODULE_1__.default, null));
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_components__WEBPACK_IMPORTED_MODULE_0__["default"], null), /*#__PURE__*/React.createElement(_components__WEBPACK_IMPORTED_MODULE_1__["default"], null));
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Login);
/***/ })
@ -201,7 +193,7 @@ const Login = () => {
```
```javascript
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["pages_Login_js"],{"./components/Button.js":(e,t,n)=>{n.d(t,{Z:()=>c});const c=()=>React.createElement("button",null)},"./pages/Login.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const c=({children:e})=>React.createElement("dialog",null,e);var l=n("./components/Button.js");const a=()=>React.createElement(React.Fragment,null,React.createElement(l.Z,null),React.createElement(c,null))}}]);
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["pages_Login_js"],{"./components/Button.js":(e,t,n)=>{n.d(t,{Z:()=>l});const l=()=>React.createElement("button",null)},"./pages/Login.js":(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var l=n("./components/Button.js");const a=({children:e})=>React.createElement("dialog",null,e),c=()=>React.createElement(React.Fragment,null,React.createElement(l.Z,null),React.createElement(a,null))}}]);
```
# Info
@ -209,63 +201,63 @@ const Login = () => {
## Unoptimized
```
asset output.js 11.1 KiB [emitted] (name: main)
asset output.js 11 KiB [emitted] (name: main)
asset pages_Login_js.output.js 2.82 KiB [emitted]
asset pages_Dashboard_js.output.js 2.78 KiB [emitted]
chunk (runtime: main) output.js (main) 208 bytes (javascript) 5.55 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 208 bytes (javascript) 5.54 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 5.55 KiB 8 modules
runtime modules 5.54 KiB 8 modules
dependent modules 160 bytes [dependent] 1 module
./example.js 48 bytes [built] [code generated]
[no exports used]
entry ./example.js main
chunk (runtime: main) pages_Dashboard_js.output.js 513 bytes [rendered]
chunk (runtime: main) pages_Dashboard_js.output.js 509 bytes [rendered]
> ./Dashboard ./pages/ lazy ^\.\/.*$ namespace object ./Dashboard
> ./Dashboard.js ./pages/ lazy ^\.\/.*$ namespace object ./Dashboard.js
dependent modules 244 bytes [dependent] 2 modules
./pages/Dashboard.js 269 bytes [optional] [built] [code generated]
dependent modules 242 bytes [dependent] 2 modules
./pages/Dashboard.js 267 bytes [optional] [built] [code generated]
[exports: default]
import() context element ./Dashboard ./pages/ lazy ^\.\/.*$ namespace object ./Dashboard
import() context element ./Dashboard.js ./pages/ lazy ^\.\/.*$ namespace object ./Dashboard.js
chunk (runtime: main) pages_Login_js.output.js 504 bytes [rendered]
chunk (runtime: main) pages_Login_js.output.js 500 bytes [rendered]
> ./Login ./pages/ lazy ^\.\/.*$ namespace object ./Login
> ./Login.js ./pages/ lazy ^\.\/.*$ namespace object ./Login.js
dependent modules 247 bytes [dependent] 2 modules
./pages/Login.js 257 bytes [optional] [built] [code generated]
dependent modules 245 bytes [dependent] 2 modules
./pages/Login.js 255 bytes [optional] [built] [code generated]
[exports: default]
import() context element ./Login ./pages/ lazy ^\.\/.*$ namespace object ./Login
import() context element ./Login.js ./pages/ lazy ^\.\/.*$ namespace object ./Login.js
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 2.49 KiB [emitted] [minimized] (name: main)
asset pages_Dashboard_js.output.js 456 bytes [emitted] [minimized]
asset pages_Login_js.output.js 450 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 208 bytes (javascript) 5.55 KiB (runtime) [entry] [rendered]
asset pages_Dashboard_js.output.js 450 bytes [emitted] [minimized]
asset pages_Login_js.output.js 444 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 208 bytes (javascript) 5.54 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 5.55 KiB 8 modules
runtime modules 5.54 KiB 8 modules
dependent modules 160 bytes [dependent] 1 module
./example.js 48 bytes [built] [code generated]
[no exports used]
entry ./example.js main
chunk (runtime: main) pages_Dashboard_js.output.js 513 bytes [rendered]
chunk (runtime: main) pages_Dashboard_js.output.js 509 bytes [rendered]
> ./Dashboard ./pages/ lazy ^\.\/.*$ namespace object ./Dashboard
> ./Dashboard.js ./pages/ lazy ^\.\/.*$ namespace object ./Dashboard.js
dependent modules 115 bytes [dependent] 1 module
./pages/Dashboard.js + 1 modules 398 bytes [optional] [built] [code generated]
dependent modules 114 bytes [dependent] 1 module
./pages/Dashboard.js + 1 modules 395 bytes [optional] [built] [code generated]
[exports: default]
import() context element ./Dashboard ./pages/ lazy ^\.\/.*$ namespace object ./Dashboard
import() context element ./Dashboard.js ./pages/ lazy ^\.\/.*$ namespace object ./Dashboard.js
chunk (runtime: main) pages_Login_js.output.js 504 bytes [rendered]
chunk (runtime: main) pages_Login_js.output.js 500 bytes [rendered]
> ./Login ./pages/ lazy ^\.\/.*$ namespace object ./Login
> ./Login.js ./pages/ lazy ^\.\/.*$ namespace object ./Login.js
dependent modules 115 bytes [dependent] 1 module
./pages/Login.js + 1 modules 389 bytes [optional] [built] [code generated]
dependent modules 114 bytes [dependent] 1 module
./pages/Login.js + 1 modules 386 bytes [optional] [built] [code generated]
[exports: default]
import() context element ./Login ./pages/ lazy ^\.\/.*$ namespace object ./Login
import() context element ./Login.js ./pages/ lazy ^\.\/.*$ namespace object ./Login.js
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -184,7 +184,7 @@ chunk (runtime: main) output.js (main) 603 bytes (javascript) 88 bytes (runtime)
./example.js 146 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -198,7 +198,7 @@ chunk (runtime: main) output.js (main) 603 bytes (javascript) 88 bytes (runtime)
./example.js 146 bytes [built] [code generated]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
# Code Splitting

View File

@ -128,7 +128,7 @@ chunk (runtime: main) output.js (main) 313 bytes [entry] [rendered]
./example.js 282 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -141,5 +141,5 @@ chunk (runtime: main) output.js (main) 313 bytes [entry] [rendered]
./example.js 282 bytes [built] [code generated]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -4,17 +4,17 @@ This is the dependency graph for the example: (solid lines express sync imports,
![](graph.png)
All modules except `cjs` are EcmaScript modules. `cjs` is a CommonJs module.
All modules except `cjs` are EcmaScript modules. `cjs` is a CommonJS module.
The interesting thing here is that putting all modules in single scope won't work, because of multiple reasons:
The interesting thing here is that putting all modules in a single scope won't work, because of multiple reasons:
- Modules `lazy`, `c`, `d` and `cjs` need to be in a separate chunk
- Module `shared` is accessed by two chunks (different scopes)
- Module `cjs` is a CommonJs module
- Module `cjs` is a CommonJS module
![](graph2.png)
webpack therefore uses a approach called **"Partial Scope Hoisting"** or "Module concatenation", which chooses the largest possible subsets of ES modules which can be scope hoisted and combines them with the default webpack primitives.
Webpack, therefore, uses an approach called **"Partial Scope Hoisting"** or "Module concatenation", which chooses the largest possible subsets of ES modules which can be scope hoisted and combines them with the default webpack primitives.
![](graph3.png)
@ -256,7 +256,6 @@ var x = "x";
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -360,7 +359,7 @@ var x = "x";
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -523,7 +522,7 @@ chunk (runtime: main) 872.output.js 263 bytes [rendered]
./lazy.js + 2 modules 221 bytes [built] [code generated]
[exports: c, d, x, y]
import() ./lazy ./example.js + 2 modules ./example.js 4:0-16
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -545,5 +544,5 @@ chunk (runtime: main) 872.output.js 263 bytes [rendered]
./lazy.js + 2 modules 221 bytes [built] [code generated]
[exports: c, d, x, y]
import() ./lazy ./example.js + 2 modules ./example.js 4:0-16
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -4,9 +4,9 @@ This is the dependency graph for the example: (solid lines express sync imports,
![](graph.png)
All modules except `cjs` are EcmaScript modules. `cjs` is a CommonJs module.
All modules except `cjs` are EcmaScript modules. `cjs` is a CommonJS module.
The interesting thing here is that putting all modules in single scope won't work, because of multiple reasons:
The interesting thing here is that putting all modules in a single scope won't work, because of multiple reasons:
- Modules `lazy`, `c`, `d` and `cjs` need to be in a separate chunk
- Module `shared` is accessed by two chunks (different scopes)
@ -14,7 +14,7 @@ The interesting thing here is that putting all modules in single scope won't wor
![](graph2.png)
webpack therefore uses a approach called **"Partial Scope Hoisting"** or "Module concatenation", which chooses the largest possible subsets of ES modules which can be scope hoisted and combines them with the default webpack primitives.
Webpack, therefore, uses a approach called **"Partial Scope Hoisting"** or "Module concatenation", which chooses the largest possible subsets of ES modules which can be scope hoisted and combines them with the default webpack primitives.
![](graph3.png)

View File

@ -1,4 +1,4 @@
This example shows how the `sideEffects` flag for library authors works.
This example shows how the `sideEffects` flag works for library authors.
The example contains a large library, `big-module`. `big-module` contains multiple child modules: `a`, `b` and `c`. The exports from the child modules are re-exported in the entry module (`index.js`) of the library. A consumer uses **some** of the exports, importing them from the library via `import { a, b } from "big-module"`. According to the EcmaScript spec, all child modules _must_ be evaluated because they could contain side effects.
@ -291,7 +291,7 @@ chunk (runtime: main) output.js (main) 354 bytes (javascript) 670 bytes (runtime
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -304,5 +304,5 @@ chunk (runtime: main) output.js (main) 332 bytes [entry] [rendered]
[no exports]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -1,4 +1,4 @@
This example shows how the `sideEffects` flag for library authors works.
This example shows how the `sideEffects` flag works for library authors.
The example contains a large library, `big-module`. `big-module` contains multiple child modules: `a`, `b` and `c`. The exports from the child modules are re-exported in the entry module (`index.js`) of the library. A consumer uses **some** of the exports, importing them from the library via `import { a, b } from "big-module"`. According to the EcmaScript spec, all child modules _must_ be evaluated because they could contain side effects.

View File

@ -335,88 +335,88 @@ chunk (runtime: runtime~bundle) ./bundle-eval.js (bundle) 256 bytes [initial] [r
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-eval.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-eval.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
asset ./runtime~bundle-eval-cheap-source-map.js 5.46 KiB [emitted] (name: runtime~bundle)
asset ./runtime~bundle-eval-cheap-source-map.js 5.45 KiB [emitted] (name: runtime~bundle)
asset ./bundle-eval-cheap-source-map.js 2.2 KiB [emitted] (name: bundle)
Entrypoint bundle 7.66 KiB = ./runtime~bundle-eval-cheap-source-map.js 5.46 KiB ./bundle-eval-cheap-source-map.js 2.2 KiB
Entrypoint bundle 7.65 KiB = ./runtime~bundle-eval-cheap-source-map.js 5.45 KiB ./bundle-eval-cheap-source-map.js 2.2 KiB
chunk (runtime: runtime~bundle) ./bundle-eval-cheap-source-map.js (bundle) 256 bytes [initial] [rendered]
> coffee-loader!./example.coffee bundle
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-eval-cheap-source-map.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-eval-cheap-source-map.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
asset ./runtime~bundle-eval-cheap-module-source-map.js 5.46 KiB [emitted] (name: runtime~bundle)
asset ./runtime~bundle-eval-cheap-module-source-map.js 5.45 KiB [emitted] (name: runtime~bundle)
asset ./bundle-eval-cheap-module-source-map.js 2.33 KiB [emitted] (name: bundle)
Entrypoint bundle 7.79 KiB = ./runtime~bundle-eval-cheap-module-source-map.js 5.46 KiB ./bundle-eval-cheap-module-source-map.js 2.33 KiB
Entrypoint bundle 7.79 KiB = ./runtime~bundle-eval-cheap-module-source-map.js 5.45 KiB ./bundle-eval-cheap-module-source-map.js 2.33 KiB
chunk (runtime: runtime~bundle) ./bundle-eval-cheap-module-source-map.js (bundle) 256 bytes [initial] [rendered]
> coffee-loader!./example.coffee bundle
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-eval-cheap-module-source-map.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-eval-cheap-module-source-map.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
asset ./runtime~bundle-eval-source-map.js 5.46 KiB [emitted] (name: runtime~bundle)
asset ./runtime~bundle-eval-source-map.js 5.45 KiB [emitted] (name: runtime~bundle)
asset ./bundle-eval-source-map.js 2.33 KiB [emitted] (name: bundle)
Entrypoint bundle 7.79 KiB = ./runtime~bundle-eval-source-map.js 5.46 KiB ./bundle-eval-source-map.js 2.33 KiB
Entrypoint bundle 7.79 KiB = ./runtime~bundle-eval-source-map.js 5.45 KiB ./bundle-eval-source-map.js 2.33 KiB
chunk (runtime: runtime~bundle) ./bundle-eval-source-map.js (bundle) 256 bytes [initial] [rendered]
> coffee-loader!./example.coffee bundle
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-eval-source-map.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-eval-source-map.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
asset ./runtime~bundle-cheap-source-map.js 4.97 KiB [emitted] (name: runtime~bundle) 1 related asset
asset ./bundle-cheap-source-map.js 938 bytes [emitted] (name: bundle) 1 related asset
Entrypoint bundle 5.89 KiB (4.84 KiB) = ./runtime~bundle-cheap-source-map.js 4.97 KiB ./bundle-cheap-source-map.js 938 bytes 2 auxiliary assets
Entrypoint bundle 5.88 KiB (4.83 KiB) = ./runtime~bundle-cheap-source-map.js 4.97 KiB ./bundle-cheap-source-map.js 938 bytes 2 auxiliary assets
chunk (runtime: runtime~bundle) ./bundle-cheap-source-map.js (bundle) 256 bytes [initial] [rendered]
> coffee-loader!./example.coffee bundle
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-cheap-source-map.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-cheap-source-map.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
asset ./runtime~bundle-cheap-module-source-map.js 4.98 KiB [emitted] (name: runtime~bundle) 1 related asset
asset ./runtime~bundle-cheap-module-source-map.js 4.97 KiB [emitted] (name: runtime~bundle) 1 related asset
asset ./bundle-cheap-module-source-map.js 945 bytes [emitted] (name: bundle) 1 related asset
Entrypoint bundle 5.9 KiB (4.76 KiB) = ./runtime~bundle-cheap-module-source-map.js 4.98 KiB ./bundle-cheap-module-source-map.js 945 bytes 2 auxiliary assets
Entrypoint bundle 5.9 KiB (4.76 KiB) = ./runtime~bundle-cheap-module-source-map.js 4.97 KiB ./bundle-cheap-module-source-map.js 945 bytes 2 auxiliary assets
chunk (runtime: runtime~bundle) ./bundle-cheap-module-source-map.js (bundle) 256 bytes [initial] [rendered]
> coffee-loader!./example.coffee bundle
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-cheap-module-source-map.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-cheap-module-source-map.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
asset ./runtime~bundle-inline-cheap-source-map.js 10.8 KiB [emitted] (name: runtime~bundle)
asset ./runtime~bundle-inline-cheap-source-map.js 10.7 KiB [emitted] (name: runtime~bundle)
asset ./bundle-inline-cheap-source-map.js 1.62 KiB [emitted] (name: bundle)
Entrypoint bundle 12.4 KiB = ./runtime~bundle-inline-cheap-source-map.js 10.8 KiB ./bundle-inline-cheap-source-map.js 1.62 KiB
Entrypoint bundle 12.4 KiB = ./runtime~bundle-inline-cheap-source-map.js 10.7 KiB ./bundle-inline-cheap-source-map.js 1.62 KiB
chunk (runtime: runtime~bundle) ./bundle-inline-cheap-source-map.js (bundle) 256 bytes [initial] [rendered]
> coffee-loader!./example.coffee bundle
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-inline-cheap-source-map.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-inline-cheap-source-map.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
asset ./runtime~bundle-inline-cheap-module-source-map.js 10.8 KiB [emitted] (name: runtime~bundle)
asset ./bundle-inline-cheap-module-source-map.js 1.51 KiB [emitted] (name: bundle)
@ -426,49 +426,49 @@ chunk (runtime: runtime~bundle) ./bundle-inline-cheap-module-source-map.js (bund
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-inline-cheap-module-source-map.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-inline-cheap-module-source-map.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
asset ./runtime~bundle-source-map.js 4.96 KiB [emitted] (name: runtime~bundle) 1 related asset
asset ./bundle-source-map.js 932 bytes [emitted] (name: bundle) 1 related asset
Entrypoint bundle 5.88 KiB (4.86 KiB) = ./runtime~bundle-source-map.js 4.96 KiB ./bundle-source-map.js 932 bytes 2 auxiliary assets
Entrypoint bundle 5.87 KiB (4.85 KiB) = ./runtime~bundle-source-map.js 4.96 KiB ./bundle-source-map.js 932 bytes 2 auxiliary assets
chunk (runtime: runtime~bundle) ./bundle-source-map.js (bundle) 256 bytes [initial] [rendered]
> coffee-loader!./example.coffee bundle
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-source-map.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-source-map.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
asset ./runtime~bundle-inline-source-map.js 10.8 KiB [emitted] (name: runtime~bundle)
asset ./runtime~bundle-inline-source-map.js 10.7 KiB [emitted] (name: runtime~bundle)
asset ./bundle-inline-source-map.js 1.64 KiB [emitted] (name: bundle)
Entrypoint bundle 12.4 KiB = ./runtime~bundle-inline-source-map.js 10.8 KiB ./bundle-inline-source-map.js 1.64 KiB
Entrypoint bundle 12.4 KiB = ./runtime~bundle-inline-source-map.js 10.7 KiB ./bundle-inline-source-map.js 1.64 KiB
chunk (runtime: runtime~bundle) ./bundle-inline-source-map.js (bundle) 256 bytes [initial] [rendered]
> coffee-loader!./example.coffee bundle
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-inline-source-map.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-inline-source-map.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
asset ./runtime~bundle-hidden-source-map.js 4.91 KiB [emitted] (name: runtime~bundle) 1 related asset
asset ./bundle-hidden-source-map.js 886 bytes [emitted] (name: bundle) 1 related asset
Entrypoint bundle 5.78 KiB (4.87 KiB) = ./runtime~bundle-hidden-source-map.js 4.91 KiB ./bundle-hidden-source-map.js 886 bytes 2 auxiliary assets
Entrypoint bundle 5.77 KiB (4.87 KiB) = ./runtime~bundle-hidden-source-map.js 4.91 KiB ./bundle-hidden-source-map.js 886 bytes 2 auxiliary assets
chunk (runtime: runtime~bundle) ./bundle-hidden-source-map.js (bundle) 256 bytes [initial] [rendered]
> coffee-loader!./example.coffee bundle
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-hidden-source-map.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-hidden-source-map.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
asset ./runtime~bundle-nosources-source-map.js 4.97 KiB [emitted] (name: runtime~bundle) 1 related asset
asset ./bundle-nosources-source-map.js 942 bytes [emitted] (name: bundle) 1 related asset
@ -478,8 +478,8 @@ chunk (runtime: runtime~bundle) ./bundle-nosources-source-map.js (bundle) 256 by
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
[used exports unknown]
entry coffee-loader!./example.coffee bundle
chunk (runtime: runtime~bundle) ./runtime~bundle-nosources-source-map.js (runtime~bundle) 2.46 KiB [entry] [rendered]
chunk (runtime: runtime~bundle) ./runtime~bundle-nosources-source-map.js (runtime~bundle) 2.45 KiB [entry] [rendered]
> coffee-loader!./example.coffee bundle
runtime modules 2.46 KiB 3 modules
webpack 5.51.1 compiled successfully
runtime modules 2.45 KiB 3 modules
webpack 5.78.0 compiled successfully
```

View File

@ -133,8 +133,8 @@ When compiling for other targets like node.js, electron or WebWorkers, it may be
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "CreateUserAction": () => (/* binding */ CreateUserAction),
/* harmony export */ "AlternativeCreateUserAction": () => (/* binding */ AlternativeCreateUserAction)
/* harmony export */ "AlternativeCreateUserAction": () => (/* binding */ AlternativeCreateUserAction),
/* harmony export */ "CreateUserAction": () => (/* binding */ CreateUserAction)
/* harmony export */ });
// import() doesn't care about whether a module is an async module or not
const UserApi = __webpack_require__.e(/*! import() */ 497).then(__webpack_require__.bind(__webpack_require__, /*! ./UserApi.js */ 2));
@ -203,75 +203,70 @@ const AlternativeCreateUserAction = async name => {
/************************************************************************/
/******/ /* webpack/runtime/async module */
/******/ (() => {
/******/ var webpackThen = typeof Symbol === "function" ? Symbol("webpack then") : "__webpack_then__";
/******/ var webpackQueues = typeof Symbol === "function" ? Symbol("webpack queues") : "__webpack_queues__";
/******/ var webpackExports = typeof Symbol === "function" ? Symbol("webpack exports") : "__webpack_exports__";
/******/ var completeQueue = (queue) => {
/******/ if(queue) {
/******/ var webpackError = typeof Symbol === "function" ? Symbol("webpack error") : "__webpack_error__";
/******/ var resolveQueue = (queue) => {
/******/ if(queue && !queue.d) {
/******/ queue.d = 1;
/******/ queue.forEach((fn) => (fn.r--));
/******/ queue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));
/******/ }
/******/ }
/******/ var completeFunction = (fn) => (!--fn.r && fn());
/******/ var queueFunction = (queue, fn) => (queue ? queue.push(fn) : completeFunction(fn));
/******/ var wrapDeps = (deps) => (deps.map((dep) => {
/******/ if(dep !== null && typeof dep === "object") {
/******/ if(dep[webpackThen]) return dep;
/******/ if(dep[webpackQueues]) return dep;
/******/ if(dep.then) {
/******/ var queue = [];
/******/ queue.d = 0;
/******/ dep.then((r) => {
/******/ obj[webpackExports] = r;
/******/ completeQueue(queue);
/******/ queue = 0;
/******/ resolveQueue(queue);
/******/ }, (e) => {
/******/ obj[webpackError] = e;
/******/ resolveQueue(queue);
/******/ });
/******/ var obj = {};
/******/ obj[webpackThen] = (fn, reject) => (queueFunction(queue, fn), dep.catch(reject));
/******/ obj[webpackQueues] = (fn) => (fn(queue));
/******/ return obj;
/******/ }
/******/ }
/******/ var ret = {};
/******/ ret[webpackThen] = (fn) => (completeFunction(fn));
/******/ ret[webpackExports] = dep;
/******/ return ret;
/******/ ret[webpackQueues] = x => {};
/******/ ret[webpackExports] = dep;
/******/ return ret;
/******/ }));
/******/ __webpack_require__.a = (module, body, hasAwait) => {
/******/ var queue = hasAwait && [];
/******/ var queue;
/******/ hasAwait && ((queue = []).d = 1);
/******/ var depQueues = new Set();
/******/ var exports = module.exports;
/******/ var currentDeps;
/******/ var outerResolve;
/******/ var reject;
/******/ var isEvaluating = true;
/******/ var nested = false;
/******/ var whenAll = (deps, onResolve, onReject) => {
/******/ if (nested) return;
/******/ nested = true;
/******/ onResolve.r += deps.length;
/******/ deps.map((dep, i) => (dep[webpackThen](onResolve, onReject)));
/******/ nested = false;
/******/ };
/******/ var promise = new Promise((resolve, rej) => {
/******/ reject = rej;
/******/ outerResolve = () => (resolve(exports), completeQueue(queue), queue = 0);
/******/ outerResolve = resolve;
/******/ });
/******/ promise[webpackExports] = exports;
/******/ promise[webpackThen] = (fn, rejectFn) => {
/******/ if (isEvaluating) { return completeFunction(fn); }
/******/ if (currentDeps) whenAll(currentDeps, fn, rejectFn);
/******/ queueFunction(queue, fn);
/******/ promise.catch(rejectFn);
/******/ };
/******/ promise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise["catch"](x => {}));
/******/ module.exports = promise;
/******/ body((deps) => {
/******/ if(!deps) return outerResolve();
/******/ currentDeps = wrapDeps(deps);
/******/ var fn, result;
/******/ var promise = new Promise((resolve, reject) => {
/******/ fn = () => (resolve(result = currentDeps.map((d) => (d[webpackExports]))));
/******/ var fn;
/******/ var getResult = () => (currentDeps.map((d) => {
/******/ if(d[webpackError]) throw d[webpackError];
/******/ return d[webpackExports];
/******/ }))
/******/ var promise = new Promise((resolve) => {
/******/ fn = () => (resolve(getResult));
/******/ fn.r = 0;
/******/ whenAll(currentDeps, fn, reject);
/******/ var fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));
/******/ currentDeps.map((dep) => (dep[webpackQueues](fnQueue)));
/******/ });
/******/ return fn.r ? promise : result;
/******/ }).then(outerResolve, reject);
/******/ isEvaluating = false;
/******/ return fn.r ? promise : getResult();
/******/ }, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue)));
/******/ queue && (queue.d = 0);
/******/ };
/******/ })();
/******/
@ -352,7 +347,6 @@ const AlternativeCreateUserAction = async name => {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -456,7 +450,7 @@ const AlternativeCreateUserAction = async name => {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -512,14 +506,14 @@ __webpack_require__.r(__webpack_exports__);
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, module, __webpack_require__.a, __webpack_require__.d, __webpack_require__.* */
/***/ ((module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "createUser": () => (/* binding */ createUser)
/* harmony export */ });
/* harmony import */ var _db_connection_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./db-connection.js */ 3);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_db_connection_js__WEBPACK_IMPORTED_MODULE_0__]);
_db_connection_js__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? await __webpack_async_dependencies__ : __webpack_async_dependencies__)[0];
_db_connection_js__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
const createUser = async name => {
@ -528,7 +522,8 @@ const createUser = async name => {
await (0,_db_connection_js__WEBPACK_IMPORTED_MODULE_0__.dbCall)({ command });
};
});
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });
/***/ }),
/* 3 */
@ -542,11 +537,11 @@ const createUser = async name => {
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, module, __webpack_require__.a, __webpack_require__.d, __webpack_require__.* */
/***/ ((module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "dbCall": () => (/* binding */ dbCall),
/* harmony export */ "close": () => (/* binding */ close)
/* harmony export */ "close": () => (/* binding */ close),
/* harmony export */ "dbCall": () => (/* binding */ dbCall)
/* harmony export */ });
const connectToDB = async url => {
await new Promise(r => setTimeout(r, 1000));
@ -565,8 +560,8 @@ const close = () => {
console.log("closes the DB connection");
};
__webpack_handle_async_dependencies__();
}, 1);
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } }, 1);
/***/ })
]]);
@ -575,7 +570,7 @@ __webpack_handle_async_dependencies__();
## in production mode:
```javascript
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[497],{497:(a,e,s)=>{s.a(a,(async a=>{s.r(e),s.d(e,{createUser:()=>c});var t=s(447),n=a([t]);t=(n.then?await n:n)[0];const c=async a=>{command=`CREATE USER ${a}`,await(0,t.j)({command})}}))},447:(a,e,s)=>{s.a(a,(async a=>{s.d(e,{j:()=>t}),await(async a=>{await new Promise((a=>setTimeout(a,1e3)))})();const t=async a=>(await new Promise((a=>setTimeout(a,100))),"fake data");a()}),1)}}]);
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[497],{497:(a,e,t)=>{t.a(a,(async(a,c)=>{try{t.r(e),t.d(e,{createUser:()=>m});var s=t(447),n=a([s]);s=(n.then?(await n)():n)[0];const m=async a=>{command=`CREATE USER ${a}`,await(0,s.j)({command})};c()}catch(a){c(a)}}))},447:(a,e,t)=>{t.a(a,(async(a,c)=>{try{t.d(e,{j:()=>s});const a=async a=>{await new Promise((a=>setTimeout(a,1e3)))};await a("my-sql://example.com");const s=async a=>(await new Promise((a=>setTimeout(a,100))),"fake data");c()}catch(a){c(a)}}),1)}}]);
```
# Info
@ -583,11 +578,11 @@ __webpack_handle_async_dependencies__();
## Unoptimized
```
asset output.js 15.2 KiB [emitted] (name: main)
asset 497.output.js 2.8 KiB [emitted]
chunk (runtime: main) output.js (main) 1.19 KiB (javascript) 7.7 KiB (runtime) [entry] [rendered]
asset output.js 15 KiB [emitted] (name: main)
asset 497.output.js 2.97 KiB [emitted]
chunk (runtime: main) output.js (main) 1.19 KiB (javascript) 7.57 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 7.7 KiB 9 modules
runtime modules 7.57 KiB 9 modules
dependent modules 1.09 KiB [dependent] 1 module
./example.js 103 bytes [built] [code generated]
[no exports]
@ -602,17 +597,17 @@ chunk (runtime: main) 497.output.js 617 bytes [rendered]
[used exports unknown]
import() ./UserApi.js ./Actions.js 2:16-38
import() ./UserApi.js ./Actions.js 22:30-52
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 2.88 KiB [emitted] [minimized] (name: main)
asset 497.output.js 448 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 1.19 KiB (javascript) 7.7 KiB (runtime) [entry] [rendered]
asset output.js 2.94 KiB [emitted] [minimized] (name: main)
asset 497.output.js 531 bytes [emitted] [minimized]
chunk (runtime: main) output.js (main) 1.19 KiB (javascript) 7.57 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 7.7 KiB 9 modules
runtime modules 7.57 KiB 9 modules
./example.js + 1 modules 1.19 KiB [built] [code generated]
[no exports]
[no exports used]
@ -625,5 +620,5 @@ chunk (runtime: main) 497.output.js 617 bytes [rendered]
[exports: createUser]
import() ./UserApi.js ./example.js + 1 modules ./Actions.js 2:16-38
import() ./UserApi.js ./example.js + 1 modules ./Actions.js 22:30-52
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -314,7 +314,7 @@ chunk (runtime: vendor2) vendor2.js (vendor2) 77 bytes [entry] [rendered]
cjs require ./vendor2 ./pageA.js 3:0-20
cjs self exports reference ./vendor2.js 1:0-14
entry ./vendor2 vendor2
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
@ -360,5 +360,5 @@ chunk (runtime: vendor1) vendor1.js (vendor1) 27 bytes [entry] [rendered]
cjs self exports reference ./vendor1.js 1:0-14
cjs require ./vendor1 ./vendor2.js 2:0-20
entry ./vendor1 vendor1
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -25,9 +25,6 @@ const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
module.exports = (env = "development") => ({
mode: env,
entry: {
output: "./index.ts"
},
module: {
rules: [
{
@ -61,10 +58,14 @@ module.exports = (env = "development") => ({
/*! CommonJS bailout: this is used directly at 1:21-25 */
/***/ (function() {
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
to[j] = from[i];
return to;
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};
var myName = "Junya";
var age = 22;
@ -73,7 +74,7 @@ function getArray() {
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
return __spreadArray([], args);
return __spreadArray([], args, true);
}
console.log(getArray("foo", "bar"));
console.log(getArray(1, 2, 3));
@ -138,25 +139,25 @@ console.log(__webpack_require__(/*! ./index */ 1));
## Unoptimized
```
asset output.js 2.22 KiB [emitted] (name: main)
chunk (runtime: main) output.js (main) 513 bytes [entry] [rendered]
asset output.js 2.4 KiB [emitted] (name: main)
chunk (runtime: main) output.js (main) 696 bytes [entry] [rendered]
> ./example.js main
dependent modules 480 bytes [dependent] 1 module
dependent modules 663 bytes [dependent] 1 module
./example.js 33 bytes [built] [code generated]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 438 bytes [emitted] [minimized] (name: main)
chunk (runtime: main) output.js (main) 513 bytes [entry] [rendered]
asset output.js 553 bytes [emitted] [minimized] (name: main)
chunk (runtime: main) output.js (main) 696 bytes [entry] [rendered]
> ./example.js main
dependent modules 480 bytes [dependent] 1 module
dependent modules 663 bytes [dependent] 1 module
./example.js 33 bytes [built] [code generated]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -2,9 +2,6 @@ const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
module.exports = (env = "development") => ({
mode: env,
entry: {
output: "./index.ts"
},
module: {
rules: [
{

View File

@ -0,0 +1,387 @@
This is a simple example that shows the usage of an ES module packaging around a Rust module, built by wasm-pack.
The ES module can be imported like other async modules with `import` or `import()`.
When importing, the underlying WebAssembly module is downloaded and instantiated in a streaming way.
# example.js
```javascript
import { greeting } from "./pkg";
document.write(greeting('Bob'));
```
# dist/output.js
```javascript
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ([
/* 0 */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! namespace exports */
/*! exports [not provided] [no usage info] */
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, module, __webpack_require__.a, __webpack_require__.* */
/***/ ((module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _pkg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pkg */ 1);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_pkg__WEBPACK_IMPORTED_MODULE_0__]);
_pkg__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? await __webpack_async_dependencies__ : __webpack_async_dependencies__)[0];
document.write((0,_pkg__WEBPACK_IMPORTED_MODULE_0__.greeting)('Bob'));
});
/***/ }),
/* 1 */
/*!***************************!*\
!*** ./pkg/hi_wasm_bg.js ***!
\***************************/
/*! namespace exports */
/*! export greeting [provided] [no usage info] [missing usage info prevents renaming] */
/*! other exports [not provided] [no usage info] */
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, module, __webpack_require__.a, __webpack_require__.d, __webpack_require__.* */
/***/ ((__webpack_module__, __webpack_exports__, __webpack_require__) => {
__webpack_require__.a(__webpack_module__, async (__webpack_handle_async_dependencies__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "greeting": () => (/* binding */ greeting)
/* harmony export */ });
/* harmony import */ var _hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hi_wasm_bg.wasm */ 2);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__]);
_hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? await __webpack_async_dependencies__ : __webpack_async_dependencies__)[0];
let WASM_VECTOR_LEN = 0;
let cachegetUint8Memory0 = null;
function getUint8Memory0() {
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== _hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.memory.buffer) {
cachegetUint8Memory0 = new Uint8Array(_hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.memory.buffer);
}
return cachegetUint8Memory0;
}
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
let cachedTextEncoder = new lTextEncoder('utf-8');
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
? function (arg, view) {
return cachedTextEncoder.encodeInto(arg, view);
}
: function (arg, view) {
const buf = cachedTextEncoder.encode(arg);
view.set(buf);
return {
read: arg.length,
written: buf.length
};
});
function passStringToWasm0(arg, malloc, realloc) {
if (realloc === undefined) {
const buf = cachedTextEncoder.encode(arg);
const ptr = malloc(buf.length);
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
WASM_VECTOR_LEN = buf.length;
return ptr;
}
let len = arg.length;
let ptr = malloc(len);
const mem = getUint8Memory0();
let offset = 0;
for (; offset < len; offset++) {
const code = arg.charCodeAt(offset);
if (code > 0x7F) break;
mem[ptr + offset] = code;
}
if (offset !== len) {
if (offset !== 0) {
arg = arg.slice(offset);
}
ptr = realloc(ptr, len, len = offset + arg.length * 3);
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
const ret = encodeString(arg, view);
offset += ret.written;
}
WASM_VECTOR_LEN = offset;
return ptr;
}
let cachegetInt32Memory0 = null;
function getInt32Memory0() {
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== _hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.memory.buffer) {
cachegetInt32Memory0 = new Int32Array(_hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.memory.buffer);
}
return cachegetInt32Memory0;
}
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
function getStringFromWasm0(ptr, len) {
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
/**
* @param {string} name
* @returns {string}
*/
function greeting(name) {
try {
const retptr = _hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(name, _hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_malloc, _hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
_hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.greeting(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
_hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_add_to_stack_pointer(16);
_hi_wasm_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_free(r0, r1);
}
}
});
/***/ }),
/* 2 */
/*!*****************************!*\
!*** ./pkg/hi_wasm_bg.wasm ***!
\*****************************/
/*! namespace exports */
/*! export __wbindgen_add_to_stack_pointer [provided] [no usage info] [provision prevents renaming (no use info)] */
/*! export __wbindgen_free [provided] [no usage info] [provision prevents renaming (no use info)] */
/*! export __wbindgen_malloc [provided] [no usage info] [provision prevents renaming (no use info)] */
/*! export __wbindgen_realloc [provided] [no usage info] [provision prevents renaming (no use info)] */
/*! export greeting [provided] [no usage info] [provision prevents renaming (no use info)] */
/*! export memory [provided] [no usage info] [provision prevents renaming (no use info)] */
/*! other exports [not provided] [no usage info] */
/*! runtime requirements: module, module.id, __webpack_exports__, __webpack_require__.v, __webpack_require__.* */
/***/ ((module, exports, __webpack_require__) => {
module.exports = __webpack_require__.v(exports, module.id, "ffe21e855d11d22ab54f");
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ id: moduleId,
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/async module */
/******/ (() => {
/******/ var webpackThen = typeof Symbol === "function" ? Symbol("webpack then") : "__webpack_then__";
/******/ var webpackExports = typeof Symbol === "function" ? Symbol("webpack exports") : "__webpack_exports__";
/******/ var completeQueue = (queue) => {
/******/ if(queue) {
/******/ queue.forEach((fn) => (fn.r--));
/******/ queue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));
/******/ }
/******/ }
/******/ var completeFunction = (fn) => (!--fn.r && fn());
/******/ var queueFunction = (queue, fn) => (queue ? queue.push(fn) : completeFunction(fn));
/******/ var wrapDeps = (deps) => (deps.map((dep) => {
/******/ if(dep !== null && typeof dep === "object") {
/******/ if(dep[webpackThen]) return dep;
/******/ if(dep.then) {
/******/ var queue = [];
/******/ dep.then((r) => {
/******/ obj[webpackExports] = r;
/******/ completeQueue(queue);
/******/ queue = 0;
/******/ });
/******/ var obj = {};
/******/ obj[webpackThen] = (fn, reject) => (queueFunction(queue, fn), dep.catch(reject));
/******/ return obj;
/******/ }
/******/ }
/******/ var ret = {};
/******/ ret[webpackThen] = (fn) => (completeFunction(fn));
/******/ ret[webpackExports] = dep;
/******/ return ret;
/******/ }));
/******/ __webpack_require__.a = (module, body, hasAwait) => {
/******/ var queue = hasAwait && [];
/******/ var exports = module.exports;
/******/ var currentDeps;
/******/ var outerResolve;
/******/ var reject;
/******/ var isEvaluating = true;
/******/ var nested = false;
/******/ var whenAll = (deps, onResolve, onReject) => {
/******/ if (nested) return;
/******/ nested = true;
/******/ onResolve.r += deps.length;
/******/ deps.map((dep, i) => (dep[webpackThen](onResolve, onReject)));
/******/ nested = false;
/******/ };
/******/ var promise = new Promise((resolve, rej) => {
/******/ reject = rej;
/******/ outerResolve = () => (resolve(exports), completeQueue(queue), queue = 0);
/******/ });
/******/ promise[webpackExports] = exports;
/******/ promise[webpackThen] = (fn, rejectFn) => {
/******/ if (isEvaluating) { return completeFunction(fn); }
/******/ if (currentDeps) whenAll(currentDeps, fn, rejectFn);
/******/ queueFunction(queue, fn);
/******/ promise.catch(rejectFn);
/******/ };
/******/ module.exports = promise;
/******/ body((deps) => {
/******/ if(!deps) return outerResolve();
/******/ currentDeps = wrapDeps(deps);
/******/ var fn, result;
/******/ var promise = new Promise((resolve, reject) => {
/******/ fn = () => (resolve(result = currentDeps.map((d) => (d[webpackExports]))));
/******/ fn.r = 0;
/******/ whenAll(currentDeps, fn, reject);
/******/ });
/******/ return fn.r ? promise : result;
/******/ }).then(outerResolve, reject);
/******/ isEvaluating = false;
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ })();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ (() => {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/wasm loading */
/******/ (() => {
/******/ __webpack_require__.v = (exports, wasmModuleId, wasmModuleHash, importsObj) => {
/******/ var req = fetch(__webpack_require__.p + "" + wasmModuleHash + ".wasm");
/******/ if (typeof WebAssembly.instantiateStreaming === 'function') {
/******/ return WebAssembly.instantiateStreaming(req, importsObj)
/******/ .then((res) => (Object.assign(exports, res.instance.exports)));
/******/ }
/******/ return req
/******/ .then((x) => (x.arrayBuffer()))
/******/ .then((bytes) => (WebAssembly.instantiate(bytes, importsObj)))
/******/ .then((res) => (Object.assign(exports, res.instance.exports)));
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/publicPath */
/******/ (() => {
/******/ __webpack_require__.p = "dist/";
/******/ })();
/******/
/************************************************************************/
```
</details>
``` js
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module used 'module' so it can't be inlined
/******/ var __webpack_exports__ = __webpack_require__(0);
/******/
/******/ })()
;
```
# Info
## Unoptimized
```
asset ffe21e855d11d22ab54f.wasm 14.8 KiB [emitted] [immutable] (auxiliary name: main)
asset output.js 12.8 KiB [emitted] (name: main)
chunk (runtime: main) output.js (main) 3.03 KiB (javascript) 14.8 KiB (webassembly) 3.35 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 3.35 KiB 6 modules
dependent modules 2.97 KiB (javascript) 14.8 KiB (webassembly) [dependent] 2 modules
./example.js 69 bytes [built] [code generated]
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.53.0 compiled successfully
```
## Production mode
```
asset f7199313c1125f249cd6.wasm 14.8 KiB [emitted] [immutable] (auxiliary name: main)
asset output.js 2.96 KiB [emitted] [minimized] (name: main)
chunk (runtime: main) output.js (main) 3.03 KiB (javascript) 14.8 KiB (webassembly) 3.08 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 3.08 KiB 5 modules
dependent modules 2.97 KiB (javascript) 14.8 KiB (webassembly) [dependent] 2 modules
./example.js 69 bytes [built] [code generated]
[no exports]
[no exports used]
entry ./example.js main
webpack 5.53.0 compiled successfully
```

View File

@ -0,0 +1 @@
require("../build-common");

View File

@ -0,0 +1,4 @@
import { greeting } from "./pkg";
document.write(greeting('Bob'));

View File

@ -0,0 +1,5 @@
<html>
<body>
<script src="dist/output.js"></script>
</body>
</html>

View File

@ -0,0 +1,7 @@
/* tslint:disable */
/* eslint-disable */
/**
* @param {string} name
* @returns {string}
*/
export function greeting(name: string): string;

View File

@ -0,0 +1,2 @@
import * as wasm from "./hi_wasm_bg.wasm";
export * from "./hi_wasm_bg.js";

View File

@ -0,0 +1,103 @@
import * as wasm from './hi_wasm_bg.wasm';
let WASM_VECTOR_LEN = 0;
let cachegetUint8Memory0 = null;
function getUint8Memory0() {
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
}
return cachegetUint8Memory0;
}
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
let cachedTextEncoder = new lTextEncoder('utf-8');
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
? function (arg, view) {
return cachedTextEncoder.encodeInto(arg, view);
}
: function (arg, view) {
const buf = cachedTextEncoder.encode(arg);
view.set(buf);
return {
read: arg.length,
written: buf.length
};
});
function passStringToWasm0(arg, malloc, realloc) {
if (realloc === undefined) {
const buf = cachedTextEncoder.encode(arg);
const ptr = malloc(buf.length);
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
WASM_VECTOR_LEN = buf.length;
return ptr;
}
let len = arg.length;
let ptr = malloc(len);
const mem = getUint8Memory0();
let offset = 0;
for (; offset < len; offset++) {
const code = arg.charCodeAt(offset);
if (code > 0x7F) break;
mem[ptr + offset] = code;
}
if (offset !== len) {
if (offset !== 0) {
arg = arg.slice(offset);
}
ptr = realloc(ptr, len, len = offset + arg.length * 3);
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
const ret = encodeString(arg, view);
offset += ret.written;
}
WASM_VECTOR_LEN = offset;
return ptr;
}
let cachegetInt32Memory0 = null;
function getInt32Memory0() {
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
}
return cachegetInt32Memory0;
}
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
function getStringFromWasm0(ptr, len) {
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
/**
* @param {string} name
* @returns {string}
*/
export function greeting(name) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.greeting(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(r0, r1);
}
}

Binary file not shown.

View File

@ -0,0 +1,8 @@
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function greeting(a: number, b: number, c: number): void;
export function __wbindgen_add_to_stack_pointer(a: number): number;
export function __wbindgen_malloc(a: number): number;
export function __wbindgen_realloc(a: number, b: number, c: number): number;
export function __wbindgen_free(a: number, b: number): void;

View File

@ -0,0 +1,14 @@
{
"name": "hi-wasm",
"type": "module",
"version": "0.1.0",
"files": [
"hi_wasm_bg.wasm",
"hi_wasm.js",
"hi_wasm_bg.js",
"hi_wasm.d.ts"
],
"main": "hi_wasm.js",
"types": "hi_wasm.d.ts",
"sideEffects": false
}

View File

@ -0,0 +1,30 @@
This is a simple example that shows the usage of an ES module packaging around a Rust module, built by wasm-pack.
The ES module can be imported like other async modules with `import` or `import()`.
When importing, the underlying WebAssembly module is downloaded and instantiated in a streaming way.
# example.js
```javascript
_{{example.js}}_
```
# dist/output.js
```javascript
_{{dist/output.js}}_
```
# Info
## Unoptimized
```
_{{stdout}}_
```
## Production mode
```
_{{production:stdout}}_
```

View File

@ -0,0 +1,5 @@
var supportsWebAssembly = require("../../test/helpers/supportsWebAssembly");
module.exports = function(config) {
return supportsWebAssembly();
};

View File

@ -0,0 +1,21 @@
module.exports = {
// mode: "development || "production",
output: {
webassemblyModuleFilename: "[hash].wasm",
publicPath: "dist/"
},
module: {
rules: [
{
test: /\.wasm$/,
type: "webassembly/async"
}
]
},
optimization: {
chunkIds: "deterministic" // To keep filename consistent between different modes (for example building only)
},
experiments: {
asyncWebAssembly: true
}
};

View File

@ -82,11 +82,11 @@ export const memory = await getMemoryFromParentInWorker();
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, module, __webpack_require__.a, __webpack_require__.* */
/***/ ((module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _magic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./magic.js */ 1);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_magic_js__WEBPACK_IMPORTED_MODULE_0__]);
_magic_js__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? await __webpack_async_dependencies__ : __webpack_async_dependencies__)[0];
_magic_js__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
// accessing memory
@ -101,7 +101,8 @@ console.log((0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.getNumber)());
console.log((0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.getNumber)());
console.log((0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.getNumber)());
});
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });
/***/ }),
/* 1 */
@ -116,7 +117,7 @@ console.log((0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.getNumber)());
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.r, module, __webpack_require__.a, __webpack_require__.* */
/***/ ((module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "get": () => (/* reexport safe */ _magic_wat__WEBPACK_IMPORTED_MODULE_0__.get),
@ -125,11 +126,12 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ });
/* harmony import */ var _magic_wat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./magic.wat */ 2);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_magic_wat__WEBPACK_IMPORTED_MODULE_0__]);
_magic_wat__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? await __webpack_async_dependencies__ : __webpack_async_dependencies__)[0];
_magic_wat__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
// reexporting
});
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });
/***/ }),
/* 2 */
@ -154,11 +156,22 @@ var __webpack_instantiate__ = ([WEBPACK_IMPORTED_MODULE_0]) => {
}
});
}
__webpack_require__.a(module, (__webpack_handle_async_dependencies__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => {
try {
/* harmony import */ var WEBPACK_IMPORTED_MODULE_0 = __webpack_require__(/*! ./memory.js */ 3);
/* harmony import */ var WEBPACK_IMPORTED_MODULE_1 = __webpack_require__(/*! ./magic-number.js */ 4);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([WEBPACK_IMPORTED_MODULE_0]);
return __webpack_async_dependencies__.then ? __webpack_async_dependencies__.then(__webpack_instantiate__) : __webpack_instantiate__(__webpack_async_dependencies__);
var [WEBPACK_IMPORTED_MODULE_0] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__;
await __webpack_require__.v(exports, module.id, "daa529a2a650ee3943a9", {
"./memory.js": {
"memory": WEBPACK_IMPORTED_MODULE_0.memory
},
"./magic-number.js": {
"getRandomNumber": WEBPACK_IMPORTED_MODULE_1.getRandomNumber
}
});
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); }
}, 1);
/***/ }),
@ -172,7 +185,7 @@ __webpack_require__.a(module, (__webpack_handle_async_dependencies__) => {
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, module, __webpack_require__.a, __webpack_require__.d, __webpack_require__.* */
/***/ ((module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "memory": () => (/* binding */ memory)
@ -185,8 +198,8 @@ async function getMemoryFromParentInWorker() {
const memory = await getMemoryFromParentInWorker();
__webpack_handle_async_dependencies__();
}, 1);
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } }, 1);
/***/ }),
/* 4 */
@ -249,75 +262,70 @@ function getRandomNumber() {
/************************************************************************/
/******/ /* webpack/runtime/async module */
/******/ (() => {
/******/ var webpackThen = typeof Symbol === "function" ? Symbol("webpack then") : "__webpack_then__";
/******/ var webpackQueues = typeof Symbol === "function" ? Symbol("webpack queues") : "__webpack_queues__";
/******/ var webpackExports = typeof Symbol === "function" ? Symbol("webpack exports") : "__webpack_exports__";
/******/ var completeQueue = (queue) => {
/******/ if(queue) {
/******/ var webpackError = typeof Symbol === "function" ? Symbol("webpack error") : "__webpack_error__";
/******/ var resolveQueue = (queue) => {
/******/ if(queue && !queue.d) {
/******/ queue.d = 1;
/******/ queue.forEach((fn) => (fn.r--));
/******/ queue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));
/******/ }
/******/ }
/******/ var completeFunction = (fn) => (!--fn.r && fn());
/******/ var queueFunction = (queue, fn) => (queue ? queue.push(fn) : completeFunction(fn));
/******/ var wrapDeps = (deps) => (deps.map((dep) => {
/******/ if(dep !== null && typeof dep === "object") {
/******/ if(dep[webpackThen]) return dep;
/******/ if(dep[webpackQueues]) return dep;
/******/ if(dep.then) {
/******/ var queue = [];
/******/ queue.d = 0;
/******/ dep.then((r) => {
/******/ obj[webpackExports] = r;
/******/ completeQueue(queue);
/******/ queue = 0;
/******/ resolveQueue(queue);
/******/ }, (e) => {
/******/ obj[webpackError] = e;
/******/ resolveQueue(queue);
/******/ });
/******/ var obj = {};
/******/ obj[webpackThen] = (fn, reject) => (queueFunction(queue, fn), dep.catch(reject));
/******/ obj[webpackQueues] = (fn) => (fn(queue));
/******/ return obj;
/******/ }
/******/ }
/******/ var ret = {};
/******/ ret[webpackThen] = (fn) => (completeFunction(fn));
/******/ ret[webpackExports] = dep;
/******/ return ret;
/******/ ret[webpackQueues] = x => {};
/******/ ret[webpackExports] = dep;
/******/ return ret;
/******/ }));
/******/ __webpack_require__.a = (module, body, hasAwait) => {
/******/ var queue = hasAwait && [];
/******/ var queue;
/******/ hasAwait && ((queue = []).d = 1);
/******/ var depQueues = new Set();
/******/ var exports = module.exports;
/******/ var currentDeps;
/******/ var outerResolve;
/******/ var reject;
/******/ var isEvaluating = true;
/******/ var nested = false;
/******/ var whenAll = (deps, onResolve, onReject) => {
/******/ if (nested) return;
/******/ nested = true;
/******/ onResolve.r += deps.length;
/******/ deps.map((dep, i) => (dep[webpackThen](onResolve, onReject)));
/******/ nested = false;
/******/ };
/******/ var promise = new Promise((resolve, rej) => {
/******/ reject = rej;
/******/ outerResolve = () => (resolve(exports), completeQueue(queue), queue = 0);
/******/ outerResolve = resolve;
/******/ });
/******/ promise[webpackExports] = exports;
/******/ promise[webpackThen] = (fn, rejectFn) => {
/******/ if (isEvaluating) { return completeFunction(fn); }
/******/ if (currentDeps) whenAll(currentDeps, fn, rejectFn);
/******/ queueFunction(queue, fn);
/******/ promise.catch(rejectFn);
/******/ };
/******/ promise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise["catch"](x => {}));
/******/ module.exports = promise;
/******/ body((deps) => {
/******/ if(!deps) return outerResolve();
/******/ currentDeps = wrapDeps(deps);
/******/ var fn, result;
/******/ var promise = new Promise((resolve, reject) => {
/******/ fn = () => (resolve(result = currentDeps.map((d) => (d[webpackExports]))));
/******/ var fn;
/******/ var getResult = () => (currentDeps.map((d) => {
/******/ if(d[webpackError]) throw d[webpackError];
/******/ return d[webpackExports];
/******/ }))
/******/ var promise = new Promise((resolve) => {
/******/ fn = () => (resolve(getResult));
/******/ fn.r = 0;
/******/ whenAll(currentDeps, fn, reject);
/******/ var fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));
/******/ currentDeps.map((dep) => (dep[webpackQueues](fnQueue)));
/******/ });
/******/ return fn.r ? promise : result;
/******/ }).then(outerResolve, reject);
/******/ isEvaluating = false;
/******/ return fn.r ? promise : getResult();
/******/ }, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue)));
/******/ queue && (queue.d = 0);
/******/ };
/******/ })();
/******/
@ -390,31 +398,31 @@ function getRandomNumber() {
## Unoptimized
```
asset output.js 12.8 KiB [emitted] (name: main)
asset output.js 13.2 KiB [emitted] (name: main)
asset daa529a2a650ee3943a9.module.wasm 139 bytes [emitted] [immutable] (auxiliary name: main)
chunk (runtime: main) output.js (main) 696 bytes (javascript) 139 bytes (webassembly) 3.36 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 696 bytes (javascript) 139 bytes (webassembly) 3.24 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 3.36 KiB 6 modules
runtime modules 3.24 KiB 6 modules
dependent modules 449 bytes (javascript) 139 bytes (webassembly) [dependent] 4 modules
./example.js 247 bytes [built] [code generated]
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 2.34 KiB [emitted] [minimized] (name: main)
asset output.js 2.49 KiB [emitted] [minimized] (name: main)
asset 05aa07f6a3836ded50d1.module.wasm 139 bytes [emitted] [immutable] (auxiliary name: main)
chunk (runtime: main) output.js (main) 696 bytes (javascript) 139 bytes (webassembly) 3.09 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 696 bytes (javascript) 139 bytes (webassembly) 2.97 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 3.09 KiB 5 modules
runtime modules 2.97 KiB 5 modules
dependent modules 449 bytes (javascript) 139 bytes (webassembly) [dependent] 4 modules
./example.js 247 bytes [built] [code generated]
[no exports]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -71,12 +71,12 @@ export function fibonacciJavascript(i) {
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, module, __webpack_require__.a, __webpack_require__.* */
/***/ ((module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _add_wasm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add.wasm */ 1);
/* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math */ 2);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_math__WEBPACK_IMPORTED_MODULE_1__, _add_wasm__WEBPACK_IMPORTED_MODULE_0__]);
([_math__WEBPACK_IMPORTED_MODULE_1__, _add_wasm__WEBPACK_IMPORTED_MODULE_0__] = __webpack_async_dependencies__.then ? await __webpack_async_dependencies__ : __webpack_async_dependencies__);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_add_wasm__WEBPACK_IMPORTED_MODULE_0__, _math__WEBPACK_IMPORTED_MODULE_1__]);
([_add_wasm__WEBPACK_IMPORTED_MODULE_0__, _math__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
@ -100,7 +100,8 @@ function timed(name, fn) {
console.timeEnd(name);
}
});
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });
/***/ }),
/* 1 */
@ -130,20 +131,20 @@ module.exports = __webpack_require__.v(exports, module.id, "0eaeab8b9fa3cef100d1
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.r, module, __webpack_require__.a, __webpack_require__.* */
/***/ ((module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__) => {
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "add": () => (/* reexport safe */ _add_wasm__WEBPACK_IMPORTED_MODULE_0__.add),
/* harmony export */ "factorial": () => (/* reexport safe */ _factorial_wasm__WEBPACK_IMPORTED_MODULE_1__.factorial),
/* harmony export */ "fibonacci": () => (/* reexport safe */ _fibonacci_wasm__WEBPACK_IMPORTED_MODULE_2__.fibonacci),
/* harmony export */ "factorialJavascript": () => (/* binding */ factorialJavascript),
/* harmony export */ "fibonacci": () => (/* reexport safe */ _fibonacci_wasm__WEBPACK_IMPORTED_MODULE_2__.fibonacci),
/* harmony export */ "fibonacciJavascript": () => (/* binding */ fibonacciJavascript)
/* harmony export */ });
/* harmony import */ var _add_wasm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add.wasm */ 1);
/* harmony import */ var _factorial_wasm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./factorial.wasm */ 3);
/* harmony import */ var _fibonacci_wasm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fibonacci.wasm */ 4);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_fibonacci_wasm__WEBPACK_IMPORTED_MODULE_2__, _factorial_wasm__WEBPACK_IMPORTED_MODULE_1__, _add_wasm__WEBPACK_IMPORTED_MODULE_0__]);
([_fibonacci_wasm__WEBPACK_IMPORTED_MODULE_2__, _factorial_wasm__WEBPACK_IMPORTED_MODULE_1__, _add_wasm__WEBPACK_IMPORTED_MODULE_0__] = __webpack_async_dependencies__.then ? await __webpack_async_dependencies__ : __webpack_async_dependencies__);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_add_wasm__WEBPACK_IMPORTED_MODULE_0__, _factorial_wasm__WEBPACK_IMPORTED_MODULE_1__, _fibonacci_wasm__WEBPACK_IMPORTED_MODULE_2__]);
([_add_wasm__WEBPACK_IMPORTED_MODULE_0__, _factorial_wasm__WEBPACK_IMPORTED_MODULE_1__, _fibonacci_wasm__WEBPACK_IMPORTED_MODULE_2__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
@ -160,7 +161,8 @@ function fibonacciJavascript(i) {
return fibonacciJavascript(i - 1) + fibonacciJavascript(i - 2);
}
});
__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });
/***/ }),
/* 3 */
@ -223,75 +225,70 @@ module.exports = __webpack_require__.v(exports, module.id, "5a6637e8d63cdf9c72da
/************************************************************************/
/******/ /* webpack/runtime/async module */
/******/ (() => {
/******/ var webpackThen = typeof Symbol === "function" ? Symbol("webpack then") : "__webpack_then__";
/******/ var webpackQueues = typeof Symbol === "function" ? Symbol("webpack queues") : "__webpack_queues__";
/******/ var webpackExports = typeof Symbol === "function" ? Symbol("webpack exports") : "__webpack_exports__";
/******/ var completeQueue = (queue) => {
/******/ if(queue) {
/******/ var webpackError = typeof Symbol === "function" ? Symbol("webpack error") : "__webpack_error__";
/******/ var resolveQueue = (queue) => {
/******/ if(queue && !queue.d) {
/******/ queue.d = 1;
/******/ queue.forEach((fn) => (fn.r--));
/******/ queue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));
/******/ }
/******/ }
/******/ var completeFunction = (fn) => (!--fn.r && fn());
/******/ var queueFunction = (queue, fn) => (queue ? queue.push(fn) : completeFunction(fn));
/******/ var wrapDeps = (deps) => (deps.map((dep) => {
/******/ if(dep !== null && typeof dep === "object") {
/******/ if(dep[webpackThen]) return dep;
/******/ if(dep[webpackQueues]) return dep;
/******/ if(dep.then) {
/******/ var queue = [];
/******/ queue.d = 0;
/******/ dep.then((r) => {
/******/ obj[webpackExports] = r;
/******/ completeQueue(queue);
/******/ queue = 0;
/******/ resolveQueue(queue);
/******/ }, (e) => {
/******/ obj[webpackError] = e;
/******/ resolveQueue(queue);
/******/ });
/******/ var obj = {};
/******/ obj[webpackThen] = (fn, reject) => (queueFunction(queue, fn), dep.catch(reject));
/******/ obj[webpackQueues] = (fn) => (fn(queue));
/******/ return obj;
/******/ }
/******/ }
/******/ var ret = {};
/******/ ret[webpackThen] = (fn) => (completeFunction(fn));
/******/ ret[webpackExports] = dep;
/******/ return ret;
/******/ ret[webpackQueues] = x => {};
/******/ ret[webpackExports] = dep;
/******/ return ret;
/******/ }));
/******/ __webpack_require__.a = (module, body, hasAwait) => {
/******/ var queue = hasAwait && [];
/******/ var queue;
/******/ hasAwait && ((queue = []).d = 1);
/******/ var depQueues = new Set();
/******/ var exports = module.exports;
/******/ var currentDeps;
/******/ var outerResolve;
/******/ var reject;
/******/ var isEvaluating = true;
/******/ var nested = false;
/******/ var whenAll = (deps, onResolve, onReject) => {
/******/ if (nested) return;
/******/ nested = true;
/******/ onResolve.r += deps.length;
/******/ deps.map((dep, i) => (dep[webpackThen](onResolve, onReject)));
/******/ nested = false;
/******/ };
/******/ var promise = new Promise((resolve, rej) => {
/******/ reject = rej;
/******/ outerResolve = () => (resolve(exports), completeQueue(queue), queue = 0);
/******/ outerResolve = resolve;
/******/ });
/******/ promise[webpackExports] = exports;
/******/ promise[webpackThen] = (fn, rejectFn) => {
/******/ if (isEvaluating) { return completeFunction(fn); }
/******/ if (currentDeps) whenAll(currentDeps, fn, rejectFn);
/******/ queueFunction(queue, fn);
/******/ promise.catch(rejectFn);
/******/ };
/******/ promise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise["catch"](x => {}));
/******/ module.exports = promise;
/******/ body((deps) => {
/******/ if(!deps) return outerResolve();
/******/ currentDeps = wrapDeps(deps);
/******/ var fn, result;
/******/ var promise = new Promise((resolve, reject) => {
/******/ fn = () => (resolve(result = currentDeps.map((d) => (d[webpackExports]))));
/******/ var fn;
/******/ var getResult = () => (currentDeps.map((d) => {
/******/ if(d[webpackError]) throw d[webpackError];
/******/ return d[webpackExports];
/******/ }))
/******/ var promise = new Promise((resolve) => {
/******/ fn = () => (resolve(getResult));
/******/ fn.r = 0;
/******/ whenAll(currentDeps, fn, reject);
/******/ var fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));
/******/ currentDeps.map((dep) => (dep[webpackQueues](fnQueue)));
/******/ });
/******/ return fn.r ? promise : result;
/******/ }).then(outerResolve, reject);
/******/ isEvaluating = false;
/******/ return fn.r ? promise : getResult();
/******/ }, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue)));
/******/ queue && (queue.d = 0);
/******/ };
/******/ })();
/******/
@ -368,31 +365,31 @@ asset output.js 12.6 KiB [emitted] (name: main)
asset 5a6637e8d63cdf9c72da.wasm 67 bytes [emitted] [immutable] (auxiliary name: main)
asset 35a58b7c95860d720a3c.wasm 62 bytes [emitted] [immutable] (auxiliary name: main)
asset 0eaeab8b9fa3cef100d1.wasm 41 bytes [emitted] [immutable] (auxiliary name: main)
chunk (runtime: main) output.js (main) 1.27 KiB (javascript) 170 bytes (webassembly) 3.35 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 1.27 KiB (javascript) 170 bytes (webassembly) 3.23 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 3.35 KiB 6 modules
runtime modules 3.23 KiB 6 modules
dependent modules 552 bytes (javascript) 170 bytes (webassembly) [dependent] 4 modules
./example.js 753 bytes [built] [code generated]
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset output.js 2.44 KiB [emitted] [minimized] (name: main)
asset output.js 2.57 KiB [emitted] [minimized] (name: main)
asset 67aca7a09456080b5120.wasm 67 bytes [emitted] [immutable] (auxiliary name: main)
asset 36825f9224dde8d88de0.wasm 62 bytes [emitted] [immutable] (auxiliary name: main)
asset 10cff76bc58b7aa8f9cb.wasm 41 bytes [emitted] [immutable] (auxiliary name: main)
chunk (runtime: main) output.js (main) 1.27 KiB (javascript) 170 bytes (webassembly) 3.08 KiB (runtime) [entry] [rendered]
chunk (runtime: main) output.js (main) 1.27 KiB (javascript) 170 bytes (webassembly) 2.96 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 3.08 KiB 5 modules
runtime modules 2.96 KiB 5 modules
dependent modules 552 bytes (javascript) 170 bytes (webassembly) [dependent] 4 modules
./example.js 753 bytes [built] [code generated]
[no exports]
[no exports used]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

View File

@ -272,7 +272,6 @@ export const add = (content, from) => {
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
/******/ if(prev) return prev(event);
/******/ }
/******/ ;
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
@ -376,7 +375,7 @@ export const add = (content, from) => {
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ installedChunks[chunkId][0]();
/******/ }
/******/ installedChunks[chunkIds[i]] = 0;
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/
/******/ }
@ -759,9 +758,9 @@ chunk (runtime: 9a81d90cfd0dfd13d748, main) 129.js 103 bytes [rendered]
[exports: fibonacci]
import() ./fibonacci ./example.js 70:30-51
import() ./fibonacci ./fib-worker.js 2:29-50
chunk (runtime: main) main.js (main) 2.25 KiB (javascript) 5.72 KiB (runtime) [entry] [rendered]
chunk (runtime: main) main.js (main) 2.25 KiB (javascript) 5.71 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 5.72 KiB 8 modules
runtime modules 5.71 KiB 8 modules
./example.js 2.25 KiB [built] [code generated]
[no exports used]
entry ./example.js main
@ -777,13 +776,13 @@ chunk (runtime: 9a81d90cfd0dfd13d748) workers/fibonacci.js (fibonacci) 176 bytes
./fib-worker.js 176 bytes [built] [code generated]
[no exports used]
new Worker() ./fib-worker.js ./example.js 80:18-84:2
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
## Production mode
```
asset main.js 3.47 KiB [emitted] [minimized] (name: main)
asset main.js 3.46 KiB [emitted] [minimized] (name: main)
asset workers/fibonacci.js 945 bytes [emitted] [minimized] (name: fibonacci)
asset chat.js 270 bytes [emitted] [minimized] (name: chat)
asset 129.js 166 bytes [emitted] [minimized]
@ -794,9 +793,9 @@ chunk (runtime: 9a81d90cfd0dfd13d748, main) 129.js 103 bytes [rendered]
[exports: fibonacci]
import() ./fibonacci ./example.js 70:30-51
import() ./fibonacci ./fib-worker.js 2:29-50
chunk (runtime: main) main.js (main) 2.25 KiB (javascript) 5.72 KiB (runtime) [entry] [rendered]
chunk (runtime: main) main.js (main) 2.25 KiB (javascript) 5.71 KiB (runtime) [entry] [rendered]
> ./example.js main
runtime modules 5.72 KiB 8 modules
runtime modules 5.71 KiB 8 modules
./example.js 2.25 KiB [built] [code generated]
[no exports used]
entry ./example.js main
@ -812,5 +811,5 @@ chunk (runtime: 9a81d90cfd0dfd13d748) workers/fibonacci.js (fibonacci) 176 bytes
./fib-worker.js 176 bytes [built] [code generated]
[no exports used]
new Worker() ./fib-worker.js ./example.js 80:18-84:2
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

Some files were not shown because too many files have changed in this diff Show More