diff --git a/.gitignore b/.gitignore index 1fcd67c7805..39a728bc700 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ build/Release/ # Dependency directories node_modules/ +**/.storybook/node_modules jspm_packages/ # TypeScript cache diff --git a/build-tests-samples/heft-webpack-basic-tutorial/package.json b/build-tests-samples/heft-webpack-basic-tutorial/package.json index b595f51f9b5..e06a7bc0d5c 100644 --- a/build-tests-samples/heft-webpack-basic-tutorial/package.json +++ b/build-tests-samples/heft-webpack-basic-tutorial/package.json @@ -31,6 +31,6 @@ "source-map-loader": "~3.0.1", "style-loader": "~3.3.1", "typescript": "~5.4.2", - "webpack": "~5.82.1" + "webpack": "~5.95.0" } } diff --git a/build-tests/hashed-folder-copy-plugin-webpack5-test/package.json b/build-tests/hashed-folder-copy-plugin-webpack5-test/package.json index 44e5833d34f..9bb62485859 100644 --- a/build-tests/hashed-folder-copy-plugin-webpack5-test/package.json +++ b/build-tests/hashed-folder-copy-plugin-webpack5-test/package.json @@ -18,6 +18,6 @@ "html-webpack-plugin": "~5.5.0", "typescript": "~5.4.2", "webpack-bundle-analyzer": "~4.5.0", - "webpack": "~5.82.1" + "webpack": "~5.95.0" } } diff --git a/build-tests/heft-webpack5-everything-test/package.json b/build-tests/heft-webpack5-everything-test/package.json index 356cf990e3c..fd6a55e1569 100644 --- a/build-tests/heft-webpack5-everything-test/package.json +++ b/build-tests/heft-webpack5-everything-test/package.json @@ -30,7 +30,7 @@ "source-map-loader": "~3.0.1", "tslint": "~5.20.1", "typescript": "~5.4.2", - "webpack": "~5.82.1", + "webpack": "~5.95.0", "@types/node": "18.17.15" } } diff --git a/build-tests/set-webpack-public-path-plugin-test/package.json b/build-tests/set-webpack-public-path-plugin-test/package.json index 53203699a00..206d9e4352a 100644 --- a/build-tests/set-webpack-public-path-plugin-test/package.json +++ b/build-tests/set-webpack-public-path-plugin-test/package.json @@ -20,6 +20,6 @@ "eslint": "~8.57.0", "html-webpack-plugin": "~5.5.0", "typescript": "~5.4.2", - "webpack": "~5.82.1" + "webpack": "~5.95.0" } } diff --git a/common/changes/@microsoft/rush/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@microsoft/rush/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..e34bdfe4772 --- /dev/null +++ b/common/changes/@microsoft/rush/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "", + "type": "none", + "packageName": "@microsoft/rush" + } + ], + "packageName": "@microsoft/rush", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@microsoft/webpack5-load-themed-styles-loader/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@microsoft/webpack5-load-themed-styles-loader/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..12d11d13dc9 --- /dev/null +++ b/common/changes/@microsoft/webpack5-load-themed-styles-loader/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "", + "type": "none", + "packageName": "@microsoft/webpack5-load-themed-styles-loader" + } + ], + "packageName": "@microsoft/webpack5-load-themed-styles-loader", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/hashed-folder-copy-plugin/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/hashed-folder-copy-plugin/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..034387de584 --- /dev/null +++ b/common/changes/@rushstack/hashed-folder-copy-plugin/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Ensure compatibility with webpack 5.95.0", + "type": "patch", + "packageName": "@rushstack/hashed-folder-copy-plugin" + } + ], + "packageName": "@rushstack/hashed-folder-copy-plugin", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-dev-cert-plugin/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/heft-dev-cert-plugin/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..63b1ce4ab1a --- /dev/null +++ b/common/changes/@rushstack/heft-dev-cert-plugin/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "", + "type": "none", + "packageName": "@rushstack/heft-dev-cert-plugin" + } + ], + "packageName": "@rushstack/heft-dev-cert-plugin", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-web-rig/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/heft-web-rig/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..d5aa2b025c3 --- /dev/null +++ b/common/changes/@rushstack/heft-web-rig/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Update to webpack 5.95.0", + "type": "minor", + "packageName": "@rushstack/heft-web-rig" + } + ], + "packageName": "@rushstack/heft-web-rig", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-webpack5-plugin/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/heft-webpack5-plugin/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..03657a08c51 --- /dev/null +++ b/common/changes/@rushstack/heft-webpack5-plugin/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Update the `webpack` peer dependency to `^5.82.1` from `~5.82.1`. Also bump `webpack-dev-server` to `^5.1.0`. This drops support for Node 16 and includes some breaking configuration changes. See https://github.com/webpack/webpack-dev-server/blob/master/migration-v5.md.", + "type": "minor", + "packageName": "@rushstack/heft-webpack5-plugin" + } + ], + "packageName": "@rushstack/heft-webpack5-plugin", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/package-extractor/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/package-extractor/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..90a1927c984 --- /dev/null +++ b/common/changes/@rushstack/package-extractor/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "", + "type": "none", + "packageName": "@rushstack/package-extractor" + } + ], + "packageName": "@rushstack/package-extractor", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/set-webpack-public-path-plugin/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/set-webpack-public-path-plugin/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..4332e793af3 --- /dev/null +++ b/common/changes/@rushstack/set-webpack-public-path-plugin/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Ensure compatibility with webpack 5.95.0", + "type": "patch", + "packageName": "@rushstack/set-webpack-public-path-plugin" + } + ], + "packageName": "@rushstack/set-webpack-public-path-plugin", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack-embedded-dependencies-plugin/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/webpack-embedded-dependencies-plugin/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..b0d7902756e --- /dev/null +++ b/common/changes/@rushstack/webpack-embedded-dependencies-plugin/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Ensure compatibility with webpack 5.95.0", + "type": "patch", + "packageName": "@rushstack/webpack-embedded-dependencies-plugin" + } + ], + "packageName": "@rushstack/webpack-embedded-dependencies-plugin", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack-plugin-utilities/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/webpack-plugin-utilities/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..b5dc607e89e --- /dev/null +++ b/common/changes/@rushstack/webpack-plugin-utilities/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Ensure compatibility with webpack 5.95.0", + "type": "patch", + "packageName": "@rushstack/webpack-plugin-utilities" + } + ], + "packageName": "@rushstack/webpack-plugin-utilities", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..ffba34a58f9 --- /dev/null +++ b/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Ensure compatibility with webpack 5.95.0", + "type": "patch", + "packageName": "@rushstack/webpack-preserve-dynamic-require-plugin" + } + ], + "packageName": "@rushstack/webpack-preserve-dynamic-require-plugin", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack-workspace-resolve-plugin/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/webpack-workspace-resolve-plugin/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..b69e1ea3647 --- /dev/null +++ b/common/changes/@rushstack/webpack-workspace-resolve-plugin/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Ensure compatibility with webpack 5.95.0", + "type": "patch", + "packageName": "@rushstack/webpack-workspace-resolve-plugin" + } + ], + "packageName": "@rushstack/webpack-workspace-resolve-plugin", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack5-localization-plugin/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/webpack5-localization-plugin/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..b7edde0e059 --- /dev/null +++ b/common/changes/@rushstack/webpack5-localization-plugin/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Ensure compatibility with webpack 5.95.0", + "type": "patch", + "packageName": "@rushstack/webpack5-localization-plugin" + } + ], + "packageName": "@rushstack/webpack5-localization-plugin", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack5-module-minifier-plugin/bump-webpack-5_2024-10-01-01-14.json b/common/changes/@rushstack/webpack5-module-minifier-plugin/bump-webpack-5_2024-10-01-01-14.json new file mode 100644 index 00000000000..62b24f467bf --- /dev/null +++ b/common/changes/@rushstack/webpack5-module-minifier-plugin/bump-webpack-5_2024-10-01-01-14.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Ensure compatibility with webpack 5.95.0", + "type": "patch", + "packageName": "@rushstack/webpack5-module-minifier-plugin" + } + ], + "packageName": "@rushstack/webpack5-module-minifier-plugin", + "email": "dmichon-msft@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/config/subspaces/build-tests-subspace/pnpm-lock.yaml b/common/config/subspaces/build-tests-subspace/pnpm-lock.yaml index ae65f678df3..212b74313f6 100644 --- a/common/config/subspaces/build-tests-subspace/pnpm-lock.yaml +++ b/common/config/subspaces/build-tests-subspace/pnpm-lock.yaml @@ -126,10 +126,10 @@ importers: version: file:../../../apps/heft(@types/node@18.17.15) '@rushstack/heft-lint-plugin': specifier: file:../../heft-plugins/heft-lint-plugin - version: file:../../../heft-plugins/heft-lint-plugin(@rushstack/heft@0.67.2)(@types/node@18.17.15) + version: file:../../../heft-plugins/heft-lint-plugin(@rushstack/heft@0.68.0)(@types/node@18.17.15) '@rushstack/heft-typescript-plugin': specifier: file:../../heft-plugins/heft-typescript-plugin - version: file:../../../heft-plugins/heft-typescript-plugin(@rushstack/heft@0.67.2)(@types/node@18.17.15) + version: file:../../../heft-plugins/heft-typescript-plugin(@rushstack/heft@0.68.0)(@types/node@18.17.15) eslint: specifier: ~8.57.0 version: 8.57.0 @@ -6240,7 +6240,7 @@ packages: - typescript dev: true - file:../../../heft-plugins/heft-api-extractor-plugin(@rushstack/heft@0.67.2)(@types/node@18.17.15): + file:../../../heft-plugins/heft-api-extractor-plugin(@rushstack/heft@0.68.0)(@types/node@18.17.15): resolution: {directory: ../../../heft-plugins/heft-api-extractor-plugin, type: directory} id: file:../../../heft-plugins/heft-api-extractor-plugin name: '@rushstack/heft-api-extractor-plugin' @@ -6255,7 +6255,7 @@ packages: - '@types/node' dev: true - file:../../../heft-plugins/heft-jest-plugin(@rushstack/heft@0.67.2)(@types/node@18.17.15)(jest-environment-node@29.5.0): + file:../../../heft-plugins/heft-jest-plugin(@rushstack/heft@0.68.0)(@types/node@18.17.15)(jest-environment-node@29.5.0): resolution: {directory: ../../../heft-plugins/heft-jest-plugin, type: directory} id: file:../../../heft-plugins/heft-jest-plugin name: '@rushstack/heft-jest-plugin' @@ -6289,7 +6289,7 @@ packages: - ts-node dev: true - file:../../../heft-plugins/heft-lint-plugin(@rushstack/heft@0.67.2)(@types/node@18.17.15): + file:../../../heft-plugins/heft-lint-plugin(@rushstack/heft@0.68.0)(@types/node@18.17.15): resolution: {directory: ../../../heft-plugins/heft-lint-plugin, type: directory} id: file:../../../heft-plugins/heft-lint-plugin name: '@rushstack/heft-lint-plugin' @@ -6303,7 +6303,7 @@ packages: - '@types/node' dev: true - file:../../../heft-plugins/heft-typescript-plugin(@rushstack/heft@0.67.2)(@types/node@18.17.15): + file:../../../heft-plugins/heft-typescript-plugin(@rushstack/heft@0.68.0)(@types/node@18.17.15): resolution: {directory: ../../../heft-plugins/heft-typescript-plugin, type: directory} id: file:../../../heft-plugins/heft-typescript-plugin name: '@rushstack/heft-typescript-plugin' @@ -6527,7 +6527,7 @@ packages: transitivePeerDependencies: - '@types/node' - file:../../../rigs/heft-node-rig(@rushstack/heft@0.67.2)(@types/node@18.17.15): + file:../../../rigs/heft-node-rig(@rushstack/heft@0.68.0)(@types/node@18.17.15): resolution: {directory: ../../../rigs/heft-node-rig, type: directory} id: file:../../../rigs/heft-node-rig name: '@rushstack/heft-node-rig' @@ -6537,10 +6537,10 @@ packages: '@microsoft/api-extractor': file:../../../apps/api-extractor(@types/node@18.17.15) '@rushstack/eslint-config': file:../../../eslint/eslint-config(eslint@8.57.0)(typescript@5.4.5) '@rushstack/heft': file:../../../apps/heft(@types/node@18.17.15) - '@rushstack/heft-api-extractor-plugin': file:../../../heft-plugins/heft-api-extractor-plugin(@rushstack/heft@0.67.2)(@types/node@18.17.15) - '@rushstack/heft-jest-plugin': file:../../../heft-plugins/heft-jest-plugin(@rushstack/heft@0.67.2)(@types/node@18.17.15)(jest-environment-node@29.5.0) - '@rushstack/heft-lint-plugin': file:../../../heft-plugins/heft-lint-plugin(@rushstack/heft@0.67.2)(@types/node@18.17.15) - '@rushstack/heft-typescript-plugin': file:../../../heft-plugins/heft-typescript-plugin(@rushstack/heft@0.67.2)(@types/node@18.17.15) + '@rushstack/heft-api-extractor-plugin': file:../../../heft-plugins/heft-api-extractor-plugin(@rushstack/heft@0.68.0)(@types/node@18.17.15) + '@rushstack/heft-jest-plugin': file:../../../heft-plugins/heft-jest-plugin(@rushstack/heft@0.68.0)(@types/node@18.17.15)(jest-environment-node@29.5.0) + '@rushstack/heft-lint-plugin': file:../../../heft-plugins/heft-lint-plugin(@rushstack/heft@0.68.0)(@types/node@18.17.15) + '@rushstack/heft-typescript-plugin': file:../../../heft-plugins/heft-typescript-plugin(@rushstack/heft@0.68.0)(@types/node@18.17.15) '@types/heft-jest': 1.0.1 eslint: 8.57.0 jest-environment-node: 29.5.0 @@ -6560,7 +6560,7 @@ packages: dependencies: '@microsoft/api-extractor': file:../../../apps/api-extractor(@types/node@18.17.15) '@rushstack/heft': file:../../../apps/heft(@types/node@18.17.15) - '@rushstack/heft-node-rig': file:../../../rigs/heft-node-rig(@rushstack/heft@0.67.2)(@types/node@18.17.15) + '@rushstack/heft-node-rig': file:../../../rigs/heft-node-rig(@rushstack/heft@0.68.0)(@types/node@18.17.15) '@types/heft-jest': 1.0.1 '@types/node': 18.17.15 eslint: 8.57.0 diff --git a/common/config/subspaces/build-tests-subspace/repo-state.json b/common/config/subspaces/build-tests-subspace/repo-state.json index 6e1ea1003d3..7a3f317fa1a 100644 --- a/common/config/subspaces/build-tests-subspace/repo-state.json +++ b/common/config/subspaces/build-tests-subspace/repo-state.json @@ -1,6 +1,6 @@ // DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush. { - "pnpmShrinkwrapHash": "5bcae02a351bdf06f03416e25805514c5933db4d", + "pnpmShrinkwrapHash": "0e569d956f72f98565ea4207cba2d7b359e5cdaa", "preferredVersionsHash": "ce857ea0536b894ec8f346aaea08cfd85a5af648", - "packageJsonInjectedDependenciesHash": "145bb9f959c5c63291e466f8101ba34db6c75c2b" + "packageJsonInjectedDependenciesHash": "15081ac6b4174f98e6a82a839055fbda1a33680d" } diff --git a/common/config/subspaces/default/common-versions.json b/common/config/subspaces/default/common-versions.json index 14c8f5b5b55..0f5615cd970 100644 --- a/common/config/subspaces/default/common-versions.json +++ b/common/config/subspaces/default/common-versions.json @@ -120,6 +120,7 @@ "terser-webpack-plugin": ["~3.0.8"], "terser": ["~4.8.0"], "webpack": ["~4.47.0"], + "webpack-dev-server": ["~4.9.3"], "@types/node": [ // These versions are used by testing projects "ts2.9", diff --git a/common/config/subspaces/default/pnpm-lock.yaml b/common/config/subspaces/default/pnpm-lock.yaml index 7fa1f5d5236..945c4b453a2 100644 --- a/common/config/subspaces/default/pnpm-lock.yaml +++ b/common/config/subspaces/default/pnpm-lock.yaml @@ -798,28 +798,28 @@ importers: version: 1.18.0 css-loader: specifier: ~6.6.0 - version: 6.6.0(webpack@5.82.1) + version: 6.6.0(webpack@5.95.0) eslint: specifier: ~8.57.0 version: 8.57.0(supports-color@8.1.1) html-webpack-plugin: specifier: ~5.5.0 - version: 5.5.4(webpack@5.82.1) + version: 5.5.4(webpack@5.95.0) local-eslint-config: specifier: workspace:* version: link:../../eslint/local-eslint-config source-map-loader: specifier: ~3.0.1 - version: 3.0.2(webpack@5.82.1) + version: 3.0.2(webpack@5.95.0) style-loader: specifier: ~3.3.1 - version: 3.3.4(webpack@5.82.1) + version: 3.3.4(webpack@5.95.0) typescript: specifier: ~5.4.2 version: 5.4.2 webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../build-tests-samples/packlets-tutorial: devDependencies: @@ -1318,13 +1318,13 @@ importers: version: 1.18.0 html-webpack-plugin: specifier: ~5.5.0 - version: 5.5.4(webpack@5.82.1) + version: 5.5.4(webpack@5.95.0) typescript: specifier: ~5.4.2 version: 5.4.2 webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 webpack-bundle-analyzer: specifier: ~4.5.0 version: 4.5.0 @@ -2012,13 +2012,13 @@ importers: version: 8.57.0(supports-color@8.1.1) html-webpack-plugin: specifier: ~5.5.0 - version: 5.5.4(webpack@5.82.1) + version: 5.5.4(webpack@5.95.0) local-eslint-config: specifier: workspace:* version: link:../../eslint/local-eslint-config source-map-loader: specifier: ~3.0.1 - version: 3.0.2(webpack@5.82.1) + version: 3.0.2(webpack@5.95.0) tslint: specifier: ~5.20.1 version: 5.20.1(typescript@5.4.2) @@ -2026,8 +2026,8 @@ importers: specifier: ~5.4.2 version: 5.4.2 webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../build-tests/localization-plugin-test-01: dependencies: @@ -2334,13 +2334,13 @@ importers: version: 8.57.0(supports-color@8.1.1) html-webpack-plugin: specifier: ~5.5.0 - version: 5.5.4(webpack@5.82.1) + version: 5.5.4(webpack@5.95.0) typescript: specifier: ~5.4.2 version: 5.4.2 webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../build-tests/ts-command-line-test: devDependencies: @@ -2672,9 +2672,6 @@ importers: local-node-rig: specifier: workspace:* version: link:../../rigs/local-node-rig - webpack: - specifier: ~5.82.1 - version: 5.82.1 ../../../heft-plugins/heft-jest-plugin: dependencies: @@ -2981,8 +2978,8 @@ importers: specifier: 2.4.0 version: 2.4.0 webpack-dev-server: - specifier: ~4.9.3 - version: 4.9.3(webpack@5.82.1) + specifier: ^5.1.0 + version: 5.1.0(webpack@5.95.0) devDependencies: '@rushstack/heft': specifier: workspace:* @@ -2997,8 +2994,8 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../libraries/api-extractor-model: dependencies: @@ -3303,8 +3300,8 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../libraries/rig-package: dependencies: @@ -3506,8 +3503,8 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../libraries/rush-sdk: dependencies: @@ -3555,8 +3552,8 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../libraries/rush-themed-ui: dependencies: @@ -3877,52 +3874,52 @@ importers: version: 10.4.18(postcss@8.4.36) css-loader: specifier: ~6.6.0 - version: 6.6.0(webpack@5.82.1) + version: 6.6.0(webpack@5.95.0) css-minimizer-webpack-plugin: specifier: ~3.4.1 - version: 3.4.1(webpack@5.82.1) + version: 3.4.1(webpack@5.95.0) eslint: specifier: ~8.57.0 version: 8.57.0(supports-color@8.1.1) html-webpack-plugin: specifier: ~5.5.0 - version: 5.5.4(webpack@5.82.1) + version: 5.5.4(webpack@5.95.0) jest-environment-jsdom: specifier: ~29.5.0 version: 29.5.0 mini-css-extract-plugin: specifier: ~2.5.3 - version: 2.5.3(webpack@5.82.1) + version: 2.5.3(webpack@5.95.0) postcss: specifier: ~8.4.6 version: 8.4.36 postcss-loader: specifier: ~6.2.1 - version: 6.2.1(postcss@8.4.36)(webpack@5.82.1) + version: 6.2.1(postcss@8.4.36)(webpack@5.95.0) sass: specifier: ~1.49.7 version: 1.49.11 sass-loader: specifier: ~12.4.0 - version: 12.4.0(sass@1.49.11)(webpack@5.82.1) + version: 12.4.0(sass@1.49.11)(webpack@5.95.0) source-map-loader: specifier: ~3.0.1 - version: 3.0.2(webpack@5.82.1) + version: 3.0.2(webpack@5.95.0) style-loader: specifier: ~3.3.1 - version: 3.3.4(webpack@5.82.1) + version: 3.3.4(webpack@5.95.0) terser-webpack-plugin: specifier: ~5.3.1 - version: 5.3.10(webpack@5.82.1) + version: 5.3.10(webpack@5.95.0) typescript: specifier: ~5.4.2 version: 5.4.2 url-loader: specifier: ~4.1.1 - version: 4.1.1(webpack@5.82.1) + version: 4.1.1(webpack@5.95.0) webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 webpack-bundle-analyzer: specifier: ~4.5.0 version: 4.5.0 @@ -4270,13 +4267,13 @@ importers: version: 8.57.0(supports-color@8.1.1) html-webpack-plugin: specifier: ~5.5.0 - version: 5.5.4(webpack@5.82.1) + version: 5.5.4(webpack@5.95.0) local-web-rig: specifier: workspace:* version: link:../../rigs/local-web-rig webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 webpack-bundle-analyzer: specifier: ~4.5.0 version: 4.5.0 @@ -4361,11 +4358,11 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig memfs: - specifier: 3.4.3 - version: 3.4.3 + specifier: 4.12.0 + version: 4.12.0 webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../webpack/loader-load-themed-styles: dependencies: @@ -4411,8 +4408,8 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../webpack/set-webpack-public-path-plugin: dependencies: @@ -4430,11 +4427,11 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig memfs: - specifier: 3.4.3 - version: 3.4.3 + specifier: 4.12.0 + version: 4.12.0 webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../webpack/webpack-deep-imports-plugin: dependencies: @@ -4449,8 +4446,8 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../webpack/webpack-embedded-dependencies-plugin: dependencies: @@ -4468,17 +4465,17 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig memfs: - specifier: 3.4.3 - version: 3.4.3 + specifier: 4.12.0 + version: 4.12.0 webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../webpack/webpack-plugin-utilities: dependencies: memfs: - specifier: 3.4.3 - version: 3.4.3 + specifier: 4.12.0 + version: 4.12.0 webpack-merge: specifier: ~5.8.0 version: 5.8.0 @@ -4493,8 +4490,8 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../webpack/webpack-workspace-resolve-plugin: dependencies: @@ -4509,11 +4506,11 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig memfs: - specifier: 3.4.3 - version: 3.4.3 + specifier: 4.12.0 + version: 4.12.0 webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../webpack/webpack4-localization-plugin: dependencies: @@ -4608,16 +4605,16 @@ importers: version: link:../../libraries/node-core-library css-loader: specifier: ~6.6.0 - version: 6.6.0(webpack@5.82.1) + version: 6.6.0(webpack@5.95.0) local-node-rig: specifier: workspace:* version: link:../../rigs/local-node-rig memfs: - specifier: 3.4.3 - version: 3.4.3 + specifier: 4.12.0 + version: 4.12.0 webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../webpack/webpack5-localization-plugin: dependencies: @@ -4638,11 +4635,11 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig memfs: - specifier: 3.4.3 - version: 3.4.3 + specifier: 4.12.0 + version: 4.12.0 webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 ../../../webpack/webpack5-module-minifier-plugin: dependencies: @@ -4669,11 +4666,11 @@ importers: specifier: workspace:* version: link:../../rigs/local-node-rig memfs: - specifier: 3.4.3 - version: 3.4.3 + specifier: 4.12.0 + version: 4.12.0 webpack: - specifier: ~5.82.1 - version: 5.82.1 + specifier: ~5.95.0 + version: 5.95.0 packages: @@ -9088,17 +9085,17 @@ packages: dependencies: '@jest/console': 29.7.0 '@jest/reporters': 29.7.0 - '@jest/test-result': 29.7.0(@types/node@20.12.12) + '@jest/test-result': 29.7.0(@types/node@17.0.41) '@jest/transform': 29.7.0(supports-color@8.1.1) '@jest/types': 29.6.3 - '@types/node': 20.12.12 + '@types/node': 17.0.41 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.9.0 exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@20.12.12) + jest-config: 29.7.0(@types/node@17.0.41) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -9126,7 +9123,7 @@ packages: dependencies: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.12.12 + '@types/node': 17.0.41 jest-mock: 29.7.0 /@jest/expect-utils@29.7.0: @@ -9150,7 +9147,7 @@ packages: dependencies: '@jest/types': 29.6.3 '@sinonjs/fake-timers': 10.3.0 - '@types/node': 20.12.12 + '@types/node': 17.0.41 jest-message-util: 29.7.0 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -9214,14 +9211,14 @@ packages: dependencies: '@bcoe/v8-coverage': 0.2.3 '@jest/console': 29.7.0 - '@jest/test-result': 29.7.0(@types/node@20.12.12) + '@jest/test-result': 29.7.0(@types/node@17.0.41) '@jest/transform': 29.7.0(supports-color@8.1.1) '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.25 '@types/istanbul-lib-coverage': 2.0.4 - '@types/node': 20.12.12 + '@types/node': 17.0.41 chalk: 4.1.2 - collect-v8-coverage: 1.0.2(@types/node@20.12.12) + collect-v8-coverage: 1.0.2(@types/node@17.0.41) exit: 0.1.2 glob: 7.2.3 graceful-fs: 4.2.11 @@ -9255,6 +9252,19 @@ packages: callsites: 3.1.0 graceful-fs: 4.2.11 + /@jest/test-result@29.7.0(@types/node@17.0.41): + resolution: {integrity: sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/console': 29.7.0 + '@jest/types': 29.6.3 + '@types/istanbul-lib-coverage': 2.0.6 + collect-v8-coverage: 1.0.2(@types/node@17.0.41) + jest-haste-map: 29.7.0 + jest-resolve: 29.7.0 + transitivePeerDependencies: + - '@types/node' + /@jest/test-result@29.7.0(@types/node@18.17.15): resolution: {integrity: sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -9294,6 +9304,18 @@ packages: transitivePeerDependencies: - '@types/node' + /@jest/test-sequencer@29.7.0(@types/node@17.0.41): + resolution: {integrity: sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/test-result': 29.7.0(@types/node@17.0.41) + graceful-fs: 4.2.11 + jest-haste-map: 29.7.0 + slash: 3.0.0 + transitivePeerDependencies: + - '@types/node' + dev: true + /@jest/test-sequencer@29.7.0(@types/node@18.17.15): resolution: {integrity: sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -9389,7 +9411,7 @@ packages: dependencies: '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 20.12.12 + '@types/node': 17.0.41 '@types/yargs': 15.0.19 chalk: 4.1.2 dev: true @@ -9412,7 +9434,7 @@ packages: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 20.12.12 + '@types/node': 17.0.41 '@types/yargs': 17.0.32 chalk: 4.1.2 @@ -9447,6 +9469,34 @@ packages: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.4.15 + /@jsonjoy.com/base64@1.1.2(tslib@2.3.1): + resolution: {integrity: sha512-q6XAnWQDIMA3+FTiOYajoYqySkO+JSat0ytXGSuRdq9uXE7o92gzuQwQM14xaCRlBLGq3v5miDGC4vkVTn54xA==} + engines: {node: '>=10.0'} + peerDependencies: + tslib: '2' + dependencies: + tslib: 2.3.1 + + /@jsonjoy.com/json-pack@1.1.0(tslib@2.3.1): + resolution: {integrity: sha512-zlQONA+msXPPwHWZMKFVS78ewFczIll5lXiVPwFPCZUsrOKdxc2AvxU1HoNBmMRhqDZUR9HkC3UOm+6pME6Xsg==} + engines: {node: '>=10.0'} + peerDependencies: + tslib: '2' + dependencies: + '@jsonjoy.com/base64': 1.1.2(tslib@2.3.1) + '@jsonjoy.com/util': 1.3.0(tslib@2.3.1) + hyperdyperid: 1.2.0 + thingies: 1.21.0(tslib@2.3.1) + tslib: 2.3.1 + + /@jsonjoy.com/util@1.3.0(tslib@2.3.1): + resolution: {integrity: sha512-Cebt4Vk7k1xHy87kHY7KSPLT77A7Ev7IfOblyLZhtYEhrdQ6fX4EoLq3xOQ3O/DRMEh2ok5nyC180E+ABS8Wmw==} + engines: {node: '>=10.0'} + peerDependencies: + tslib: '2' + dependencies: + tslib: 2.3.1 + /@leichtgewicht/ip-codec@2.0.4: resolution: {integrity: sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==} dev: false @@ -12812,7 +12862,7 @@ packages: /@types/bonjour@3.5.13: resolution: {integrity: sha512-z9fJ5Im06zvUL548KvYNecEVlA7cVDkGUi6kZusb04mpyEFKCIZJvloCcmpmLaIahDpOQGHaHmG6imtPMmPXGQ==} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 dev: false /@types/cacheable-request@6.0.3: @@ -12820,7 +12870,7 @@ packages: dependencies: '@types/http-cache-semantics': 4.0.4 '@types/keyv': 3.1.4 - '@types/node': 20.12.12 + '@types/node': 17.0.41 '@types/responselike': 1.0.3 /@types/cli-table@0.3.0: @@ -12853,13 +12903,13 @@ packages: resolution: {integrity: sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw==} dependencies: '@types/express-serve-static-core': 4.17.43 - '@types/node': 20.12.12 + '@types/node': 17.0.41 dev: false /@types/connect@3.4.38: resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 /@types/cors@2.8.17: resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==} @@ -12871,17 +12921,12 @@ packages: resolution: {integrity: sha512-XIpxU6Qdvp1ZE6Kr3yrkv1qgUab0fyf4mHYvW8N3Bx3PCsbN6or1q9/q72cv5jIFWolaGH08U9XyYoLLIykyKQ==} dev: true - /@types/eslint-scope@3.7.7: - resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} - dependencies: - '@types/eslint': 8.2.0 - '@types/estree': 1.0.5 - /@types/eslint@8.2.0: resolution: {integrity: sha512-74hbvsnc+7TEDa1z5YLSe4/q8hGYB3USNvCuzHUJrjPV6hXaq8IXcngCrHkuvFt0+8rFz7xYXrHgNayIX0UZvQ==} dependencies: '@types/estree': 1.0.5 '@types/json-schema': 7.0.15 + dev: true /@types/estree@1.0.5: resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} @@ -13021,7 +13066,7 @@ packages: /@types/jsdom@20.0.1: resolution: {integrity: sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 '@types/tough-cookie': 4.0.5 parse5: 7.1.2 @@ -13035,7 +13080,7 @@ packages: /@types/keyv@3.1.4: resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 /@types/loader-utils@1.1.3: resolution: {integrity: sha512-euKGFr2oCB3ASBwG39CYJMR3N9T0nanVqXdiH7Zu/Nqddt6SmFRxytq/i2w9LQYNQekEtGBz+pE3qG6fQTNvRg==} @@ -13093,7 +13138,7 @@ packages: /@types/node-forge@1.3.11: resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 dev: false /@types/node@14.0.1: @@ -13106,7 +13151,6 @@ packages: /@types/node@17.0.41: resolution: {integrity: sha512-xA6drNNeqb5YyV5fO3OAEsnXLfO7uF0whiOfPTz5AeDo8KeZFmODKnvwPymMNO8qE/an8pVY/O50tig2SQCrGw==} - dev: true /@types/node@18.17.15: resolution: {integrity: sha512-2yrWpBk32tvV/JAd3HNHWuZn/VDN1P+72hWirHnvsvTGSqbANi+kSeuQR9yAHnbvaBvHDsoTdXV0Fe+iRtHLKA==} @@ -13135,7 +13179,7 @@ packages: /@types/npmlog@4.1.6: resolution: {integrity: sha512-0l3z16vnlJGl2Mi/rgJFrdwfLZ4jfNYgE6ZShEpjqhHuGTqdEzNles03NpYHwUMVYZa+Tj46UxKIEpE78lQ3DQ==} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 dev: true /@types/overlayscrollbars@1.12.5: @@ -13203,12 +13247,16 @@ packages: /@types/responselike@1.0.3: resolution: {integrity: sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 /@types/retry@0.12.0: resolution: {integrity: sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==} dev: false + /@types/retry@0.12.2: + resolution: {integrity: sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow==} + dev: false + /@types/scheduler@0.16.8: resolution: {integrity: sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==} @@ -13219,7 +13267,7 @@ packages: resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} dependencies: '@types/mime': 1.3.5 - '@types/node': 20.12.12 + '@types/node': 17.0.41 /@types/serialize-javascript@5.0.2: resolution: {integrity: sha512-BRLlwZzRoZukGaBtcUxkLsZsQfWZpvog6MZk3PWQO9Q6pXmXFzjU5iGzZ+943evp6tkkbN98N1Z31KT0UG1yRw==} @@ -13241,7 +13289,7 @@ packages: /@types/sockjs@0.3.36: resolution: {integrity: sha512-MK9V6NzAS1+Ud7JV9lJLFqW85VbC9dq3LmwZCuBe4wBDgKC0Kj/jd8Xl+nSviU+Qc3+m7umHHyHg//2KSa0a0Q==} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 dev: false /@types/source-list-map@0.1.6: @@ -13277,7 +13325,7 @@ packages: /@types/through@0.0.33: resolution: {integrity: sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 dev: true /@types/tough-cookie@4.0.5: @@ -13286,7 +13334,7 @@ packages: /@types/tunnel@0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 dev: false /@types/uglify-js@3.17.5: @@ -13344,6 +13392,12 @@ packages: anymatch: 3.1.3 source-map: 0.6.1 + /@types/ws@8.5.12: + resolution: {integrity: sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ==} + dependencies: + '@types/node': 17.0.41 + dev: false + /@types/ws@8.5.5: resolution: {integrity: sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==} dependencies: @@ -14431,8 +14485,8 @@ packages: acorn: 8.11.3 acorn-walk: 8.3.2 - /acorn-import-assertions@1.9.0(acorn@8.11.3): - resolution: {integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==} + /acorn-import-attributes@1.9.5(acorn@8.11.3): + resolution: {integrity: sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==} peerDependencies: acorn: ^8 dependencies: @@ -15700,6 +15754,13 @@ packages: resolution: {integrity: sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==} dev: false + /bundle-name@4.1.0: + resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} + engines: {node: '>=18'} + dependencies: + run-applescript: 7.0.0 + dev: false + /buttono@1.0.4: resolution: {integrity: sha512-aLOeyK3zrhZnqvH6LzwIbjur8mkKhW8Xl3/jolX+RCJnGG354+L48q1SJWdky89uhQ/mBlTxY/d0x8+ciE0ZWw==} dev: false @@ -16217,6 +16278,13 @@ packages: resolution: {integrity: sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ==} dev: true + /collect-v8-coverage@1.0.2(@types/node@17.0.41): + resolution: {integrity: sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==} + peerDependencies: + '@types/node': '>=12' + dependencies: + '@types/node': 17.0.41 + /collect-v8-coverage@1.0.2(@types/node@18.17.15): resolution: {integrity: sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==} peerDependencies: @@ -16697,7 +16765,7 @@ packages: webpack: 4.47.0(webpack-cli@3.3.12) dev: true - /css-loader@6.6.0(webpack@5.82.1): + /css-loader@6.6.0(webpack@5.95.0): resolution: {integrity: sha512-FK7H2lisOixPT406s5gZM1S3l8GrfhEBT3ZiL2UX1Ng1XWs0y2GPllz/OTyvbaHe12VgQrIXIzuEGVlbUhodqg==} engines: {node: '>= 12.13.0'} peerDependencies: @@ -16711,9 +16779,9 @@ packages: postcss-modules-values: 4.0.0(postcss@8.4.36) postcss-value-parser: 4.2.0 semver: 7.5.4 - webpack: 5.82.1 + webpack: 5.95.0 - /css-minimizer-webpack-plugin@3.4.1(webpack@5.82.1): + /css-minimizer-webpack-plugin@3.4.1(webpack@5.95.0): resolution: {integrity: sha512-1u6D71zeIfgngN2XNRJefc/hY7Ybsxd74Jm4qngIXyUEk7fss3VUzuHxLAq/R8NAba4QU9OUSaMZlbpRc7bM4Q==} engines: {node: '>= 12.13.0'} peerDependencies: @@ -16738,7 +16806,7 @@ packages: schema-utils: 4.2.0 serialize-javascript: 6.0.0 source-map: 0.6.1 - webpack: 5.82.1 + webpack: 5.95.0 dev: false /css-select@4.3.0: @@ -16993,6 +17061,19 @@ packages: resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} engines: {node: '>=0.10.0'} + /default-browser-id@5.0.0: + resolution: {integrity: sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==} + engines: {node: '>=18'} + dev: false + + /default-browser@5.2.1: + resolution: {integrity: sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==} + engines: {node: '>=18'} + dependencies: + bundle-name: 4.1.0 + default-browser-id: 5.0.0 + dev: false + /default-gateway@6.0.3: resolution: {integrity: sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==} engines: {node: '>= 10'} @@ -17023,6 +17104,11 @@ packages: engines: {node: '>=8'} dev: false + /define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + dev: false + /define-properties@1.2.1: resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} @@ -17498,8 +17584,8 @@ packages: memory-fs: 0.5.0 tapable: 1.1.3 - /enhanced-resolve@5.16.0: - resolution: {integrity: sha512-O+QWCviPNSSLAD9Ucn8Awv+poAkqn3T1XY5/N7kR7rQO9yfSGWkYZDwpJ+iKF7B8rxaQKWngSqACpgzeapSyoA==} + /enhanced-resolve@5.17.1: + resolution: {integrity: sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==} engines: {node: '>=10.13.0'} dependencies: graceful-fs: 4.2.11 @@ -20017,7 +20103,7 @@ packages: util.promisify: 1.0.0 webpack: 4.47.0(webpack-cli@3.3.12) - /html-webpack-plugin@5.5.4(webpack@5.82.1): + /html-webpack-plugin@5.5.4(webpack@5.95.0): resolution: {integrity: sha512-3wNSaVVxdxcu0jd4FpQFoICdqgxs4zIQQvj+2yQKFfBOnLETQ6X5CDWdeasuGlSsooFlMkEioWDTqBv1wvw5Iw==} engines: {node: '>=10.13.0'} peerDependencies: @@ -20028,7 +20114,7 @@ packages: lodash: 4.17.21 pretty-error: 4.0.0 tapable: 2.2.1 - webpack: 5.82.1 + webpack: 5.95.0 /htmlparser2@6.1.0: resolution: {integrity: sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==} @@ -20205,6 +20291,10 @@ packages: ms: 2.1.3 dev: true + /hyperdyperid@1.2.0: + resolution: {integrity: sha512-Y93lCzHYgGWdrJ66yIktxiaGULYc6oGiABxhcO5AufBeOyoIdZF7bIfLaOrbM0iGIOXQQgxxRrFEnb+Y6w1n4A==} + engines: {node: '>=10.18'} + /iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} @@ -20550,6 +20640,12 @@ packages: engines: {node: '>=8'} hasBin: true + /is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + dev: false + /is-dom@1.1.0: resolution: {integrity: sha512-u82f6mvhYxRPKpw8V1N0W8ce1xXwOrQtgGcxl6UCL5zBmZu3is/18K0rR7uFCnMDuAsS/3W54mGL4vsaFUQlEQ==} dependencies: @@ -20625,6 +20721,14 @@ packages: resolution: {integrity: sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==} dev: true + /is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + dependencies: + is-docker: 3.0.0 + dev: false + /is-installed-globally@0.4.0: resolution: {integrity: sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==} engines: {node: '>=10'} @@ -20649,6 +20753,11 @@ packages: resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==} engines: {node: '>= 0.4'} + /is-network-error@1.1.0: + resolution: {integrity: sha512-tUdRRAnhT+OtCZR/LxZelH/C7QtjtFrTu5tXCA8pl55eTUElUHT+GPYV8MBMBvea/j+NxQqVt3LbWMRir7Gx9g==} + engines: {node: '>=16'} + dev: false + /is-npm@5.0.0: resolution: {integrity: sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==} engines: {node: '>=10'} @@ -20809,6 +20918,13 @@ packages: dependencies: is-docker: 2.2.1 + /is-wsl@3.1.0: + resolution: {integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==} + engines: {node: '>=16'} + dependencies: + is-inside-container: 1.0.0 + dev: false + /is-yarn-global@0.3.0: resolution: {integrity: sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==} @@ -20924,9 +21040,9 @@ packages: dependencies: '@jest/environment': 29.7.0 '@jest/expect': 29.7.0(supports-color@8.1.1) - '@jest/test-result': 29.7.0(@types/node@20.12.12) + '@jest/test-result': 29.7.0(@types/node@17.0.41) '@jest/types': 29.6.3 - '@types/node': 20.12.12 + '@types/node': 17.0.41 chalk: 4.1.2 co: 4.6.0 dedent: 1.5.1 @@ -21052,7 +21168,7 @@ packages: - babel-plugin-macros - supports-color - /jest-config@29.7.0(@types/node@18.17.15): + /jest-config@29.7.0(@types/node@17.0.41): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -21065,9 +21181,9 @@ packages: optional: true dependencies: '@babel/core': 7.20.12(supports-color@8.1.1) - '@jest/test-sequencer': 29.7.0(@types/node@18.17.15) + '@jest/test-sequencer': 29.7.0(@types/node@17.0.41) '@jest/types': 29.6.3 - '@types/node': 18.17.15 + '@types/node': 17.0.41 babel-jest: 29.7.0(@babel/core@7.20.12)(supports-color@8.1.1) chalk: 4.1.2 ci-info: 3.9.0 @@ -21092,7 +21208,7 @@ packages: - supports-color dev: true - /jest-config@29.7.0(@types/node@20.12.12): + /jest-config@29.7.0(@types/node@18.17.15): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -21105,9 +21221,9 @@ packages: optional: true dependencies: '@babel/core': 7.20.12(supports-color@8.1.1) - '@jest/test-sequencer': 29.7.0(@types/node@20.12.12) + '@jest/test-sequencer': 29.7.0(@types/node@18.17.15) '@jest/types': 29.6.3 - '@types/node': 20.12.12 + '@types/node': 18.17.15 babel-jest: 29.7.0(@babel/core@7.20.12)(supports-color@8.1.1) chalk: 4.1.2 ci-info: 3.9.0 @@ -21207,7 +21323,7 @@ packages: '@jest/environment': 29.7.0 '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.12.12 + '@types/node': 17.0.41 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -21226,7 +21342,7 @@ packages: dependencies: '@jest/types': 26.6.2 '@types/graceful-fs': 4.1.9 - '@types/node': 20.12.12 + '@types/node': 17.0.41 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -21247,7 +21363,7 @@ packages: dependencies: '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.9 - '@types/node': 20.12.12 + '@types/node': 17.0.41 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -21314,7 +21430,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 20.12.12 + '@types/node': 17.0.41 jest-util: 29.7.0 /jest-pnp-resolver@1.2.3(jest-resolve@29.5.0): @@ -21391,10 +21507,10 @@ packages: dependencies: '@jest/console': 29.7.0 '@jest/environment': 29.7.0 - '@jest/test-result': 29.7.0(@types/node@20.12.12) + '@jest/test-result': 29.7.0(@types/node@17.0.41) '@jest/transform': 29.7.0(supports-color@8.1.1) '@jest/types': 29.6.3 - '@types/node': 20.12.12 + '@types/node': 17.0.41 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11 @@ -21421,13 +21537,13 @@ packages: '@jest/fake-timers': 29.7.0 '@jest/globals': 29.7.0(supports-color@8.1.1) '@jest/source-map': 29.6.3 - '@jest/test-result': 29.7.0(@types/node@20.12.12) + '@jest/test-result': 29.7.0(@types/node@17.0.41) '@jest/transform': 29.7.0(supports-color@8.1.1) '@jest/types': 29.6.3 - '@types/node': 20.12.12 + '@types/node': 17.0.41 chalk: 4.1.2 cjs-module-lexer: 1.2.3 - collect-v8-coverage: 1.0.2(@types/node@20.12.12) + collect-v8-coverage: 1.0.2(@types/node@17.0.41) glob: 7.2.3 graceful-fs: 4.2.11 jest-haste-map: 29.7.0 @@ -21446,7 +21562,7 @@ packages: resolution: {integrity: sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==} engines: {node: '>= 10.14.2'} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 graceful-fs: 4.2.11 dev: true @@ -21512,7 +21628,7 @@ packages: engines: {node: '>= 10.14.2'} dependencies: '@jest/types': 26.6.2 - '@types/node': 20.12.12 + '@types/node': 17.0.41 chalk: 4.1.2 graceful-fs: 4.2.11 is-ci: 2.0.0 @@ -21553,9 +21669,9 @@ packages: resolution: {integrity: sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/test-result': 29.7.0(@types/node@20.12.12) + '@jest/test-result': 29.7.0(@types/node@17.0.41) '@jest/types': 29.6.3 - '@types/node': 20.12.12 + '@types/node': 17.0.41 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -21575,7 +21691,7 @@ packages: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 20.12.12 + '@types/node': 17.0.41 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -21962,6 +22078,13 @@ packages: dependencies: package-json: 7.0.0 + /launch-editor@2.9.1: + resolution: {integrity: sha512-Gcnl4Bd+hRO9P9icCP/RVVT2o8SFlPXofuCxvA2SaZuH45whSvf5p8x5oih5ftLiVhEI4sp5xDY+R+b3zJBh5w==} + dependencies: + picocolors: 1.0.0 + shell-quote: 1.8.1 + dev: false + /lazy-universal-dotenv@3.0.1: resolution: {integrity: sha512-prXSYk799h3GY3iOWnC6ZigYzMPjxN2svgjJ9shk7oMadSNX3wXy0B6F32PMJv7qtMnrIbUxoEHzbutvxR2LBQ==} engines: {node: '>=6.0.0', npm: '>=6.0.0', yarn: '>=1.0.0'} @@ -22403,6 +22526,15 @@ packages: dependencies: fs-monkey: 1.0.3 + /memfs@4.12.0: + resolution: {integrity: sha512-74wDsex5tQDSClVkeK1vtxqYCAgCoXxx+K4NSHzgU/muYVYByFqa+0RnrPO9NM6naWm1+G9JmZ0p6QHhXmeYfA==} + engines: {node: '>= 4.0.0'} + dependencies: + '@jsonjoy.com/json-pack': 1.1.0(tslib@2.3.1) + '@jsonjoy.com/util': 1.3.0(tslib@2.3.1) + tree-dump: 1.0.2(tslib@2.3.1) + tslib: 2.3.1 + /memoizerific@1.11.3: resolution: {integrity: sha512-/EuHYwAPdLtXwAwSZkh/Gutery6pD2KYd44oQLhAvQp/50mpyduZh8Q7PYHXTCJ+wuXxt7oij2LXyIJOOYFPog==} dependencies: @@ -22537,14 +22669,14 @@ packages: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} - /mini-css-extract-plugin@2.5.3(webpack@5.82.1): + /mini-css-extract-plugin@2.5.3(webpack@5.95.0): resolution: {integrity: sha512-YseMB8cs8U/KCaAGQoqYmfUuhhGW0a9p9XvWXrxVOkE3/IiISTLw4ALNt7JR5B2eYauFM+PQGSbXMDmVbR7Tfw==} engines: {node: '>= 12.13.0'} peerDependencies: webpack: ^5.0.0 || ^4 || ^5 dependencies: schema-utils: 4.2.0 - webpack: 5.82.1 + webpack: 5.95.0 dev: false /minimalistic-assert@1.0.1: @@ -23226,6 +23358,16 @@ packages: dependencies: mimic-fn: 2.1.0 + /open@10.1.0: + resolution: {integrity: sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==} + engines: {node: '>=18'} + dependencies: + default-browser: 5.2.1 + define-lazy-prop: 3.0.0 + is-inside-container: 1.0.0 + is-wsl: 3.1.0 + dev: false + /open@7.4.2: resolution: {integrity: sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==} engines: {node: '>=8'} @@ -23394,6 +23536,15 @@ packages: retry: 0.13.1 dev: false + /p-retry@6.2.0: + resolution: {integrity: sha512-JA6nkq6hKyWLLasXQXUrO4z8BUZGUt/LjlJxx8Gb2+2ntodU/SS63YZ8b0LUTbQ8ZB9iwOfhEPhg4ykKnn2KsA==} + engines: {node: '>=16.17'} + dependencies: + '@types/retry': 0.12.2 + is-network-error: 1.1.0 + retry: 0.13.1 + dev: false + /p-settle@4.1.1: resolution: {integrity: sha512-6THGh13mt3gypcNMm0ADqVNCcYa3BK6DWsuJWFCuEKP1rpY+OKGp7gaZwVmLspmic01+fsg/fN57MfvDzZ/PuQ==} engines: {node: '>=10'} @@ -23800,7 +23951,7 @@ packages: webpack: 4.47.0(webpack-cli@3.3.12) dev: true - /postcss-loader@6.2.1(postcss@8.4.36)(webpack@5.82.1): + /postcss-loader@6.2.1(postcss@8.4.36)(webpack@5.95.0): resolution: {integrity: sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==} engines: {node: '>= 12.13.0'} peerDependencies: @@ -23811,7 +23962,7 @@ packages: klona: 2.0.6 postcss: 8.4.36 semver: 7.5.4 - webpack: 5.82.1 + webpack: 5.95.0 dev: false /postcss-merge-longhand@5.1.7(postcss@8.4.36): @@ -25296,6 +25447,11 @@ packages: '@babel/runtime': 7.24.0 dev: false + /run-applescript@7.0.0: + resolution: {integrity: sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==} + engines: {node: '>=18'} + dev: false + /run-async@2.4.1: resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} engines: {node: '>=0.12.0'} @@ -25602,7 +25758,7 @@ packages: webpack: 4.47.0(webpack-cli@3.3.12) dev: true - /sass-loader@12.4.0(sass@1.49.11)(webpack@5.82.1): + /sass-loader@12.4.0(sass@1.49.11)(webpack@5.95.0): resolution: {integrity: sha512-7xN+8khDIzym1oL9XyS6zP6Ges+Bo2B2xbPrjdMHEYyV3AQYhd/wXeru++3ODHF0zMjYmVadblSKrPrjEkL8mg==} engines: {node: '>= 12.13.0'} peerDependencies: @@ -25621,7 +25777,7 @@ packages: klona: 2.0.6 neo-async: 2.6.2 sass: 1.49.11 - webpack: 5.82.1 + webpack: 5.95.0 dev: false /sass@1.3.2: @@ -25957,6 +26113,10 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + /shell-quote@1.8.1: + resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} + dev: false + /shelljs@0.8.5: resolution: {integrity: sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==} engines: {node: '>=4'} @@ -26125,7 +26285,7 @@ packages: whatwg-mimetype: 2.3.0 dev: true - /source-map-loader@3.0.2(webpack@5.82.1): + /source-map-loader@3.0.2(webpack@5.95.0): resolution: {integrity: sha512-BokxPoLjyl3iOrgkWaakaxqnelAJSS+0V+De0kKIq6lyWrXuiPgYTGp6z3iHmqljKAaLXwZa+ctD8GccRJeVvg==} engines: {node: '>= 12.13.0'} peerDependencies: @@ -26134,7 +26294,7 @@ packages: abab: 2.0.6 iconv-lite: 0.6.3 source-map-js: 1.1.0 - webpack: 5.82.1 + webpack: 5.95.0 /source-map-resolve@0.5.3: resolution: {integrity: sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==} @@ -26543,13 +26703,13 @@ packages: webpack: 4.47.0(webpack-cli@3.3.12) dev: true - /style-loader@3.3.4(webpack@5.82.1): + /style-loader@3.3.4(webpack@5.95.0): resolution: {integrity: sha512-0WqXzrsMTyb8yjZJHDqwmnwRJvhALK9LfRtRc6B4UTWe8AijYLZYZ9thuJTZc2VfQWINADW/j+LiJnfy2RoC1w==} engines: {node: '>= 12.13.0'} peerDependencies: webpack: ^5.0.0 || ^4 || ^5 dependencies: - webpack: 5.82.1 + webpack: 5.95.0 /style-to-object@0.3.0: resolution: {integrity: sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==} @@ -26781,7 +26941,7 @@ packages: webpack-sources: 1.4.3 dev: true - /terser-webpack-plugin@5.3.10(webpack@5.82.1): + /terser-webpack-plugin@5.3.10(webpack@5.95.0): resolution: {integrity: sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -26802,7 +26962,7 @@ packages: schema-utils: 3.3.0 serialize-javascript: 6.0.2 terser: 5.29.2 - webpack: 5.82.1 + webpack: 5.95.0 /terser@4.8.1: resolution: {integrity: sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==} @@ -26847,6 +27007,14 @@ packages: any-promise: 1.3.0 dev: false + /thingies@1.21.0(tslib@2.3.1): + resolution: {integrity: sha512-hsqsJsFMsV+aD4s3CWKk85ep/3I9XzYV/IXaSouJMYIoDlgyi11cBhsqYe9/geRfB0YIikBQg6raRaM+nIMP9g==} + engines: {node: '>=10.18'} + peerDependencies: + tslib: ^2 + dependencies: + tslib: 2.3.1 + /throat@6.0.2: resolution: {integrity: sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==} dev: false @@ -26971,6 +27139,14 @@ packages: resolution: {integrity: sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ==} dev: true + /tree-dump@1.0.2(tslib@2.3.1): + resolution: {integrity: sha512-dpev9ABuLWdEubk+cIaI9cHwRNNDjkBBLXTwI4UCUFdQ5xXKqNXoK4FEciw/vxf+NQ7Cb7sGUyeUtORvHIdRXQ==} + engines: {node: '>=10.0'} + peerDependencies: + tslib: '2' + dependencies: + tslib: 2.3.1 + /trim-newlines@3.0.1: resolution: {integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==} engines: {node: '>=8'} @@ -27585,7 +27761,7 @@ packages: webpack: 4.47.0(webpack-cli@3.3.12) dev: true - /url-loader@4.1.1(webpack@5.82.1): + /url-loader@4.1.1(webpack@5.95.0): resolution: {integrity: sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -27598,7 +27774,7 @@ packages: loader-utils: 2.0.4 mime-types: 2.1.35 schema-utils: 3.3.0 - webpack: 5.82.1 + webpack: 5.95.0 dev: false /url-parse@1.5.10: @@ -27868,6 +28044,13 @@ packages: glob-to-regexp: 0.4.1 graceful-fs: 4.2.11 + /watchpack@2.4.2: + resolution: {integrity: sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==} + engines: {node: '>=10.13.0'} + dependencies: + glob-to-regexp: 0.4.1 + graceful-fs: 4.2.11 + /wbuf@1.7.3: resolution: {integrity: sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==} dependencies: @@ -27967,22 +28150,25 @@ packages: webpack: 4.47.0(webpack-cli@3.3.12) dev: false - /webpack-dev-middleware@5.3.3(webpack@5.82.1): - resolution: {integrity: sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==} - engines: {node: '>= 12.13.0'} + /webpack-dev-middleware@7.4.2(webpack@5.95.0): + resolution: {integrity: sha512-xOO8n6eggxnwYpy1NlzUKpvrjfJTvae5/D6WOK0S2LSo7vjmo5gCM1DbLUmFqrMTJP+W/0YZNctm7jasWvLuBA==} + engines: {node: '>= 18.12.0'} peerDependencies: '@types/webpack': ^4 - webpack: ^4.0.0 || ^5.0.0 || ^4 || ^5 + webpack: ^5.0.0 || ^4 || ^5 peerDependenciesMeta: '@types/webpack': optional: true + webpack: + optional: true dependencies: colorette: 2.0.20 - memfs: 3.4.3 + memfs: 4.12.0 mime-types: 2.1.35 + on-finished: 2.4.1 range-parser: 1.2.1 schema-utils: 4.2.0 - webpack: 5.82.1 + webpack: 5.95.0 dev: false /webpack-dev-server@4.9.3(@types/webpack@4.41.32)(webpack@4.47.0): @@ -28093,17 +28279,19 @@ packages: - utf-8-validate dev: false - /webpack-dev-server@4.9.3(webpack@5.82.1): - resolution: {integrity: sha512-3qp/eoboZG5/6QgiZ3llN8TUzkSpYg1Ko9khWX1h40MIEUNS2mDoIa8aXsPfskER+GbTvs/IJZ1QTBBhhuetSw==} - engines: {node: '>= 12.13.0'} + /webpack-dev-server@5.1.0(webpack@5.95.0): + resolution: {integrity: sha512-aQpaN81X6tXie1FoOB7xlMfCsN19pSvRAeYUHOdFWOlhpQ/LlbfTqYwwmEDFV0h8GGuqmCmKmT+pxcUV/Nt2gQ==} + engines: {node: '>= 18.12.0'} hasBin: true peerDependencies: '@types/webpack': ^4 - webpack: ^4.37.0 || ^5.0.0 || ^4 || ^5 + webpack: ^5.0.0 || ^4 || ^5 webpack-cli: '*' peerDependenciesMeta: '@types/webpack': optional: true + webpack: + optional: true webpack-cli: optional: true dependencies: @@ -28114,7 +28302,7 @@ packages: '@types/serve-index': 1.9.4 '@types/serve-static': 1.15.5 '@types/sockjs': 0.3.36 - '@types/ws': 8.5.5 + '@types/ws': 8.5.12 ansi-html-community: 0.0.8 anymatch: 3.1.3 bonjour-service: 1.2.1 @@ -28122,23 +28310,22 @@ packages: colorette: 2.0.20 compression: 1.7.4 connect-history-api-fallback: 2.0.0 - default-gateway: 6.0.3 express: 4.20.0 graceful-fs: 4.2.11 html-entities: 2.5.2 http-proxy-middleware: 2.0.6 ipaddr.js: 2.1.0 - open: 8.4.2 - p-retry: 4.6.2 - rimraf: 3.0.2 + launch-editor: 2.9.1 + open: 10.1.0 + p-retry: 6.2.0 schema-utils: 4.2.0 selfsigned: 2.4.1 serve-index: 1.9.1 sockjs: 0.3.24 spdy: 4.0.2 - webpack: 5.82.1 - webpack-dev-middleware: 5.3.3(webpack@5.82.1) - ws: 8.14.2 + webpack: 5.95.0 + webpack-dev-middleware: 7.4.2(webpack@5.95.0) + ws: 8.18.0 transitivePeerDependencies: - bufferutil - debug @@ -28232,8 +28419,8 @@ packages: webpack-cli: 3.3.12(webpack@4.47.0) webpack-sources: 1.4.3 - /webpack@5.82.1: - resolution: {integrity: sha512-C6uiGQJ+Gt4RyHXXYt+v9f+SN1v83x68URwgxNQ98cvH8kxiuywWGP4XeNZ1paOzZ63aY3cTciCEQJNFUljlLw==} + /webpack@5.95.0: + resolution: {integrity: sha512-2t3XstrKULz41MNMBF+cJ97TyHdyQ8HCt//pqErqDvNjU9YQBnZxIHa11VXsi7F3mb5/aO2tuDxdeTPdU7xu9Q==} engines: {node: '>=10.13.0'} hasBin: true peerDependencies: @@ -28242,16 +28429,15 @@ packages: webpack-cli: optional: true dependencies: - '@types/eslint-scope': 3.7.7 '@types/estree': 1.0.5 '@webassemblyjs/ast': 1.12.1 '@webassemblyjs/wasm-edit': 1.12.1 '@webassemblyjs/wasm-parser': 1.12.1 acorn: 8.11.3 - acorn-import-assertions: 1.9.0(acorn@8.11.3) + acorn-import-attributes: 1.9.5(acorn@8.11.3) browserslist: 4.23.0 chrome-trace-event: 1.0.3 - enhanced-resolve: 5.16.0 + enhanced-resolve: 5.17.1 es-module-lexer: 1.4.1 eslint-scope: 5.1.1 events: 3.3.0 @@ -28263,8 +28449,8 @@ packages: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.10(webpack@5.82.1) - watchpack: 2.4.0 + terser-webpack-plugin: 5.3.10(webpack@5.95.0) + watchpack: 2.4.2 webpack-sources: 3.2.3 transitivePeerDependencies: - '@swc/core' @@ -28527,6 +28713,19 @@ packages: utf-8-validate: optional: true + /ws@8.18.0: + resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: false + /xdg-basedir@4.0.0: resolution: {integrity: sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==} engines: {node: '>=8'} diff --git a/common/config/subspaces/default/repo-state.json b/common/config/subspaces/default/repo-state.json index 280c27619e0..8d070ffc812 100644 --- a/common/config/subspaces/default/repo-state.json +++ b/common/config/subspaces/default/repo-state.json @@ -1,5 +1,5 @@ // DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush. { - "pnpmShrinkwrapHash": "dbebe82d2976cf43b9db7a2924060ce5f5acf877", + "pnpmShrinkwrapHash": "0c6b3b92849c042aeab9c7f8751d9698d6accb04", "preferredVersionsHash": "ce857ea0536b894ec8f346aaea08cfd85a5af648" } diff --git a/heft-plugins/heft-dev-cert-plugin/package.json b/heft-plugins/heft-dev-cert-plugin/package.json index 42cff491caa..6ffe2bfc758 100644 --- a/heft-plugins/heft-dev-cert-plugin/package.json +++ b/heft-plugins/heft-dev-cert-plugin/package.json @@ -25,7 +25,6 @@ "@microsoft/api-extractor": "workspace:*", "local-node-rig": "workspace:*", "@rushstack/heft": "workspace:*", - "eslint": "~8.57.0", - "webpack": "~5.82.1" + "eslint": "~8.57.0" } } diff --git a/heft-plugins/heft-webpack5-plugin/package.json b/heft-plugins/heft-webpack5-plugin/package.json index ae3ecf08de5..82a11f563da 100644 --- a/heft-plugins/heft-webpack5-plugin/package.json +++ b/heft-plugins/heft-webpack5-plugin/package.json @@ -19,7 +19,7 @@ }, "peerDependencies": { "@rushstack/heft": "^0.68.1", - "webpack": "~5.82.1" + "webpack": "^5.82.1" }, "dependencies": { "@rushstack/debug-certificate-manager": "workspace:*", @@ -27,13 +27,13 @@ "@types/tapable": "1.0.6", "tapable": "1.1.3", "watchpack": "2.4.0", - "webpack-dev-server": "~4.9.3" + "webpack-dev-server": "^5.1.0" }, "devDependencies": { "@rushstack/heft": "workspace:*", "@rushstack/terminal": "workspace:*", "@types/watchpack": "2.4.0", - "webpack": "~5.82.1", + "webpack": "~5.95.0", "local-node-rig": "workspace:*" } } diff --git a/heft-plugins/heft-webpack5-plugin/src/DeferredWatchFileSystem.ts b/heft-plugins/heft-webpack5-plugin/src/DeferredWatchFileSystem.ts index 1d8a567acbf..302e367ed9b 100644 --- a/heft-plugins/heft-webpack5-plugin/src/DeferredWatchFileSystem.ts +++ b/heft-plugins/heft-webpack5-plugin/src/DeferredWatchFileSystem.ts @@ -2,10 +2,10 @@ // See LICENSE in the project root for license information. import Watchpack, { type WatchOptions } from 'watchpack'; -import type { Compiler, WebpackPluginInstance } from 'webpack'; +import type { Compiler, WebpackPluginInstance, InputFileSystem } from 'webpack'; -export type InputFileSystem = Compiler['inputFileSystem']; -export type WatchFileSystem = Compiler['watchFileSystem']; +export type { InputFileSystem }; +export type WatchFileSystem = NonNullable; export type WatchCallback = Parameters[5]; export type WatchUndelayedCallback = Parameters[6]; export type Watcher = ReturnType; @@ -79,7 +79,7 @@ export class DeferredWatchFileSystem implements WatchFileSystem { const { fileTimeInfoEntries, contextTimeInfoEntries } = this._fetchTimeInfo(); - callback(undefined, fileTimeInfoEntries, contextTimeInfoEntries, changes, removals); + callback(null, fileTimeInfoEntries, contextTimeInfoEntries, changes, removals); changes.clear(); removals.clear(); @@ -204,8 +204,13 @@ export class OverrideNodeWatchFSPlugin implements WebpackPluginInstance { } public apply(compiler: Compiler): void { + const { inputFileSystem } = compiler; + if (!inputFileSystem) { + throw new Error(`compiler.inputFileSystem is not defined`); + } + const watchFileSystem: DeferredWatchFileSystem = new DeferredWatchFileSystem( - compiler.inputFileSystem, + inputFileSystem, this._onChange ); this.fileSystems.add(watchFileSystem); diff --git a/heft-plugins/heft-webpack5-plugin/src/Webpack5Plugin.ts b/heft-plugins/heft-webpack5-plugin/src/Webpack5Plugin.ts index 4a478b2ed07..eb9d8ad7de8 100644 --- a/heft-plugins/heft-webpack5-plugin/src/Webpack5Plugin.ts +++ b/heft-plugins/heft-webpack5-plugin/src/Webpack5Plugin.ts @@ -334,15 +334,18 @@ export default class Webpack5Plugin implements IHeftTaskPlugin { - if (name === WEBPACK_DEV_MIDDLEWARE_PACKAGE_NAME && type === 'error') { - const error: Error | undefined = args[0]; - if (error) { - taskSession.logger.emitError(error); + compiler.hooks.infrastructureLog.tap( + PLUGIN_NAME, + (name: string, type: string, args: unknown[] | undefined) => { + if (name === WEBPACK_DEV_MIDDLEWARE_PACKAGE_NAME && type === 'error') { + const error: Error | undefined = args?.[0] as Error | undefined; + if (error) { + taskSession.logger.emitError(error); + } } + return true; } - return true; - }); + ); // The webpack-dev-server package has a design flaw, where merely loading its package will set the // WEBPACK_DEV_SERVER environment variable -- even if no APIs are accessed. This environment variable diff --git a/libraries/package-extractor/package.json b/libraries/package-extractor/package.json index 277f563354b..67d561cd59e 100644 --- a/libraries/package-extractor/package.json +++ b/libraries/package-extractor/package.json @@ -35,7 +35,7 @@ "@types/minimatch": "3.0.5", "@types/npm-packlist": "~1.1.1", "eslint": "~8.57.0", - "webpack": "~5.82.1", + "webpack": "~5.95.0", "@types/semver": "7.5.0" } } diff --git a/libraries/rush-lib/package.json b/libraries/rush-lib/package.json index 8f3a9dc346f..45c5fa15bff 100644 --- a/libraries/rush-lib/package.json +++ b/libraries/rush-lib/package.json @@ -86,7 +86,7 @@ "@types/tar": "6.1.6", "@types/uuid": "~8.3.4", "@types/webpack-env": "1.18.0", - "webpack": "~5.82.1" + "webpack": "~5.95.0" }, "publishOnlyDependencies": { "@rushstack/rush-amazon-s3-build-cache-plugin": "workspace:*", diff --git a/libraries/rush-lib/webpack.config.js b/libraries/rush-lib/webpack.config.js index bc085355380..69dab7281f7 100644 --- a/libraries/rush-lib/webpack.config.js +++ b/libraries/rush-lib/webpack.config.js @@ -82,7 +82,10 @@ module.exports = () => { }, [ new DeepImportsPlugin({ - path: `${__dirname}/temp/rush-lib-manifest.json`, + // A manifest will be produced for each entry point, so since this compilation has multiple entry points, + // it needs to specify a template for the manifest filename. + // Otherwise webpack will throw an error about multiple writes to the same manifest file. + path: `${__dirname}/temp/build/webpack-dll/[name].json`, inFolderName: 'lib-esnext', outFolderName: 'lib', pathsToIgnore: ['utilities/prompts/SearchListPrompt.js'], diff --git a/libraries/rush-sdk/package.json b/libraries/rush-sdk/package.json index 685ae0cdf4e..22fdf41ab61 100644 --- a/libraries/rush-sdk/package.json +++ b/libraries/rush-sdk/package.json @@ -54,6 +54,6 @@ "@rushstack/webpack-preserve-dynamic-require-plugin": "workspace:*", "@types/semver": "7.5.0", "@types/webpack-env": "1.18.0", - "webpack": "~5.82.1" + "webpack": "~5.95.0" } } diff --git a/libraries/rush-sdk/webpack.config.js b/libraries/rush-sdk/webpack.config.js index b410226d1c7..b86d582f7a8 100644 --- a/libraries/rush-sdk/webpack.config.js +++ b/libraries/rush-sdk/webpack.config.js @@ -17,6 +17,7 @@ module.exports = () => { mode: 'development', // So the output isn't minified devtool: 'source-map', entry: { + // Using CommonJS due to access of module.parent index: `${__dirname}/lib-commonjs/index.js`, loader: `${__dirname}/lib-commonjs/loader.js` }, @@ -28,6 +29,17 @@ module.exports = () => { type: 'commonjs2' } }, + optimization: { + flagIncludedChunks: true, + concatenateModules: true, + providedExports: true, + usedExports: true, + sideEffects: true, + removeAvailableModules: true, + minimize: false, + realContentHash: true, + innerGraph: true + }, target: 'node', plugins: [new PreserveDynamicRequireWebpackPlugin()], externals: [ diff --git a/rigs/heft-web-rig/package.json b/rigs/heft-web-rig/package.json index 09017117976..cdc72e51ecd 100644 --- a/rigs/heft-web-rig/package.json +++ b/rigs/heft-web-rig/package.json @@ -43,7 +43,7 @@ "url-loader": "~4.1.1", "webpack-bundle-analyzer": "~4.5.0", "webpack-merge": "~5.8.0", - "webpack": "~5.82.1" + "webpack": "~5.95.0" }, "devDependencies": { "@rushstack/heft": "workspace:*" diff --git a/vscode-extensions/rush-vscode-command-webview/package.json b/vscode-extensions/rush-vscode-command-webview/package.json index f3680edf824..8eff7eedfc5 100644 --- a/vscode-extensions/rush-vscode-command-webview/package.json +++ b/vscode-extensions/rush-vscode-command-webview/package.json @@ -40,6 +40,6 @@ "eslint": "~8.57.0", "html-webpack-plugin": "~5.5.0", "webpack-bundle-analyzer": "~4.5.0", - "webpack": "~5.82.1" + "webpack": "~5.95.0" } } diff --git a/webpack/hashed-folder-copy-plugin/package.json b/webpack/hashed-folder-copy-plugin/package.json index e2e70f81c41..d5ad65ea825 100644 --- a/webpack/hashed-folder-copy-plugin/package.json +++ b/webpack/hashed-folder-copy-plugin/package.json @@ -26,7 +26,7 @@ "@rushstack/heft": "workspace:*", "@types/estree": "1.0.5", "local-node-rig": "workspace:*", - "memfs": "3.4.3", - "webpack": "~5.82.1" + "memfs": "4.12.0", + "webpack": "~5.95.0" } } diff --git a/webpack/hashed-folder-copy-plugin/src/HashedFolderCopyPlugin.ts b/webpack/hashed-folder-copy-plugin/src/HashedFolderCopyPlugin.ts index 7652f61f435..a4a8e7d89e5 100644 --- a/webpack/hashed-folder-copy-plugin/src/HashedFolderCopyPlugin.ts +++ b/webpack/hashed-folder-copy-plugin/src/HashedFolderCopyPlugin.ts @@ -57,16 +57,17 @@ export class HashedFolderCopyPlugin implements webpack.WebpackPluginInstance { PLUGIN_NAME, (compilation: webpack.Compilation, { normalModuleFactory }) => { compilation.hooks.finishModules.tapPromise(PLUGIN_NAME, async () => { - const inputFileSystem: webpack.Compiler['inputFileSystem'] = compiler.inputFileSystem; + const { inputFileSystem } = compiler; + const notImplementedFunction: () => never = () => { throw new Error('Not implemented'); }; const globFs: glob.FileSystemAdapter = { - lstat: inputFileSystem.lstat?.bind(inputFileSystem) ?? notImplementedFunction, - stat: inputFileSystem.stat?.bind(inputFileSystem) ?? notImplementedFunction, + lstat: inputFileSystem?.lstat?.bind(inputFileSystem) ?? notImplementedFunction, + stat: inputFileSystem?.stat?.bind(inputFileSystem) ?? notImplementedFunction, lstatSync: notImplementedFunction, statSync: notImplementedFunction, - readdir: inputFileSystem.readdir?.bind(inputFileSystem) ?? notImplementedFunction, + readdir: inputFileSystem?.readdir?.bind(inputFileSystem) ?? notImplementedFunction, readdirSync: notImplementedFunction } as unknown as glob.FileSystemAdapter; // The Webpack typings are wrong on `readdir` diff --git a/webpack/hashed-folder-copy-plugin/src/HashedFolderDependency.ts b/webpack/hashed-folder-copy-plugin/src/HashedFolderDependency.ts index 2967847825a..7180a65cb70 100644 --- a/webpack/hashed-folder-copy-plugin/src/HashedFolderDependency.ts +++ b/webpack/hashed-folder-copy-plugin/src/HashedFolderDependency.ts @@ -283,9 +283,10 @@ function _getHashedFolderDependencyForWebpackInstance(webpack: typeof import('we ); pathPrefix = path.posix.join(pathPrefix, '/'); // Ensure trailing slash - if (!parentModule.buildInfo.assets) { - parentModule.buildInfo.assets = {}; - } + const { buildInfo = (parentModule.buildInfo = {}) } = parentModule; + + const { assets = (buildInfo.assets = {}) } = buildInfo; + const existingAssetNames: Set = new Set(Object.keys(compilation.assets)); for (const [assetPath, asset] of assetsToAdd) { const fullAssetPath: string = path.posix.join(pathPrefix, assetPath); @@ -297,7 +298,7 @@ function _getHashedFolderDependencyForWebpackInstance(webpack: typeof import('we const assetSource: webpack.sources.RawSource = new webpack.sources.RawSource(asset); compilation.emitAsset(fullAssetPath, assetSource); - parentModule.buildInfo.assets[fullAssetPath] = assetSource; + assets[fullAssetPath] = assetSource; } return `${webpack.RuntimeGlobals.publicPath} + ${JSON.stringify(pathPrefix)}`; diff --git a/webpack/hashed-folder-copy-plugin/src/test/HashedFolderCopyPlugin.test.ts b/webpack/hashed-folder-copy-plugin/src/test/HashedFolderCopyPlugin.test.ts index 4e0861173ab..d62c66e42bb 100644 --- a/webpack/hashed-folder-copy-plugin/src/test/HashedFolderCopyPlugin.test.ts +++ b/webpack/hashed-folder-copy-plugin/src/test/HashedFolderCopyPlugin.test.ts @@ -20,7 +20,7 @@ jest.mock( {} ); -import type { default as webpack, Stats } from 'webpack'; +import type { default as webpack, Stats, InputFileSystem, OutputFileSystem } from 'webpack'; import type { Volume } from 'memfs/lib/volume'; import type { FileSystem, FolderItem } from '@rushstack/node-core-library'; @@ -98,8 +98,8 @@ async function runTestAsync(inputFolderPath: string): Promise { plugins: [new HashedFolderCopyPlugin()] }); - compiler.inputFileSystem = memoryFileSystem; - compiler.outputFileSystem = memoryFileSystem; + compiler.inputFileSystem = memoryFileSystem as unknown as InputFileSystem; + compiler.outputFileSystem = memoryFileSystem as unknown as OutputFileSystem; const stats: Stats | undefined = await promisify(compiler.run.bind(compiler))(); await promisify(compiler.close.bind(compiler)); diff --git a/webpack/hashed-folder-copy-plugin/src/test/__snapshots__/HashedFolderCopyPlugin.test.ts.snap b/webpack/hashed-folder-copy-plugin/src/test/__snapshots__/HashedFolderCopyPlugin.test.ts.snap index 4ff0cdff944..c03c67c8fe0 100644 --- a/webpack/hashed-folder-copy-plugin/src/test/__snapshots__/HashedFolderCopyPlugin.test.ts.snap +++ b/webpack/hashed-folder-copy-plugin/src/test/__snapshots__/HashedFolderCopyPlugin.test.ts.snap @@ -29,13 +29,13 @@ Object { /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -47,7 +47,6 @@ Object { /******/ })(); /******/ /************************************************************************/ -var __webpack_exports__ = {}; // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. @@ -99,13 +98,13 @@ Object { /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -117,7 +116,6 @@ Object { /******/ })(); /******/ /************************************************************************/ -var __webpack_exports__ = {}; // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. @@ -141,7 +139,6 @@ exports[`HashedFolderCopyPlugin Handles the null case: Content 1`] = ` Object { "/release/main.js": "/******/ (() => { // webpackBootstrap /******/ \\"use strict\\"; -var __webpack_exports__ = {}; // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. diff --git a/webpack/preserve-dynamic-require-plugin/package.json b/webpack/preserve-dynamic-require-plugin/package.json index d81c0f09964..e0c9e9aac1c 100644 --- a/webpack/preserve-dynamic-require-plugin/package.json +++ b/webpack/preserve-dynamic-require-plugin/package.json @@ -21,7 +21,7 @@ "devDependencies": { "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*", - "webpack": "~5.82.1" + "webpack": "~5.95.0" }, "sideEffects": false } diff --git a/webpack/preserve-dynamic-require-plugin/src/__snapshots__/index.test.ts.snap b/webpack/preserve-dynamic-require-plugin/src/__snapshots__/index.test.ts.snap index f48ec7061d3..791cddaa7e4 100644 --- a/webpack/preserve-dynamic-require-plugin/src/__snapshots__/index.test.ts.snap +++ b/webpack/preserve-dynamic-require-plugin/src/__snapshots__/index.test.ts.snap @@ -3,7 +3,6 @@ exports[`PreserveDynamicRequireWebpackPlugin Preserves dynamic require usage 1`] = ` Map { "/release/main.js" => "/******/ (() => { // webpackBootstrap -var __webpack_exports__ = {}; require(process.env.SOME_PATH); /******/ })() ;", diff --git a/webpack/set-webpack-public-path-plugin/package.json b/webpack/set-webpack-public-path-plugin/package.json index 2be54345f6b..43d9b34b12c 100644 --- a/webpack/set-webpack-public-path-plugin/package.json +++ b/webpack/set-webpack-public-path-plugin/package.json @@ -30,7 +30,7 @@ "devDependencies": { "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*", - "webpack": "~5.82.1", - "memfs": "3.4.3" + "webpack": "~5.95.0", + "memfs": "4.12.0" } } diff --git a/webpack/set-webpack-public-path-plugin/src/SetPublicPathPlugin.ts b/webpack/set-webpack-public-path-plugin/src/SetPublicPathPlugin.ts index 42533989936..a06fc98e85c 100644 --- a/webpack/set-webpack-public-path-plugin/src/SetPublicPathPlugin.ts +++ b/webpack/set-webpack-public-path-plugin/src/SetPublicPathPlugin.ts @@ -137,16 +137,21 @@ export class SetPublicPathPlugin extends SetPublicPathPluginBase { useAssetName } = this._pluginOptions.scriptName as IScriptNameInternalOptions; + const { chunk } = this; + if (!chunk) { + throw new Error(`Chunk is not defined`); + } + let regexName: string; if (regexpName) { regexName = regexpName; if (regexpIsTokenized) { regexName = regexName - .replace(/\[name\]/g, Text.escapeRegExp(this.chunk.name)) - .replace(/\[hash\]/g, this.chunk.renderedHash || ''); + .replace(/\[name\]/g, Text.escapeRegExp(`${chunk.name}`)) + .replace(/\[hash\]/g, chunk.renderedHash || ''); } } else if (useAssetName) { - (this.chunk as IExtendedChunk)[SHOULD_REPLACE_ASSET_NAME_TOKEN] = true; + (chunk as IExtendedChunk)[SHOULD_REPLACE_ASSET_NAME_TOKEN] = true; regexName = ASSET_NAME_TOKEN; } else { diff --git a/webpack/set-webpack-public-path-plugin/src/test/testBase.ts b/webpack/set-webpack-public-path-plugin/src/test/testBase.ts index d2ef3ead585..2a144a1c807 100644 --- a/webpack/set-webpack-public-path-plugin/src/test/testBase.ts +++ b/webpack/set-webpack-public-path-plugin/src/test/testBase.ts @@ -4,7 +4,7 @@ jest.disableAutomock(); import { promisify } from 'util'; -import webpack, { type Stats } from 'webpack'; +import webpack, { type InputFileSystem, type OutputFileSystem, type Stats } from 'webpack'; import { Volume } from 'memfs/lib/volume'; jest.setTimeout(1e9); @@ -43,8 +43,8 @@ export function testForPlugin(pluginName: string, getPlugin: () => webpack.Webpa plugins: [getPlugin()] }); - compiler.inputFileSystem = memoryFileSystem; - compiler.outputFileSystem = memoryFileSystem; + compiler.inputFileSystem = memoryFileSystem as unknown as InputFileSystem; + compiler.outputFileSystem = memoryFileSystem as unknown as OutputFileSystem; const stats: Stats | undefined = await promisify(compiler.run.bind(compiler))(); await promisify(compiler.close.bind(compiler)); diff --git a/webpack/webpack-deep-imports-plugin/package.json b/webpack/webpack-deep-imports-plugin/package.json index 037c888d7db..9fd87ae863b 100644 --- a/webpack/webpack-deep-imports-plugin/package.json +++ b/webpack/webpack-deep-imports-plugin/package.json @@ -24,7 +24,7 @@ "devDependencies": { "local-node-rig": "workspace:*", "@rushstack/heft": "workspace:*", - "webpack": "~5.82.1" + "webpack": "~5.95.0" }, "sideEffects": false, "dependencies": { diff --git a/webpack/webpack-deep-imports-plugin/src/DeepImportsPlugin.ts b/webpack/webpack-deep-imports-plugin/src/DeepImportsPlugin.ts index 241f5f8129a..223bc40b9d9 100644 --- a/webpack/webpack-deep-imports-plugin/src/DeepImportsPlugin.ts +++ b/webpack/webpack-deep-imports-plugin/src/DeepImportsPlugin.ts @@ -129,6 +129,12 @@ export class DeepImportsPlugin extends DllPlugin { } } + const { inputFileSystem } = compiler; + if (!inputFileSystem) { + compilation.errors.push(new WebpackError(`compiler.inputFileSystem is not defined`)); + return; + } + const outputPath: string | undefined = compilation.options.output.path; if (!outputPath) { compilation.errors.push(new WebpackError(`The "output.path" option was not specified.`)); @@ -137,7 +143,7 @@ export class DeepImportsPlugin extends DllPlugin { interface ILibModuleDescriptor { libPathWithoutExtension: string; - moduleId: string | number; + moduleId: string | number | null; } const pathsToIgnoreWithoutExtension: Set = this._pathsToIgnoreWithoutExtensions; @@ -194,7 +200,7 @@ export class DeepImportsPlugin extends DllPlugin { ); return undefined; } else { - bundleJsFileBaseName = filename.substring(0, filename.length - JS_EXTENSION.length); + bundleJsFileBaseName = filename.slice(0, -JS_EXTENSION.length); } } } @@ -233,10 +239,7 @@ export class DeepImportsPlugin extends DllPlugin { let dtsFileContents: string | undefined; try { dtsFileContents = ( - await LegacyAdapters.convertCallbackToPromise( - compiler.inputFileSystem.readFile, - dtsFilePath - ) + await LegacyAdapters.convertCallbackToPromise(inputFileSystem.readFile, dtsFilePath) )?.toString(); } catch (e) { if (!FileSystem.isNotExistError(e)) { diff --git a/webpack/webpack-embedded-dependencies-plugin/package.json b/webpack/webpack-embedded-dependencies-plugin/package.json index 36c37c2db4c..18f9e8380dc 100644 --- a/webpack/webpack-embedded-dependencies-plugin/package.json +++ b/webpack/webpack-embedded-dependencies-plugin/package.json @@ -31,7 +31,7 @@ "@rushstack/webpack-plugin-utilities": "workspace:*", "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*", - "webpack": "~5.82.1", - "memfs": "3.4.3" + "webpack": "~5.95.0", + "memfs": "4.12.0" } } diff --git a/webpack/webpack-embedded-dependencies-plugin/src/EmbeddedDependenciesWebpackPlugin.ts b/webpack/webpack-embedded-dependencies-plugin/src/EmbeddedDependenciesWebpackPlugin.ts index 329b67786aa..a2d7c1b1f03 100644 --- a/webpack/webpack-embedded-dependencies-plugin/src/EmbeddedDependenciesWebpackPlugin.ts +++ b/webpack/webpack-embedded-dependencies-plugin/src/EmbeddedDependenciesWebpackPlugin.ts @@ -4,7 +4,7 @@ import path from 'path'; import { Async, Sort, LegacyAdapters, FileSystem } from '@rushstack/node-core-library'; -import type { Compiler, Compilation, WebpackPluginInstance, WebpackError } from 'webpack'; +import type { Compiler, Compilation, WebpackPluginInstance, WebpackError, InputFileSystem } from 'webpack'; import type { IPackageJson } from '@rushstack/node-core-library'; import { LICENSE_FILES_REGEXP, COPYRIGHT_REGEX } from './regexpUtils'; @@ -317,23 +317,29 @@ export default class EmbeddedDependenciesWebpackPlugin implements WebpackPluginI modulePath: string, compiler: Compiler ): Promise { - type InputFileSystemReadDirResults = Parameters< - Parameters[1] - >[1]; - - // TODO: Real fs.readdir can take an arguement ({ withFileTypes: true }) which will filter out directories for better performance - // and return a list of Dirent objects. Currently the webpack types are hand generated for fs.readdir so - // we can't use this feature yet, or we would have to cast the types of inputFileSystem.readdir. - // https://github.com/webpack/webpack/issues/16780 tracks this issue. + type InputFileSystemReadDirResults = Parameters[2]>[1]; + + const { inputFileSystem } = compiler; + if (!inputFileSystem) { + throw new Error(`Compiler.inputFileSystem is not defined`); + } + const files: InputFileSystemReadDirResults = await LegacyAdapters.convertCallbackToPromise( - compiler.inputFileSystem.readdir, - modulePath + inputFileSystem.readdir, + modulePath, + { withFileTypes: true } ); - return files - ?.map((file) => file.toString()) - .filter((file) => LICENSE_FILES_REGEXP.test(file)) - .map((file) => path.join(modulePath, file))[0]; // Grabbing the first license file if multiple are found + if (!files) { + return; + } + + for (const file of files) { + if (file.isFile() && LICENSE_FILES_REGEXP.test(file.name)) { + // Grabbing the first license file if multiple are found + return path.join(modulePath, file.name); + } + } } /** diff --git a/webpack/webpack-plugin-utilities/package.json b/webpack/webpack-plugin-utilities/package.json index 9f159c5a2de..2f5692df603 100644 --- a/webpack/webpack-plugin-utilities/package.json +++ b/webpack/webpack-plugin-utilities/package.json @@ -16,7 +16,7 @@ }, "dependencies": { "webpack-merge": "~5.8.0", - "memfs": "3.4.3" + "memfs": "4.12.0" }, "peerDependencies": { "@types/webpack": "^4.39.8", @@ -34,6 +34,6 @@ "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*", "@types/tapable": "1.0.6", - "webpack": "~5.82.1" + "webpack": "~5.95.0" } } diff --git a/webpack/webpack-plugin-utilities/src/Testing.ts b/webpack/webpack-plugin-utilities/src/Testing.ts index 9b2b3f4933c..3c4b92e4b17 100644 --- a/webpack/webpack-plugin-utilities/src/Testing.ts +++ b/webpack/webpack-plugin-utilities/src/Testing.ts @@ -6,7 +6,7 @@ import path from 'path'; import type { StatsCompilation as WebpackStatsCompilation } from 'webpack'; import webpackMerge from 'webpack-merge'; -import type { MultiStats, Stats, Configuration, Compiler, StatsError } from 'webpack'; +import type { MultiStats, Stats, Configuration, Compiler, StatsError, OutputFileSystem } from 'webpack'; /** * @public @@ -78,8 +78,11 @@ export async function getTestingWebpackCompilerAsync( const compilerOptions: Configuration = webpackMerge(_defaultWebpackConfig(entry), additionalConfig); const compiler: Compiler = webpackModule(compilerOptions); - compiler.outputFileSystem = memFs; - compiler.outputFileSystem.join = path.join.bind(path); + // The memFs Volume satisfies the interface contract, but the types aren't happy due to strict null checks + const outputFileSystem: OutputFileSystem = memFs as unknown as OutputFileSystem; + outputFileSystem.join = path.join.bind(path); + + compiler.outputFileSystem = outputFileSystem; return new Promise((resolve, reject) => { compiler.run((err, stats) => { diff --git a/webpack/webpack-workspace-resolve-plugin/package.json b/webpack/webpack-workspace-resolve-plugin/package.json index dfbcd03af12..965f82fdc6d 100644 --- a/webpack/webpack-workspace-resolve-plugin/package.json +++ b/webpack/webpack-workspace-resolve-plugin/package.json @@ -28,8 +28,8 @@ "devDependencies": { "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*", - "memfs": "3.4.3", - "webpack": "~5.82.1" + "memfs": "4.12.0", + "webpack": "~5.95.0" }, "sideEffects": false, "peerDependenciesMeta": { diff --git a/webpack/webpack-workspace-resolve-plugin/src/KnownDescriptionFilePlugin.ts b/webpack/webpack-workspace-resolve-plugin/src/KnownDescriptionFilePlugin.ts index 5cd3d3104f9..3c3eb6a5bc0 100644 --- a/webpack/webpack-workspace-resolve-plugin/src/KnownDescriptionFilePlugin.ts +++ b/webpack/webpack-workspace-resolve-plugin/src/KnownDescriptionFilePlugin.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { Resolver } from 'webpack'; +import type { InputFileSystem, Resolver } from 'webpack'; import type { IPrefixMatch } from '@rushstack/lookup-by-path'; import type { IResolveContext, WorkspaceLayoutCache } from './WorkspaceLayoutCache'; @@ -41,9 +41,11 @@ export class KnownDescriptionFilePlugin { const target: ReturnType = resolver.ensureHook(this.target); const { fileSystem } = resolver; + type JsonObjectTypes = ReturnType>; + function readDescriptionFileWithParse( descriptionFilePath: string, - callback: (err: Error | null | undefined, data?: object) => void + callback: (err: Error | null | undefined, data?: JsonObjectTypes) => void ): void { fileSystem.readFile(descriptionFilePath, (err: Error | null | undefined, data?: string | Buffer) => { if (!data?.length) { @@ -56,7 +58,7 @@ export class KnownDescriptionFilePlugin { const readDescriptionFile: ( descriptionFilePath: string, - cb: (err: Error | null | undefined, data?: object) => void + cb: (err: Error | null | undefined, data?: JsonObjectTypes) => void ) => void = fileSystem.readJson?.bind(fileSystem) ?? readDescriptionFileWithParse; resolver @@ -108,7 +110,7 @@ export class KnownDescriptionFilePlugin { obj, 'using description file: ' + descriptionFilePath + ' (relative path: ' + relativePath + ')', resolveContext, - (e: Error | undefined, result: ResolveRequest | undefined) => { + (e: Error | null | undefined, result: ResolveRequest | undefined) => { if (e) { return callback(e); } diff --git a/webpack/webpack-workspace-resolve-plugin/src/test/KnownPackageDependenciesPlugin.test.ts b/webpack/webpack-workspace-resolve-plugin/src/test/KnownPackageDependenciesPlugin.test.ts index a25f337e42c..509d01df3ad 100644 --- a/webpack/webpack-workspace-resolve-plugin/src/test/KnownPackageDependenciesPlugin.test.ts +++ b/webpack/webpack-workspace-resolve-plugin/src/test/KnownPackageDependenciesPlugin.test.ts @@ -2,7 +2,12 @@ // See LICENSE in the project root for license information. import { KnownPackageDependenciesPlugin } from '../KnownPackageDependenciesPlugin'; -import { createResolveForTests, parsedJson, type WrappedResolve } from './createResolveForTests'; +import { + createResolveForTests, + parsedJson, + type WrappedResolve, + type JsonObjectTypes +} from './createResolveForTests'; function createResolve(separator: '/' | '\\'): WrappedResolve { return createResolveForTests(separator, (cache, resolver) => { @@ -20,7 +25,7 @@ describe(KnownPackageDependenciesPlugin.name, () => { const resolver: WrappedResolve = createResolve('/'); const descriptionFilePath: string = '/workspace/b/package.json'; - const descriptionFileData: object = parsedJson[descriptionFilePath]; + const descriptionFileData: JsonObjectTypes = parsedJson[descriptionFilePath]; const descriptionFileRoot: string = '/workspace/b'; const [err1, result1] = resolver( @@ -50,7 +55,7 @@ describe(KnownPackageDependenciesPlugin.name, () => { const resolver: WrappedResolve = createResolve('\\'); const descriptionFilePath: string = '\\workspace\\b\\package.json'; - const descriptionFileData: object = parsedJson['/workspace/b/package.json']; + const descriptionFileData: JsonObjectTypes = parsedJson['/workspace/b/package.json']; const descriptionFileRoot: string = '\\workspace\\b'; const [err1, result1] = resolver( @@ -81,7 +86,7 @@ describe(KnownPackageDependenciesPlugin.name, () => { const resolver: WrappedResolve = createResolve('/'); const descriptionFilePath: string = '/workspace/b/package.json'; - const descriptionFileData: object = parsedJson[descriptionFilePath]; + const descriptionFileData: JsonObjectTypes = parsedJson[descriptionFilePath]; const descriptionFileRoot: string = '/workspace/b'; const [err1, result1] = resolver( @@ -112,7 +117,7 @@ describe(KnownPackageDependenciesPlugin.name, () => { const resolver: WrappedResolve = createResolve('/'); const descriptionFilePath: string = '/workspace/b/node_modules/c/package.json'; - const descriptionFileData: object = parsedJson[descriptionFilePath]; + const descriptionFileData: JsonObjectTypes = parsedJson[descriptionFilePath]; const descriptionFileRoot: string = '/workspace/b/node_modules/c'; const [err1, result1] = resolver( @@ -143,7 +148,7 @@ describe(KnownPackageDependenciesPlugin.name, () => { const resolver: WrappedResolve = createResolve('/'); const descriptionFilePath: string = '/workspace/b/node_modules/c/package.json'; - const descriptionFileData: object = parsedJson[descriptionFilePath]; + const descriptionFileData: JsonObjectTypes = parsedJson[descriptionFilePath]; const descriptionFileRoot: string = '/workspace/b/node_modules/c'; const [err1, result1] = resolver( @@ -182,7 +187,7 @@ describe(KnownPackageDependenciesPlugin.name, () => { const resolver: WrappedResolve = createResolve('/'); const descriptionFilePath: string = '/workspace/a/package.json'; - const descriptionFileData: object = parsedJson[descriptionFilePath]; + const descriptionFileData: JsonObjectTypes = parsedJson[descriptionFilePath]; const descriptionFileRoot: string = '/workspace/a'; const [err1, result1] = resolver( diff --git a/webpack/webpack-workspace-resolve-plugin/src/test/createResolveForTests.ts b/webpack/webpack-workspace-resolve-plugin/src/test/createResolveForTests.ts index 8aa2df19b60..2a3ea512b92 100644 --- a/webpack/webpack-workspace-resolve-plugin/src/test/createResolveForTests.ts +++ b/webpack/webpack-workspace-resolve-plugin/src/test/createResolveForTests.ts @@ -1,8 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. +import type { PathOrFileDescriptor } from 'node:fs'; + import { Volume } from 'memfs/lib/volume'; -import type { Compiler, Resolver } from 'webpack'; +import type { Resolver, InputFileSystem } from 'webpack'; + import type { IPrefixMatch } from '@rushstack/lookup-by-path'; import { WorkspaceLayoutCache, type IResolveContext } from '../WorkspaceLayoutCache'; @@ -16,7 +19,8 @@ export type WrappedResolve = ( // eslint-disable-next-line @rushstack/no-new-null ) => [Error | false | null | undefined, ResolveRequest | undefined]; -export const parsedJson: Record = { +export type JsonObjectTypes = ReturnType>; +export const parsedJson: Record = { '/workspace/a/package.json': { name: 'a' }, '/workspace/a/lib-esm/package.json': { type: 'module' }, '/workspace/b/package.json': { name: 'b', dependencies: { a: 'workspace:*' }, bundledDepencies: ['c'] }, @@ -54,7 +58,7 @@ export function createResolveForTests( resolverPathSeparator: separator }); - const platformJson: Record = Object.fromEntries( + const platformJson: Record = Object.fromEntries( Object.entries(parsedJson).map(([key, value]) => [cache.normalizeToPlatform?.(key) ?? key, value]) ); @@ -63,11 +67,15 @@ export function createResolveForTests( ); fileSystem.fromJSON(serializedJson); - (fileSystem as Compiler['inputFileSystem']).readJson = ( - path: string, - cb: (err: Error | null | undefined, data?: object) => void + (fileSystem as InputFileSystem).readJson = ( + pathOrFileDescriptor: PathOrFileDescriptor, + cb: (err: Error | null, data?: JsonObjectTypes) => void ) => { - const parsed: object | undefined = platformJson[path]; + if (typeof pathOrFileDescriptor === 'number') { + return cb(new Error(`Expected string path, got ${pathOrFileDescriptor}`)); + } + const path: string = pathOrFileDescriptor.toString(); + const parsed: JsonObjectTypes | undefined = platformJson[path]; if (parsed) { return cb(null, parsed); } diff --git a/webpack/webpack5-load-themed-styles-loader/package.json b/webpack/webpack5-load-themed-styles-loader/package.json index 3f9b1c259d7..1fddff8af76 100644 --- a/webpack/webpack5-load-themed-styles-loader/package.json +++ b/webpack/webpack5-load-themed-styles-loader/package.json @@ -29,8 +29,8 @@ "local-node-rig": "workspace:*", "@rushstack/heft": "workspace:*", "@rushstack/node-core-library": "workspace:*", - "webpack": "~5.82.1", - "memfs": "3.4.3", + "webpack": "~5.95.0", + "memfs": "4.12.0", "css-loader": "~6.6.0" } } diff --git a/webpack/webpack5-load-themed-styles-loader/src/test/__snapshots__/LoadThemedStylesLoader.test.ts.snap b/webpack/webpack5-load-themed-styles-loader/src/test/__snapshots__/LoadThemedStylesLoader.test.ts.snap index 8974ceebe53..7b6827f9eb5 100644 --- a/webpack/webpack5-load-themed-styles-loader/src/test/__snapshots__/LoadThemedStylesLoader.test.ts.snap +++ b/webpack/webpack5-load-themed-styles-loader/src/test/__snapshots__/LoadThemedStylesLoader.test.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`webpack5-load-themed-style-loader generates desired loader output snapshot: LoaderContent 1`] = ` -"var content = require(\\"!!../../../../../common/temp/default/node_modules/.pnpm/css-loader@6.6.0_webpack@5.82.1/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./MockStyle1.css\\"); +"var content = require(\\"!!../../../../../common/temp/default/node_modules/.pnpm/css-loader@6.6.0_webpack@5.95.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./MockStyle1.css\\"); var loader = require(\\"../../../lib/test/testData/LoadThemedStylesMock\\"); if(typeof content === \\"string\\") content = [[module.id, content]]; @@ -13,7 +13,7 @@ if(content.locals) module.exports = content.locals;" `; exports[`webpack5-load-themed-style-loader generates desired output for esModule option set to "true" as a snapshot: LoaderContent ESModule 1`] = ` -"import content from \\"!!../../../../../common/temp/default/node_modules/.pnpm/css-loader@6.6.0_webpack@5.82.1/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./MockStyle1.css\\"; +"import content from \\"!!../../../../../common/temp/default/node_modules/.pnpm/css-loader@6.6.0_webpack@5.95.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./MockStyle1.css\\"; import { loadStyles } from \\"../../../lib/test/testData/LoadThemedStylesMock\\"; if(typeof content === \\"string\\") content = [[module.id, content]]; diff --git a/webpack/webpack5-load-themed-styles-loader/src/test/testData/getCompiler.ts b/webpack/webpack5-load-themed-styles-loader/src/test/testData/getCompiler.ts index 51b2d133373..ab10030aeb8 100644 --- a/webpack/webpack5-load-themed-styles-loader/src/test/testData/getCompiler.ts +++ b/webpack/webpack5-load-themed-styles-loader/src/test/testData/getCompiler.ts @@ -3,9 +3,9 @@ import path from 'path'; import webpack from 'webpack'; -import type { Compiler, Stats } from 'webpack'; -import { createFsFromVolume, Volume } from 'memfs'; -import type { ILoadThemedStylesLoaderOptions } from '../..'; +import type { Compiler, OutputFileSystem, Stats } from 'webpack'; +import { Volume } from 'memfs'; +import type { ILoadThemedStylesLoaderOptions } from '../../index.js'; // webpack5-loader-load-themed-styles/lib/LoadThemedStylesLoader.js const LOADER_PATH: string = path.resolve(__dirname, '../../index.js'); @@ -43,7 +43,7 @@ export default function getCompiler( } }); - compiler.outputFileSystem = createFsFromVolume(new Volume()); + compiler.outputFileSystem = new Volume() as unknown as OutputFileSystem; compiler.outputFileSystem.join = path.join.bind(path); return new Promise((resolve, reject) => { diff --git a/webpack/webpack5-localization-plugin/package.json b/webpack/webpack5-localization-plugin/package.json index a9834bfae55..929d4fe54ea 100644 --- a/webpack/webpack5-localization-plugin/package.json +++ b/webpack/webpack5-localization-plugin/package.json @@ -27,8 +27,8 @@ "devDependencies": { "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*", - "memfs": "3.4.3", - "webpack": "~5.82.1" + "memfs": "4.12.0", + "webpack": "~5.95.0" }, "peerDependenciesMeta": { "@types/node": { diff --git a/webpack/webpack5-localization-plugin/src/LocalizationPlugin.ts b/webpack/webpack5-localization-plugin/src/LocalizationPlugin.ts index a7856396c68..d51c2ce7f12 100644 --- a/webpack/webpack5-localization-plugin/src/LocalizationPlugin.ts +++ b/webpack/webpack5-localization-plugin/src/LocalizationPlugin.ts @@ -148,11 +148,11 @@ export class LocalizationPlugin implements WebpackPluginInstance { GetChunkFilenameRuntimeModule.prototype.generate; GetChunkFilenameRuntimeModule.prototype.generate = function ( this: runtime.GetChunkFilenameRuntimeModule - ) { + ): string | null { // `originalGenerate` will invoke `getAssetPath` to produce the async URL generator // Need to know the identity of the containing chunk to correctly produce the asset path expression chunkWithAsyncURLGenerator = this.chunk; - const result: string = originalGenerate.call(this); + const result: string | null = originalGenerate.call(this); // Unset after the call finishes because we are no longer generating async URL generators chunkWithAsyncURLGenerator = undefined; return result; diff --git a/webpack/webpack5-localization-plugin/src/test/MemFSPlugin.ts b/webpack/webpack5-localization-plugin/src/test/MemFSPlugin.ts index d96ddc8de84..5cc4e0508d8 100644 --- a/webpack/webpack5-localization-plugin/src/test/MemFSPlugin.ts +++ b/webpack/webpack5-localization-plugin/src/test/MemFSPlugin.ts @@ -1,9 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { Compiler, WebpackPluginInstance } from 'webpack'; +import type { Compiler, InputFileSystem, OutputFileSystem, WebpackPluginInstance } from 'webpack'; import type { Volume } from 'memfs/lib/volume'; +type IntermediateFileSystem = Compiler['intermediateFileSystem']; + const PLUGIN_NAME: 'MemFSPlugin' = 'MemFSPlugin'; export class MemFSPlugin implements WebpackPluginInstance { private readonly _memfs: Volume; @@ -13,10 +15,13 @@ export class MemFSPlugin implements WebpackPluginInstance { } public apply(compiler: Compiler): void { - const nodeFileSystem: typeof compiler.inputFileSystem = compiler.inputFileSystem; - compiler.inputFileSystem = this._memfs; - compiler.intermediateFileSystem = this._memfs; - compiler.outputFileSystem = this._memfs; + const nodeFileSystem: InputFileSystem | null = compiler.inputFileSystem; + if (!nodeFileSystem) { + throw new Error('MemFSPlugin requires compiler.inputFileSystem to be defined'); + } + compiler.inputFileSystem = this._memfs as unknown as InputFileSystem; + compiler.intermediateFileSystem = this._memfs as unknown as IntermediateFileSystem; + compiler.outputFileSystem = this._memfs as unknown as OutputFileSystem; compiler.resolverFactory.hooks.resolveOptions.for('loader').tap( { stage: 10, diff --git a/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedAsyncDynamic.test.ts.snap b/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedAsyncDynamic.test.ts.snap index aa67d58473c..018c8cb1115 100644 --- a/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedAsyncDynamic.test.ts.snap +++ b/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedAsyncDynamic.test.ts.snap @@ -2,12 +2,12 @@ exports[`LocalizationPlugin Handles async localized chunks with a runtime locale expression (minified): Content 1`] = ` Object { - "/release/chunks/async1-LOCALE1-a9bbc5b66cc5c0154abc.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./a/async1.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.B,n.P)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"B\\":\\"blah\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"P\\":\\"something else\\"}')}}]);", - "/release/chunks/async1-LOCALE2-a9bbc5b66cc5c0154abc.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./a/async1.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.B,n.P)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"B\\":\\"baz\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"P\\":\\"some random translation\\"}')}}]);", - "/release/chunks/async2-LOCALE1-c9dc83c58103e3bb3a8a.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./a/async2.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.B+n.P)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"B\\":\\"blah\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"P\\":\\"something else\\"}')}}]);", - "/release/chunks/async2-LOCALE2-c9dc83c58103e3bb3a8a.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./a/async2.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.B+n.P)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"B\\":\\"baz\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"P\\":\\"some random translation\\"}')}}]);", - "/release/mainSingleChunk-none-f1492d038b87dc96a680.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+self.__locale+\\"-a9bbc5b66cc5c0154abc.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName(\\"script\\"),s=0;s{i.onerror=i.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={315:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,l]=t,s=0;if(i.some((r=>0!==e[r]))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);l&&l(o)}for(r&&r(t);s{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{515:\\"async1\\",989:\\"async2\\"}[e]+\\"-\\"+self.__locale+\\"-\\"+{515:\\"a9bbc5b66cc5c0154abc\\",989:\\"c9dc83c58103e3bb3a8a\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var l=document.getElementsByTagName(\\"script\\"),s=0;s{i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&!e;)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={903:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,l]=t,s=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);l&&l(n)}for(r&&r(t);s{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.t,n.S)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"t\\":\\"blah\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"S\\":\\"something else\\"}')}}]);", + "/release/chunks/async1-LOCALE2-2541dae452be32eb2f84.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[230],{\\"./a/async1.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.t,n.S)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"t\\":\\"baz\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"S\\":\\"some random translation\\"}')}}]);", + "/release/chunks/async2-LOCALE1-0ebe0de081c0cabfb2ba.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./a/async2.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.t+n.S)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"t\\":\\"blah\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"S\\":\\"something else\\"}')}}]);", + "/release/chunks/async2-LOCALE2-0ebe0de081c0cabfb2ba.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./a/async2.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.t+n.S)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"t\\":\\"baz\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"S\\":\\"some random translation\\"}')}}]);", + "/release/mainSingleChunk-none-6beb5feb0c56936cef12.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+self.__locale+\\"-2541dae452be32eb2f84.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,l;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),c=0;c{i.onerror=i.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={331:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),l=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",l.name=\\"ChunkLoadError\\",l.type=a,l.request=i,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,a,[i,l,s]=t,c=0;if(i.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);s&&s(o)}for(r&&r(t);c{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{230:\\"async1\\",421:\\"async2\\"}[e]+\\"-\\"+self.__locale+\\"-\\"+{230:\\"2541dae452be32eb2f84\\",421:\\"0ebe0de081c0cabfb2ba\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(d);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={580:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,s]=t,l=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);s&&s(n)}for(r&&r(t);l { @@ -46,27 +46,27 @@ Object { __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .B, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .P); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .t, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .S); /***/ }), /***/ \\"./a/strings1.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"B\\":\\"blah\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"t\\":\\"blah\\"}'); /***/ }), /***/ \\"./a/strings2.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"P\\":\\"something else\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"S\\":\\"something else\\"}'); /***/ }) }]);", - "/release/chunks/async1-LOCALE2-268cfe557834794b247b.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[515],{ + "/release/chunks/async1-LOCALE2-5998804d6f516289023d.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[230],{ /***/ \\"./a/async1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -74,27 +74,27 @@ module.exports = JSON.parse('{\\"P\\":\\"something else\\"}'); __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .B, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .P); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .t, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .S); /***/ }), /***/ \\"./a/strings1.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"B\\":\\"baz\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"t\\":\\"baz\\"}'); /***/ }), /***/ \\"./a/strings2.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"S\\":\\"some random translation\\"}'); /***/ }) }]);", - "/release/chunks/async2-LOCALE1-c8dd89f429d58ff2c174.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/chunks/async2-LOCALE1-795c03eb7d09694f4c50.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./a/async2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -102,27 +102,27 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .B + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .P); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .t + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .S); /***/ }), /***/ \\"./a/strings1.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"B\\":\\"blah\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"t\\":\\"blah\\"}'); /***/ }), /***/ \\"./a/strings2.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"P\\":\\"something else\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"S\\":\\"something else\\"}'); /***/ }) }]);", - "/release/chunks/async2-LOCALE2-c8dd89f429d58ff2c174.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/chunks/async2-LOCALE2-795c03eb7d09694f4c50.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./a/async2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -130,26 +130,26 @@ module.exports = JSON.parse('{\\"P\\":\\"something else\\"}'); __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .B + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .P); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .t + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .S); /***/ }), /***/ \\"./a/strings1.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"B\\":\\"baz\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"t\\":\\"baz\\"}'); /***/ }), /***/ \\"./a/strings2.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"S\\":\\"some random translation\\"}'); /***/ }) }]);", - "/release/mainSingleChunk-none-a643b96683c5fe603a4a.js": "/******/ (() => { // webpackBootstrap + "/release/mainSingleChunk-none-80be958aa1de524ac999.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -198,7 +198,7 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + self.__locale + \\"-\\" + \\"268cfe557834794b247b\\" + \\".js\\"; +/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + self.__locale + \\"-\\" + \\"5998804d6f516289023d\\" + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -244,6 +244,7 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -281,13 +282,13 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -306,7 +307,7 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 315: 0 +/******/ 331: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -390,10 +391,10 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); /******/ })() ;", - "/release/mainTwoChunks-none-a66c8e0f054e8766319c.js": "/******/ (() => { // webpackBootstrap + "/release/mainTwoChunks-none-19466a4656ab45c400f3.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -442,7 +443,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-\\" + self.__locale + \\"-\\" + {\\"515\\":\\"268cfe557834794b247b\\",\\"989\\":\\"c8dd89f429d58ff2c174\\"}[chunkId] + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"230\\":\\"async1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-\\" + self.__locale + \\"-\\" + {\\"230\\":\\"5998804d6f516289023d\\",\\"421\\":\\"795c03eb7d09694f4c50\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -488,6 +489,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -525,13 +527,13 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -550,7 +552,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 903: 0 +/******/ 580: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -634,7 +636,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); /******/ })() ;", } @@ -648,14 +650,14 @@ Object { "namedChunkGroups": Object { "async1": Object { "localizedAssets": Object { - "LOCALE1": "chunks/async1-LOCALE1-268cfe557834794b247b.js", - "LOCALE2": "chunks/async1-LOCALE2-268cfe557834794b247b.js", + "LOCALE1": "chunks/async1-LOCALE1-5998804d6f516289023d.js", + "LOCALE2": "chunks/async1-LOCALE2-5998804d6f516289023d.js", }, }, "async2": Object { "localizedAssets": Object { - "LOCALE1": "chunks/async2-LOCALE1-c8dd89f429d58ff2c174.js", - "LOCALE2": "chunks/async2-LOCALE2-c8dd89f429d58ff2c174.js", + "LOCALE1": "chunks/async2-LOCALE1-795c03eb7d09694f4c50.js", + "LOCALE2": "chunks/async2-LOCALE2-795c03eb7d09694f4c50.js", }, }, }, diff --git a/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedAsyncDynamicFormatWithNoLocaleFallback.test.ts.snap b/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedAsyncDynamicFormatWithNoLocaleFallback.test.ts.snap index 57478dfe122..a16e1b8fe74 100644 --- a/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedAsyncDynamicFormatWithNoLocaleFallback.test.ts.snap +++ b/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedAsyncDynamicFormatWithNoLocaleFallback.test.ts.snap @@ -2,23 +2,23 @@ exports[`LocalizationPlugin Handles async localized chunks with a runtime locale expression (minified): Assets 1`] = ` Object { - "chunks/async1-LOCALE1/-a9bbc5b66cc5c0154abc.js": SizeOnlySource { + "chunks/async1-LOCALE1/-2541dae452be32eb2f84.js": SizeOnlySource { "_size": 326, }, - "chunks/async1-LOCALE2/-a9bbc5b66cc5c0154abc.js": SizeOnlySource { + "chunks/async1-LOCALE2/-2541dae452be32eb2f84.js": SizeOnlySource { "_size": 334, }, - "chunks/async2-LOCALE1/-c9dc83c58103e3bb3a8a.js": SizeOnlySource { + "chunks/async2-LOCALE1/-0ebe0de081c0cabfb2ba.js": SizeOnlySource { "_size": 326, }, - "chunks/async2-LOCALE2/-c9dc83c58103e3bb3a8a.js": SizeOnlySource { + "chunks/async2-LOCALE2/-0ebe0de081c0cabfb2ba.js": SizeOnlySource { "_size": 334, }, - "mainSingleChunk--ed7a18b371ea607d2769.js": SizeOnlySource { - "_size": 2458, + "mainSingleChunk--a8d7fba1f43d5695a68a.js": SizeOnlySource { + "_size": 2533, }, - "mainTwoChunks--7164702297c0d13bb6f8.js": SizeOnlySource { - "_size": 2569, + "mainTwoChunks--96b17c3434c23d7295c7.js": SizeOnlySource { + "_size": 2644, }, "other--78916591a7145a0e87d7.js": SizeOnlySource { "_size": 27, @@ -28,12 +28,12 @@ Object { exports[`LocalizationPlugin Handles async localized chunks with a runtime locale expression (minified): Content 1`] = ` Object { - "/release/chunks/async1-LOCALE1/-a9bbc5b66cc5c0154abc.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./a/async1.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.B,n.P)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"B\\":\\"blah\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"P\\":\\"something else\\"}')}}]);", - "/release/chunks/async1-LOCALE2/-a9bbc5b66cc5c0154abc.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./a/async1.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.B,n.P)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"B\\":\\"baz\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"P\\":\\"some random translation\\"}')}}]);", - "/release/chunks/async2-LOCALE1/-c9dc83c58103e3bb3a8a.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./a/async2.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.B+n.P)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"B\\":\\"blah\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"P\\":\\"something else\\"}')}}]);", - "/release/chunks/async2-LOCALE2/-c9dc83c58103e3bb3a8a.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./a/async2.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.B+n.P)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"B\\":\\"baz\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"P\\":\\"some random translation\\"}')}}]);", - "/release/mainSingleChunk--ed7a18b371ea607d2769.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+self.__locale+\\"/-a9bbc5b66cc5c0154abc.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName(\\"script\\"),s=0;s{i.onerror=i.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={315:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,l]=t,s=0;if(i.some((r=>0!==e[r]))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);l&&l(o)}for(r&&r(t);s{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{515:\\"async1\\",989:\\"async2\\"}[e]+\\"-\\"+self.__locale+\\"/-\\"+{515:\\"a9bbc5b66cc5c0154abc\\",989:\\"c9dc83c58103e3bb3a8a\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var l=document.getElementsByTagName(\\"script\\"),s=0;s{i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&!e;)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={903:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,l]=t,s=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);l&&l(n)}for(r&&r(t);s{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.t,n.S)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"t\\":\\"blah\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"S\\":\\"something else\\"}')}}]);", + "/release/chunks/async1-LOCALE2/-2541dae452be32eb2f84.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[230],{\\"./a/async1.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.t,n.S)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"t\\":\\"baz\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"S\\":\\"some random translation\\"}')}}]);", + "/release/chunks/async2-LOCALE1/-0ebe0de081c0cabfb2ba.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./a/async2.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.t+n.S)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"t\\":\\"blah\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"S\\":\\"something else\\"}')}}]);", + "/release/chunks/async2-LOCALE2/-0ebe0de081c0cabfb2ba.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./a/async2.js\\":(s,_,e)=>{e.r(_);var r=e(\\"./a/strings1.resjson\\"),n=e(\\"./a/strings2.resjson\\");console.log(r.t+n.S)},\\"./a/strings1.resjson\\":s=>{s.exports=JSON.parse('{\\"t\\":\\"baz\\"}')},\\"./a/strings2.resjson\\":s=>{s.exports=JSON.parse('{\\"S\\":\\"some random translation\\"}')}}]);", + "/release/mainSingleChunk--a8d7fba1f43d5695a68a.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+self.__locale+\\"/-2541dae452be32eb2f84.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,l;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),c=0;c{i.onerror=i.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={331:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),l=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",l.name=\\"ChunkLoadError\\",l.type=a,l.request=i,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,a,[i,l,s]=t,c=0;if(i.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);s&&s(o)}for(r&&r(t);c{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{230:\\"async1\\",421:\\"async2\\"}[e]+\\"-\\"+self.__locale+\\"/-\\"+{230:\\"2541dae452be32eb2f84\\",421:\\"0ebe0de081c0cabfb2ba\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(d);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={580:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,s]=t,l=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);s&&s(n)}for(r&&r(t);l { @@ -99,27 +99,27 @@ Object { __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .B, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .P); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .t, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .S); /***/ }), /***/ \\"./a/strings1.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"B\\":\\"blah\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"t\\":\\"blah\\"}'); /***/ }), /***/ \\"./a/strings2.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"P\\":\\"something else\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"S\\":\\"something else\\"}'); /***/ }) }]);", - "/release/chunks/async1-LOCALE2/-268cfe557834794b247b.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[515],{ + "/release/chunks/async1-LOCALE2/-5998804d6f516289023d.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[230],{ /***/ \\"./a/async1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -127,27 +127,27 @@ module.exports = JSON.parse('{\\"P\\":\\"something else\\"}'); __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .B, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .P); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .t, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .S); /***/ }), /***/ \\"./a/strings1.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"B\\":\\"baz\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"t\\":\\"baz\\"}'); /***/ }), /***/ \\"./a/strings2.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"S\\":\\"some random translation\\"}'); /***/ }) }]);", - "/release/chunks/async2-LOCALE1/-c8dd89f429d58ff2c174.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/chunks/async2-LOCALE1/-795c03eb7d09694f4c50.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./a/async2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -155,27 +155,27 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .B + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .P); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .t + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .S); /***/ }), /***/ \\"./a/strings1.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"B\\":\\"blah\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"t\\":\\"blah\\"}'); /***/ }), /***/ \\"./a/strings2.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"P\\":\\"something else\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"S\\":\\"something else\\"}'); /***/ }) }]);", - "/release/chunks/async2-LOCALE2/-c8dd89f429d58ff2c174.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/chunks/async2-LOCALE2/-795c03eb7d09694f4c50.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./a/async2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -183,26 +183,26 @@ module.exports = JSON.parse('{\\"P\\":\\"something else\\"}'); __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .B + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .P); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* .test */ .t + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* .another */ .S); /***/ }), /***/ \\"./a/strings1.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"B\\":\\"baz\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"t\\":\\"baz\\"}'); /***/ }), /***/ \\"./a/strings2.resjson\\": /***/ ((module) => { -module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); +module.exports = /*#__PURE__*/JSON.parse('{\\"S\\":\\"some random translation\\"}'); /***/ }) }]);", - "/release/mainSingleChunk--ceb947c06eacae29b495.js": "/******/ (() => { // webpackBootstrap + "/release/mainSingleChunk--45d7740fdf4fa40e65fa.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -251,7 +251,7 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + self.__locale + \\"/\\" + \\"-\\" + \\"268cfe557834794b247b\\" + \\".js\\"; +/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + self.__locale + \\"/\\" + \\"-\\" + \\"5998804d6f516289023d\\" + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -297,6 +297,7 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -334,13 +335,13 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -359,7 +360,7 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 315: 0 +/******/ 331: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -443,10 +444,10 @@ module.exports = JSON.parse('{\\"P\\":\\"some random translation\\"}'); /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); /******/ })() ;", - "/release/mainTwoChunks--196c2ee23a8f06e045d5.js": "/******/ (() => { // webpackBootstrap + "/release/mainTwoChunks--33b2a60ff181515a41f3.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -495,7 +496,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-\\" + self.__locale + \\"/\\" + \\"-\\" + {\\"515\\":\\"268cfe557834794b247b\\",\\"989\\":\\"c8dd89f429d58ff2c174\\"}[chunkId] + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"230\\":\\"async1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-\\" + self.__locale + \\"/\\" + \\"-\\" + {\\"230\\":\\"5998804d6f516289023d\\",\\"421\\":\\"795c03eb7d09694f4c50\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -541,6 +542,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -578,13 +580,13 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -603,7 +605,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 903: 0 +/******/ 580: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -687,11 +689,10 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); /******/ })() ;", "/release/other--0a22a28bc727b811fbb2.js": "/******/ (() => { // webpackBootstrap -var __webpack_exports__ = {}; console.log('hello world'); /******/ })() ;", @@ -706,14 +707,14 @@ Object { "namedChunkGroups": Object { "async1": Object { "localizedAssets": Object { - "LOCALE1": "chunks/async1-LOCALE1/-268cfe557834794b247b.js", - "LOCALE2": "chunks/async1-LOCALE2/-268cfe557834794b247b.js", + "LOCALE1": "chunks/async1-LOCALE1/-5998804d6f516289023d.js", + "LOCALE2": "chunks/async1-LOCALE2/-5998804d6f516289023d.js", }, }, "async2": Object { "localizedAssets": Object { - "LOCALE1": "chunks/async2-LOCALE1/-c8dd89f429d58ff2c174.js", - "LOCALE2": "chunks/async2-LOCALE2/-c8dd89f429d58ff2c174.js", + "LOCALE1": "chunks/async2-LOCALE1/-795c03eb7d09694f4c50.js", + "LOCALE2": "chunks/async2-LOCALE2/-795c03eb7d09694f4c50.js", }, }, }, diff --git a/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedNoAsync.test.ts.snap b/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedNoAsync.test.ts.snap index 8f032580fa6..513c6c6abce 100644 --- a/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedNoAsync.test.ts.snap +++ b/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedNoAsync.test.ts.snap @@ -20,67 +20,63 @@ exports[`LocalizationPlugin Handles localized compilation with no async chunks ( exports[`LocalizationPlugin Handles localized compilation with no async chunks (unminified): Content 1`] = ` Object { - "/release/localization-stats.json": "{\\"entrypoints\\":{\\"main\\":{\\"localizedAssets\\":{\\"default\\":\\"main-default-fc50d2a48e11f2b086ea.js\\",\\"LOCALE2\\":\\"main-LOCALE2-a314aaef0a110988940c.js\\",\\"LOCALE1\\":\\"main-LOCALE1-5ebe1f1f7b993dda2dc3.js\\",\\"qps-ploc\\":\\"main-qps-ploc-7e43fa8e6919d74fccb9.js\\"}}},\\"namedChunkGroups\\":{}}", - "/release/main-LOCALE1-5ebe1f1f7b993dda2dc3.js": "/******/ (() => { // webpackBootstrap + "/release/localization-stats.json": "{\\"entrypoints\\":{\\"main\\":{\\"localizedAssets\\":{\\"default\\":\\"main-default-d7e97cf591a7391fb602.js\\",\\"LOCALE2\\":\\"main-LOCALE2-41498f590539983b4243.js\\",\\"LOCALE1\\":\\"main-LOCALE1-f13c9f8d1301f4e49d62.js\\",\\"qps-ploc\\":\\"main-qps-ploc-1086de10c00dc424a3f9.js\\"}}},\\"namedChunkGroups\\":{}}", + "/release/main-LOCALE1-f13c9f8d1301f4e49d62.js": "/******/ (() => { // webpackBootstrap /******/ \\"use strict\\"; -var __webpack_exports__ = {}; -;// CONCATENATED MODULE: ./a/strings1.resjson +;// ./a/strings1.resjson const strings = {\\"test\\":\\"blah\\\\r\\\\n\\\\t\\\\\\\\\\\\u0027\\\\u0022\\"}; /* harmony default export */ const strings1_resjson = (strings); -;// CONCATENATED MODULE: ./a/strings2.resjson +;// ./a/strings2.resjson const strings2_resjson_strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const strings2_resjson = (strings2_resjson_strings); -;// CONCATENATED MODULE: ./a/entry.js +;// ./a/entry.js console.log(strings1_resjson.test, strings2_resjson.another); /******/ })() ;", - "/release/main-LOCALE1-5ebe1f1f7b993dda2dc3.js.map": "{\\"version\\":3,\\"file\\":\\"main-LOCALE1-5ebe1f1f7b993dda2dc3.js\\",\\"mappings\\":\\";;;;;AAAA,iBAAiB,QAAQ,wBAA6D;AACtF,uDAAe,OAAO,E;;ACDtB,MAAM,wBAAO,IAAI,WAAW,cAA6D;AACzF,uDAAe,wBAAO,E;;ACDoB,CAA2C,CAAC,YAAY,qBAAa,EAAE,wBAAgB,E\\",\\"sources\\":[\\"source:///./a/strings1.resjson\\",\\"source:///./a/strings2.resjson\\",\\"source:///./a/entry.js\\"],\\"sourcesContent\\":[\\"const strings = {\\\\\\"test\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_0\\\\\\"};\\\\nexport default strings;\\",\\"const strings = {\\\\\\"another\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_1\\\\\\"};\\\\nexport default strings;\\",\\"import strings1 from './strings1.resjson'; import strings2 from './strings2.resjson'; console.log(strings1.test, strings2.another);\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", - "/release/main-LOCALE2-a314aaef0a110988940c.js": "/******/ (() => { // webpackBootstrap + "/release/main-LOCALE1-f13c9f8d1301f4e49d62.js.map": "{\\"version\\":3,\\"file\\":\\"main-LOCALE1-f13c9f8d1301f4e49d62.js\\",\\"mappings\\":\\";;;;AAAA,iBAAiB,QAAQ,wBAA6D;AACtF,uDAAe,OAAO,E;;ACDtB,MAAM,wBAAO,IAAI,WAAW,cAA6D;AACzF,uDAAe,wBAAO,E;;ACDoB,CAA2C,CAAC,YAAY,gBAAQ,OAAO,gBAAQ,U\\",\\"sources\\":[\\"source:///./a/strings1.resjson\\",\\"source:///./a/strings2.resjson\\",\\"source:///./a/entry.js\\"],\\"sourcesContent\\":[\\"const strings = {\\\\\\"test\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_0\\\\\\"};\\\\nexport default strings;\\",\\"const strings = {\\\\\\"another\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_1\\\\\\"};\\\\nexport default strings;\\",\\"import strings1 from './strings1.resjson'; import strings2 from './strings2.resjson'; console.log(strings1.test, strings2.another);\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "/release/main-LOCALE2-41498f590539983b4243.js": "/******/ (() => { // webpackBootstrap /******/ \\"use strict\\"; -var __webpack_exports__ = {}; -;// CONCATENATED MODULE: ./a/strings1.resjson +;// ./a/strings1.resjson const strings = {\\"test\\":\\"return:\\\\r,newline:\\\\n,tab:\\\\t,backslash:\\\\\\\\,apos:\\\\u0027,quote:\\\\u0022\\"}; /* harmony default export */ const strings1_resjson = (strings); -;// CONCATENATED MODULE: ./a/strings2.resjson +;// ./a/strings2.resjson const strings2_resjson_strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const strings2_resjson = (strings2_resjson_strings); -;// CONCATENATED MODULE: ./a/entry.js +;// ./a/entry.js console.log(strings1_resjson.test, strings2_resjson.another); /******/ })() ;", - "/release/main-LOCALE2-a314aaef0a110988940c.js.map": "{\\"version\\":3,\\"file\\":\\"main-LOCALE2-a314aaef0a110988940c.js\\",\\"mappings\\":\\";;;;;AAAA,iBAAiB,QAAQ,iEAA6D;AACtF,uDAAe,OAAO,E;;ACDtB,MAAM,wBAAO,IAAI,WAAW,cAA6D;AACzF,uDAAe,wBAAO,E;;ACDoB,CAA2C,CAAC,YAAY,qBAAa,EAAE,wBAAgB,E\\",\\"sources\\":[\\"source:///./a/strings1.resjson\\",\\"source:///./a/strings2.resjson\\",\\"source:///./a/entry.js\\"],\\"sourcesContent\\":[\\"const strings = {\\\\\\"test\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_0\\\\\\"};\\\\nexport default strings;\\",\\"const strings = {\\\\\\"another\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_1\\\\\\"};\\\\nexport default strings;\\",\\"import strings1 from './strings1.resjson'; import strings2 from './strings2.resjson'; console.log(strings1.test, strings2.another);\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", - "/release/main-default-fc50d2a48e11f2b086ea.js": "/******/ (() => { // webpackBootstrap + "/release/main-LOCALE2-41498f590539983b4243.js.map": "{\\"version\\":3,\\"file\\":\\"main-LOCALE2-41498f590539983b4243.js\\",\\"mappings\\":\\";;;;AAAA,iBAAiB,QAAQ,iEAA6D;AACtF,uDAAe,OAAO,E;;ACDtB,MAAM,wBAAO,IAAI,WAAW,cAA6D;AACzF,uDAAe,wBAAO,E;;ACDoB,CAA2C,CAAC,YAAY,gBAAQ,OAAO,gBAAQ,U\\",\\"sources\\":[\\"source:///./a/strings1.resjson\\",\\"source:///./a/strings2.resjson\\",\\"source:///./a/entry.js\\"],\\"sourcesContent\\":[\\"const strings = {\\\\\\"test\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_0\\\\\\"};\\\\nexport default strings;\\",\\"const strings = {\\\\\\"another\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_1\\\\\\"};\\\\nexport default strings;\\",\\"import strings1 from './strings1.resjson'; import strings2 from './strings2.resjson'; console.log(strings1.test, strings2.another);\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "/release/main-default-d7e97cf591a7391fb602.js": "/******/ (() => { // webpackBootstrap /******/ \\"use strict\\"; -var __webpack_exports__ = {}; -;// CONCATENATED MODULE: ./a/strings1.resjson +;// ./a/strings1.resjson const strings = {\\"test\\":\\"test\\"}; /* harmony default export */ const strings1_resjson = (strings); -;// CONCATENATED MODULE: ./a/strings2.resjson +;// ./a/strings2.resjson const strings2_resjson_strings = {\\"another\\":\\"another\\"}; /* harmony default export */ const strings2_resjson = (strings2_resjson_strings); -;// CONCATENATED MODULE: ./a/entry.js +;// ./a/entry.js console.log(strings1_resjson.test, strings2_resjson.another); /******/ })() ;", - "/release/main-default-fc50d2a48e11f2b086ea.js.map": "{\\"version\\":3,\\"file\\":\\"main-default-fc50d2a48e11f2b086ea.js\\",\\"mappings\\":\\";;;;;AAAA,iBAAiB,QAAQ,IAA6D;AACtF,uDAAe,OAAO,E;;ACDtB,MAAM,wBAAO,IAAI,WAAW,OAA6D;AACzF,uDAAe,wBAAO,E;;ACDoB,CAA2C,CAAC,YAAY,qBAAa,EAAE,wBAAgB,E\\",\\"sources\\":[\\"source:///./a/strings1.resjson\\",\\"source:///./a/strings2.resjson\\",\\"source:///./a/entry.js\\"],\\"sourcesContent\\":[\\"const strings = {\\\\\\"test\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_0\\\\\\"};\\\\nexport default strings;\\",\\"const strings = {\\\\\\"another\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_1\\\\\\"};\\\\nexport default strings;\\",\\"import strings1 from './strings1.resjson'; import strings2 from './strings2.resjson'; console.log(strings1.test, strings2.another);\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", - "/release/main-qps-ploc-7e43fa8e6919d74fccb9.js": "/******/ (() => { // webpackBootstrap + "/release/main-default-d7e97cf591a7391fb602.js.map": "{\\"version\\":3,\\"file\\":\\"main-default-d7e97cf591a7391fb602.js\\",\\"mappings\\":\\";;;;AAAA,iBAAiB,QAAQ,IAA6D;AACtF,uDAAe,OAAO,E;;ACDtB,MAAM,wBAAO,IAAI,WAAW,OAA6D;AACzF,uDAAe,wBAAO,E;;ACDoB,CAA2C,CAAC,YAAY,gBAAQ,OAAO,gBAAQ,U\\",\\"sources\\":[\\"source:///./a/strings1.resjson\\",\\"source:///./a/strings2.resjson\\",\\"source:///./a/entry.js\\"],\\"sourcesContent\\":[\\"const strings = {\\\\\\"test\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_0\\\\\\"};\\\\nexport default strings;\\",\\"const strings = {\\\\\\"another\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_1\\\\\\"};\\\\nexport default strings;\\",\\"import strings1 from './strings1.resjson'; import strings2 from './strings2.resjson'; console.log(strings1.test, strings2.another);\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "/release/main-qps-ploc-1086de10c00dc424a3f9.js": "/******/ (() => { // webpackBootstrap /******/ \\"use strict\\"; -var __webpack_exports__ = {}; -;// CONCATENATED MODULE: ./a/strings1.resjson +;// ./a/strings1.resjson const strings = {\\"test\\":\\"!--ƀĺàĥ\\\\r\\\\n\\\\t\\\\\\\\\\\\u0027\\\\u0022-|-\\"}; /* harmony default export */ const strings1_resjson = (strings); -;// CONCATENATED MODULE: ./a/strings2.resjson +;// ./a/strings2.resjson const strings2_resjson_strings = {\\"another\\":\\"!--śōmēţĥĩńĝ ēĺśē-|-\\"}; /* harmony default export */ const strings2_resjson = (strings2_resjson_strings); -;// CONCATENATED MODULE: ./a/entry.js +;// ./a/entry.js console.log(strings1_resjson.test, strings2_resjson.another); /******/ })() ;", - "/release/main-qps-ploc-7e43fa8e6919d74fccb9.js.map": "{\\"version\\":3,\\"file\\":\\"main-qps-ploc-7e43fa8e6919d74fccb9.js\\",\\"mappings\\":\\";;;;;AAAA,iBAAiB,QAAQ,8BAA6D;AACtF,uDAAe,OAAO,E;;ACDtB,MAAM,wBAAO,IAAI,WAAW,oBAA6D;AACzF,uDAAe,wBAAO,E;;ACDoB,CAA2C,CAAC,YAAY,qBAAa,EAAE,wBAAgB,E\\",\\"sources\\":[\\"source:///./a/strings1.resjson\\",\\"source:///./a/strings2.resjson\\",\\"source:///./a/entry.js\\"],\\"sourcesContent\\":[\\"const strings = {\\\\\\"test\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_0\\\\\\"};\\\\nexport default strings;\\",\\"const strings = {\\\\\\"another\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_1\\\\\\"};\\\\nexport default strings;\\",\\"import strings1 from './strings1.resjson'; import strings2 from './strings2.resjson'; console.log(strings1.test, strings2.another);\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "/release/main-qps-ploc-1086de10c00dc424a3f9.js.map": "{\\"version\\":3,\\"file\\":\\"main-qps-ploc-1086de10c00dc424a3f9.js\\",\\"mappings\\":\\";;;;AAAA,iBAAiB,QAAQ,8BAA6D;AACtF,uDAAe,OAAO,E;;ACDtB,MAAM,wBAAO,IAAI,WAAW,oBAA6D;AACzF,uDAAe,wBAAO,E;;ACDoB,CAA2C,CAAC,YAAY,gBAAQ,OAAO,gBAAQ,U\\",\\"sources\\":[\\"source:///./a/strings1.resjson\\",\\"source:///./a/strings2.resjson\\",\\"source:///./a/entry.js\\"],\\"sourcesContent\\":[\\"const strings = {\\\\\\"test\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_0\\\\\\"};\\\\nexport default strings;\\",\\"const strings = {\\\\\\"another\\\\\\":\\\\\\"_LOCALIZED_STRING_f12dy0i7_n4bo_dqwj_39gf_sasqehjmihz9_\\\\\\\\\\\\\\\\_A_1\\\\\\"};\\\\nexport default strings;\\",\\"import strings1 from './strings1.resjson'; import strings2 from './strings2.resjson'; console.log(strings1.test, strings2.another);\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", } `; diff --git a/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedRuntime.test.ts.snap b/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedRuntime.test.ts.snap index 03e2a26c06f..41617f8995b 100644 --- a/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedRuntime.test.ts.snap +++ b/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedRuntime.test.ts.snap @@ -2,14 +2,14 @@ exports[`LocalizationPlugin Handles async localized chunks (minified): Content 1`] = ` Object { - "/release/chunks/async1-LOCALE1-e795ad0fdd98b21e2d14.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./a/async1.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.Z.test,t.Z.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={test:\\"blah\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={another:\\"something else\\"}}}]);", - "/release/chunks/async1-LOCALE2-8b94b0a6bc0d7c5b4c44.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./a/async1.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.Z.test,t.Z.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={test:\\"baz\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={another:\\"some random translation\\"}}}]);", - "/release/chunks/async2-LOCALE1-fd27edad5b9ce4d9eec1.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./a/async2.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.Z.test+t.Z.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={test:\\"blah\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={another:\\"something else\\"}}}]);", - "/release/chunks/async2-LOCALE2-cd16fef4b4d31d50c7ff.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./a/async2.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.Z.test+t.Z.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={test:\\"baz\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={another:\\"some random translation\\"}}}]);", - "/release/mainSingleChunk-LOCALE1-c99f691a28e0096500b0.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+\\"LOCALE1\\"+\\"-e795ad0fdd98b21e2d14.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,l;if(void 0!==n)for(var c=document.getElementsByTagName(\\"script\\"),s=0;s{a.onerror=a.onload=null,clearTimeout(p);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={315:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),l=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",l.name=\\"ChunkLoadError\\",l.type=i,l.request=a,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,l,c]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);c&&c(o)}for(r&&r(t);s{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+\\"LOCALE2\\"+\\"-8b94b0a6bc0d7c5b4c44.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,l;if(void 0!==n)for(var c=document.getElementsByTagName(\\"script\\"),s=0;s{a.onerror=a.onload=null,clearTimeout(p);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={315:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),l=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",l.name=\\"ChunkLoadError\\",l.type=i,l.request=a,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,l,c]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);c&&c(o)}for(r&&r(t);s{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{515:\\"async1\\",989:\\"async2\\"}[e]+\\"-\\"+\\"LOCALE1\\"+\\"-\\"+{515:\\"e795ad0fdd98b21e2d14\\",989:\\"fd27edad5b9ce4d9eec1\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&!e;)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={903:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,s]=t,l=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);s&&s(n)}for(r&&r(t);l{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{515:\\"async1\\",989:\\"async2\\"}[e]+\\"-\\"+\\"LOCALE2\\"+\\"-\\"+{515:\\"8b94b0a6bc0d7c5b4c44\\",989:\\"cd16fef4b4d31d50c7ff\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&!e;)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={903:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,s]=t,l=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);s&&s(n)}for(r&&r(t);l{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.A.test,t.A.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={test:\\"blah\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={another:\\"something else\\"}}}]);", + "/release/chunks/async1-LOCALE2-539451936e40bfe8c639.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[230],{\\"./a/async1.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.A.test,t.A.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={test:\\"baz\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={another:\\"some random translation\\"}}}]);", + "/release/chunks/async2-LOCALE1-e8d38de88030c68b142d.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./a/async2.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.A.test+t.A.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={test:\\"blah\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={another:\\"something else\\"}}}]);", + "/release/chunks/async2-LOCALE2-fce466dd85fa8aca1670.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./a/async2.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.A.test+t.A.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={test:\\"baz\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={another:\\"some random translation\\"}}}]);", + "/release/mainSingleChunk-LOCALE1-7135752c60135c524f7d.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+\\"LOCALE1\\"+\\"-80e0dd4d45c56d8a211b.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{a.onerror=a.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={331:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),c=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",c.name=\\"ChunkLoadError\\",c.type=i,c.request=a,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,c,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+\\"LOCALE2\\"+\\"-539451936e40bfe8c639.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{a.onerror=a.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={331:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),c=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",c.name=\\"ChunkLoadError\\",c.type=i,c.request=a,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,c,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{230:\\"async1\\",421:\\"async2\\"}[e]+\\"-\\"+\\"LOCALE1\\"+\\"-\\"+{230:\\"80e0dd4d45c56d8a211b\\",421:\\"e8d38de88030c68b142d\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={580:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,s]=t,l=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);s&&s(n)}for(r&&r(t);l{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{230:\\"async1\\",421:\\"async2\\"}[e]+\\"-\\"+\\"LOCALE2\\"+\\"-\\"+{230:\\"539451936e40bfe8c639\\",421:\\"fce466dd85fa8aca1670\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={580:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,s]=t,l=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);s&&s(n)}for(r&&r(t);l { @@ -28,7 +28,7 @@ Object { __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -36,7 +36,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"blah\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -47,7 +47,7 @@ const strings = {\\"test\\":\\"blah\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -55,8 +55,8 @@ const strings = {\\"another\\":\\"something else\\"}; /***/ }) }]);", - "/release/chunks/async1-LOCALE2-09e4b8b6df2295cc04fb.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[515],{ + "/release/chunks/async1-LOCALE2-7fbd9e8b90662b96d60f.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[230],{ /***/ \\"./a/async1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -64,7 +64,7 @@ const strings = {\\"another\\":\\"something else\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -72,7 +72,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"baz\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -83,7 +83,7 @@ const strings = {\\"test\\":\\"baz\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"some random translation\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -91,8 +91,8 @@ const strings = {\\"another\\":\\"some random translation\\"}; /***/ }) }]);", - "/release/chunks/async2-LOCALE1-923fbcff1c3f86213cea.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/chunks/async2-LOCALE1-fd38f9892797533b5275.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./a/async2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -100,7 +100,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -108,7 +108,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"blah\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -119,7 +119,7 @@ const strings = {\\"test\\":\\"blah\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -127,8 +127,8 @@ const strings = {\\"another\\":\\"something else\\"}; /***/ }) }]);", - "/release/chunks/async2-LOCALE2-839abaf0fa6cdd8179ba.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/chunks/async2-LOCALE2-e2cb29feccd145fb73bf.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./a/async2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -136,7 +136,7 @@ const strings = {\\"another\\":\\"something else\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -144,7 +144,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"baz\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -155,7 +155,7 @@ const strings = {\\"test\\":\\"baz\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"some random translation\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -163,7 +163,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /***/ }) }]);", - "/release/mainSingleChunk-LOCALE1-4381513f6b3bf5b0694e.js": "/******/ (() => { // webpackBootstrap + "/release/mainSingleChunk-LOCALE1-31b99ebecaaafc6fc041.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -224,7 +224,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + \\"LOCALE1\\" + \\"-\\" + \\"a0dc7ce0f9ce060c986e\\" + \\".js\\"; +/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + \\"LOCALE1\\" + \\"-\\" + \\"d6178a7c70b08da50818\\" + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -270,6 +270,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -307,13 +308,13 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -332,7 +333,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 315: 0 +/******/ 331: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -416,10 +417,10 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); /******/ })() ;", - "/release/mainSingleChunk-LOCALE2-0d704129faccb075adae.js": "/******/ (() => { // webpackBootstrap + "/release/mainSingleChunk-LOCALE2-4da473d6d7b2fd4c7141.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -480,7 +481,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + \\"LOCALE2\\" + \\"-\\" + \\"09e4b8b6df2295cc04fb\\" + \\".js\\"; +/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + \\"LOCALE2\\" + \\"-\\" + \\"7fbd9e8b90662b96d60f\\" + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -526,6 +527,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -563,13 +565,13 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -588,7 +590,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 315: 0 +/******/ 331: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -672,10 +674,10 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); /******/ })() ;", - "/release/mainTwoChunks-LOCALE1-bf1aac04abcf9d7d1208.js": "/******/ (() => { // webpackBootstrap + "/release/mainTwoChunks-LOCALE1-8745ce402416e2a2255a.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -736,7 +738,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-\\" + \\"LOCALE1\\" + \\"-\\" + {\\"515\\":\\"a0dc7ce0f9ce060c986e\\",\\"989\\":\\"923fbcff1c3f86213cea\\"}[chunkId] + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"230\\":\\"async1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-\\" + \\"LOCALE1\\" + \\"-\\" + {\\"230\\":\\"d6178a7c70b08da50818\\",\\"421\\":\\"fd38f9892797533b5275\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -782,6 +784,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -819,13 +822,13 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -844,7 +847,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 903: 0 +/******/ 580: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -928,10 +931,10 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); /******/ })() ;", - "/release/mainTwoChunks-LOCALE2-8c66f5e4e8a79ed4f133.js": "/******/ (() => { // webpackBootstrap + "/release/mainTwoChunks-LOCALE2-5b64c5802fc801f92e68.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -992,7 +995,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-\\" + \\"LOCALE2\\" + \\"-\\" + {\\"515\\":\\"09e4b8b6df2295cc04fb\\",\\"989\\":\\"839abaf0fa6cdd8179ba\\"}[chunkId] + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"230\\":\\"async1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-\\" + \\"LOCALE2\\" + \\"-\\" + {\\"230\\":\\"7fbd9e8b90662b96d60f\\",\\"421\\":\\"e2cb29feccd145fb73bf\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -1038,6 +1041,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -1075,13 +1079,13 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -1100,7 +1104,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 903: 0 +/******/ 580: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -1184,7 +1188,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); /******/ })() ;", } diff --git a/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedRuntimeDifferentHashLengths.test.ts.snap b/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedRuntimeDifferentHashLengths.test.ts.snap index 88443dde27a..a22d1595853 100644 --- a/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedRuntimeDifferentHashLengths.test.ts.snap +++ b/webpack/webpack5-localization-plugin/src/test/__snapshots__/LocalizedRuntimeDifferentHashLengths.test.ts.snap @@ -2,14 +2,14 @@ exports[`LocalizationPlugin Handles async localized chunks (minified): Content 1`] = ` Object { - "/release/chunks/async1-LOCALE1-48e154cefa3c631967269f65a0c807e9808494fe15cc376120c80fbd79ecca73.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./a/async1.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.Z.test,t.Z.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={test:\\"blah\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={another:\\"something else\\"}}}]);", - "/release/chunks/async1-LOCALE2-bf3e076643c7481ea6bb930aefa8021d22ebf337962bd5a8a9cf50ec8877b0a5.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./a/async1.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.Z.test,t.Z.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={test:\\"baz\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={another:\\"some random translation\\"}}}]);", - "/release/chunks/async2-LOCALE1-9c88f2a4de2a3a86966bd3dd006dbd59508d34571c439f035b96e9a68edb7d62.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./a/async2.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.Z.test+t.Z.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={test:\\"blah\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={another:\\"something else\\"}}}]);", - "/release/chunks/async2-LOCALE2-e498cb54def3d623beb5295624626826129dd1e7a9a849831259397b14ab0d88.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./a/async2.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.Z.test+t.Z.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={test:\\"baz\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{Z:()=>e});const e={another:\\"some random translation\\"}}}]);", - "/release/mainSingleChunk-LOCALE1-8878293491cf90535f3985f4681c1f41556d1f68483460051662bfbff830651a.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+\\"LOCALE1\\"+\\"-48e154cefa3c631967269f65a0c807e9808494fe15cc376120c80fbd79ecca73.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,l;if(void 0!==n)for(var c=document.getElementsByTagName(\\"script\\"),s=0;s{a.onerror=a.onload=null,clearTimeout(p);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={315:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),l=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",l.name=\\"ChunkLoadError\\",l.type=i,l.request=a,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,l,c]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);c&&c(o)}for(r&&r(t);s{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+\\"LOCALE2\\"+\\"-bf3e076643c7481ea6bb930aefa8021d22ebf337962bd5a8a9cf50ec8877b0a5.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,l;if(void 0!==n)for(var c=document.getElementsByTagName(\\"script\\"),s=0;s{a.onerror=a.onload=null,clearTimeout(p);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={315:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),l=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",l.name=\\"ChunkLoadError\\",l.type=i,l.request=a,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,l,c]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);c&&c(o)}for(r&&r(t);s{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{515:\\"async1\\",989:\\"async2\\"}[e]+\\"-\\"+\\"LOCALE1\\"+\\"-\\"+{515:\\"48e154cefa3c631967269f65a0c807e9808494fe15cc376120c80fbd79ecca73\\",989:\\"9c88f2a4de2a3a86966bd3dd006dbd59508d34571c439f035b96e9a68edb7d62\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&!e;)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={903:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,s]=t,l=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);s&&s(n)}for(r&&r(t);l{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{515:\\"async1\\",989:\\"async2\\"}[e]+\\"-\\"+\\"LOCALE2\\"+\\"-\\"+{515:\\"bf3e076643c7481ea6bb930aefa8021d22ebf337962bd5a8a9cf50ec8877b0a5\\",989:\\"e498cb54def3d623beb5295624626826129dd1e7a9a849831259397b14ab0d88\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&!e;)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={903:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,s]=t,l=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);s&&s(n)}for(r&&r(t);l{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.A.test,t.A.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={test:\\"blah\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={another:\\"something else\\"}}}]);", + "/release/chunks/async1-LOCALE2-b2985647a6b5d7bbf49569bf30fcdd43a24880bc495950452a35e352b37066b8.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[230],{\\"./a/async1.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.A.test,t.A.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={test:\\"baz\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={another:\\"some random translation\\"}}}]);", + "/release/chunks/async2-LOCALE1-641cd42180255703e525fa56d1b32de341db100fe8d8b27448e94e818c088d1d.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./a/async2.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.A.test+t.A.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={test:\\"blah\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={another:\\"something else\\"}}}]);", + "/release/chunks/async2-LOCALE2-14a540e591fb82dcb6c9f99427cb521656b0ee8de540319e56e76afb7ebd396c.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./a/async2.js\\":(s,_,n)=>{n.r(_);var e=n(\\"./a/strings1.resjson\\"),t=n(\\"./a/strings2.resjson\\");console.log(e.A.test+t.A.another)},\\"./a/strings1.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={test:\\"baz\\"}},\\"./a/strings2.resjson\\":(s,_,n)=>{n.d(_,{A:()=>e});const e={another:\\"some random translation\\"}}}]);", + "/release/mainSingleChunk-LOCALE1-88a389921d55b9999439cd5075753ed9d3a35961dbb7cafe5c560cd5dabcef0c.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+\\"LOCALE1\\"+\\"-70fe0b509d7345abfb68a752ab94e284aaae4c59509529d675429ef3e00e786b.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{a.onerror=a.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={331:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),c=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",c.name=\\"ChunkLoadError\\",c.type=i,c.request=a,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,c,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/async1-\\"+\\"LOCALE2\\"+\\"-b2985647a6b5d7bbf49569bf30fcdd43a24880bc495950452a35e352b37066b8.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{a.onerror=a.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={331:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),c=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",c.name=\\"ChunkLoadError\\",c.type=i,c.request=a,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,c,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{230:\\"async1\\",421:\\"async2\\"}[e]+\\"-\\"+\\"LOCALE1\\"+\\"-\\"+{230:\\"70fe0b509d7345abfb68a752ab94e284aaae4c59509529d675429ef3e00e786b\\",421:\\"641cd42180255703e525fa56d1b32de341db100fe8d8b27448e94e818c088d1d\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={580:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,s]=t,l=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);s&&s(n)}for(r&&r(t);l{var e,r={},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>\\"chunks/\\"+{230:\\"async1\\",421:\\"async2\\"}[e]+\\"-\\"+\\"LOCALE2\\"+\\"-\\"+{230:\\"b2985647a6b5d7bbf49569bf30fcdd43a24880bc495950452a35e352b37066b8\\",421:\\"14a540e591fb82dcb6c9f99427cb521656b0ee8de540319e56e76afb7ebd396c\\"}[e]+\\".js\\",n.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},n.l=(r,t,o,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==o)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},n.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+\\"\\");var r=n.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),n.p=e})(),(()=>{var e={580:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),c=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,o[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var o,a,[i,c,s]=t,l=0;if(i.some((r=>0!==e[r]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);s&&s(n)}for(r&&r(t);l { @@ -28,7 +28,7 @@ Object { __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -36,7 +36,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"blah\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -47,7 +47,7 @@ const strings = {\\"test\\":\\"blah\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -55,8 +55,8 @@ const strings = {\\"another\\":\\"something else\\"}; /***/ }) }]);", - "/release/chunks/async1-LOCALE2-9036e26b6287a4856c2477fe8af07d7f272eb51e38162b68c58ab6b45b6eedd6.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[515],{ + "/release/chunks/async1-LOCALE2-74e5c4216c44dc546c38162d7cbec22be47e97f6c5852b4c7d500954f37f0161.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[230],{ /***/ \\"./a/async1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -64,7 +64,7 @@ const strings = {\\"another\\":\\"something else\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test, _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -72,7 +72,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"baz\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -83,7 +83,7 @@ const strings = {\\"test\\":\\"baz\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"some random translation\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -91,8 +91,8 @@ const strings = {\\"another\\":\\"some random translation\\"}; /***/ }) }]);", - "/release/chunks/async2-LOCALE1-c6f2ba01a69ea8170907f54734f3f539a7f44d9d9aa463963ec63181294f748a.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/chunks/async2-LOCALE1-18f3dbb15bcedd300d7752dd17deb3f69a5e482cfa2377f2b44097d1616da15c.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./a/async2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -100,7 +100,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -108,7 +108,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"blah\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -119,7 +119,7 @@ const strings = {\\"test\\":\\"blah\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -127,8 +127,8 @@ const strings = {\\"another\\":\\"something else\\"}; /***/ }) }]);", - "/release/chunks/async2-LOCALE2-0496c0d557f60f54802c2f22ae7a0d5186ada796cb053da5f964ce070e79de2c.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/chunks/async2-LOCALE2-dee6bd02f0422eef929cdca25dcdeccb4d7ff404bb9c8bf4f68959cc4c4fa5da.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./a/async2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -136,7 +136,7 @@ const strings = {\\"another\\":\\"something else\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_resjson__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.resjson\\"); /* harmony import */ var _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.resjson\\"); - console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_resjson__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test + _strings2_resjson__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -144,7 +144,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"baz\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -155,7 +155,7 @@ const strings = {\\"test\\":\\"baz\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"some random translation\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -163,7 +163,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /***/ }) }]);", - "/release/mainSingleChunk-LOCALE1-ef330c84c7be4ba6480ccb6ab98e80fd2c5d37f1f8bc695a2a50ee28f626a49c.js": "/******/ (() => { // webpackBootstrap + "/release/mainSingleChunk-LOCALE1-95c054227457ed46b06afefb69b7e4dabf87c977ac1f03db32473d086fa1454a.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -224,7 +224,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + \\"LOCALE1\\" + \\"-\\" + \\"64cd1683fc081fb426519e5f5e38154a0a9db67429cf60140b6a7a393f3a745d\\" + \\".js\\"; +/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + \\"LOCALE1\\" + \\"-\\" + \\"b80ce37f4633fbde0ff9c7599d27ea32d4292b668d3695938f956f816e88e9b6\\" + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -270,6 +270,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -307,13 +308,13 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -332,7 +333,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 315: 0 +/******/ 331: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -416,10 +417,10 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); /******/ })() ;", - "/release/mainSingleChunk-LOCALE2-8d15f7d9fb0abec48f14f96c434703a91b57a15dcc07c641a720eff4990206e3.js": "/******/ (() => { // webpackBootstrap + "/release/mainSingleChunk-LOCALE2-02148683ffda071ff441842b3f83cedf6e2378d23787e24cc184b91100687faf.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -480,7 +481,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + \\"LOCALE2\\" + \\"-\\" + \\"9036e26b6287a4856c2477fe8af07d7f272eb51e38162b68c58ab6b45b6eedd6\\" + \\".js\\"; +/******/ return \\"chunks/\\" + \\"async1\\" + \\"-\\" + \\"LOCALE2\\" + \\"-\\" + \\"74e5c4216c44dc546c38162d7cbec22be47e97f6c5852b4c7d500954f37f0161\\" + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -526,6 +527,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -563,13 +565,13 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -588,7 +590,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 315: 0 +/******/ 331: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -672,10 +674,10 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\")); /******/ })() ;", - "/release/mainTwoChunks-LOCALE1-d219354be7e0457bbd2da6966f4135606649cf44c4e0d88fea0fadfcfe168931.js": "/******/ (() => { // webpackBootstrap + "/release/mainTwoChunks-LOCALE1-4dd19c6fee8f692c8c4117b18da68c9d0648408f748b8ab54fc7bc8617e9f4cb.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -736,7 +738,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-\\" + \\"LOCALE1\\" + \\"-\\" + {\\"515\\":\\"64cd1683fc081fb426519e5f5e38154a0a9db67429cf60140b6a7a393f3a745d\\",\\"989\\":\\"c6f2ba01a69ea8170907f54734f3f539a7f44d9d9aa463963ec63181294f748a\\"}[chunkId] + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"230\\":\\"async1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-\\" + \\"LOCALE1\\" + \\"-\\" + {\\"230\\":\\"b80ce37f4633fbde0ff9c7599d27ea32d4292b668d3695938f956f816e88e9b6\\",\\"421\\":\\"18f3dbb15bcedd300d7752dd17deb3f69a5e482cfa2377f2b44097d1616da15c\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -782,6 +784,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -819,13 +822,13 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -844,7 +847,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 903: 0 +/******/ 580: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -928,10 +931,10 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); /******/ })() ;", - "/release/mainTwoChunks-LOCALE2-4c93c79b8e1da15251daa8d02960191bceddc14a71b29991ad6ea6fa535ee0aa.js": "/******/ (() => { // webpackBootstrap + "/release/mainTwoChunks-LOCALE2-c9067d1fa22dc1418d12139468543334a4f7e847feead40d424ecd60b5cb1149.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -992,7 +995,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-\\" + \\"LOCALE2\\" + \\"-\\" + {\\"515\\":\\"9036e26b6287a4856c2477fe8af07d7f272eb51e38162b68c58ab6b45b6eedd6\\",\\"989\\":\\"0496c0d557f60f54802c2f22ae7a0d5186ada796cb053da5f964ce070e79de2c\\"}[chunkId] + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"230\\":\\"async1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-\\" + \\"LOCALE2\\" + \\"-\\" + {\\"230\\":\\"74e5c4216c44dc546c38162d7cbec22be47e97f6c5852b4c7d500954f37f0161\\",\\"421\\":\\"dee6bd02f0422eef929cdca25dcdeccb4d7ff404bb9c8bf4f68959cc4c4fa5da\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -1038,6 +1041,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -1075,13 +1079,13 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -1100,7 +1104,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 903: 0 +/******/ 580: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -1184,7 +1188,7 @@ __webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); +__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./a/async1.js\\"));__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.bind(__webpack_require__, \\"./a/async2.js\\")); /******/ })() ;", } diff --git a/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsync.test.ts.snap b/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsync.test.ts.snap index f092c2e0e53..bc9ce21d76e 100644 --- a/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsync.test.ts.snap +++ b/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsync.test.ts.snap @@ -2,14 +2,14 @@ exports[`LocalizationPlugin Handles async localized and non-localized chunks (minified): Content 1`] = ` Object { - "/release/chunks/async1-none-cae03d2626cc2ffa3508.js": "(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./a/async1.js\\":()=>{console.log(\\"blah1\\")}}]);", - "/release/chunks/async2-none-a3af93683846f20fd06d.js": "(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./a/async2.js\\":()=>{console.log(\\"blah2\\")}}]);", - "/release/chunks/asyncLoc1-LOCALE1-42ac7deedbceee724ebe.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[14],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test,t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"something else\\"}}}]);", - "/release/chunks/asyncLoc1-LOCALE2-9569ed1013c7d99991f0.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[14],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test,t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"some random translation\\"}}}]);", - "/release/chunks/asyncLoc2-LOCALE1-fbbf37c75a89cefa3a8b.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[5],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test+t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"something else\\"}}}]);", - "/release/chunks/asyncLoc2-LOCALE2-6f7d6cb21f686f18a3de.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[5],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test+t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"some random translation\\"}}}]);", - "/release/main-LOCALE1-db5fee2775538b16fa56.js": "(()=>{var e,r,t,n={},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={exports:{}};return n[e](t,t.exports,a),t.exports}a.m=n,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if(\\"object\\"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&\\"function\\"==typeof t.then)return t}var o=Object.create(null);a.r(o);var i={};e=e||[null,r({}),r([]),r(r)];for(var c=2&n&&t;\\"object\\"==typeof c&&!~e.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,a.d(o,i),o},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((r,t)=>(a.f[t](e,r),r)),[])),a.u=e=>\\"chunks/\\"+{5:\\"asyncLoc2\\",14:\\"asyncLoc1\\",515:\\"async1\\",989:\\"async2\\"}[e]+\\"-\\"+({5:1,14:1}[e]?\\"LOCALE1\\":\\"none\\")+\\"-\\"+{5:\\"fbbf37c75a89cefa3a8b\\",14:\\"42ac7deedbceee724ebe\\",515:\\"cae03d2626cc2ffa3508\\",989:\\"a3af93683846f20fd06d\\"}[e]+\\".js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},a.l=(e,r,n,o)=>{if(t[e])t[e].push(r);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),f=0;f{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(l.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var r=a.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={179:0};a.f.j=(r,t)=>{var n=a.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var i=a.p+a.u(r),c=new Error;a.l(i,(t=>{if(a.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+o+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=o,c.request=i,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,o,[i,c,s]=t,f=0;if(i.some((r=>0!==e[r]))){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);s&&s(a)}for(r&&r(t);f{var e,r,t,n={},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={exports:{}};return n[e](t,t.exports,a),t.exports}a.m=n,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if(\\"object\\"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&\\"function\\"==typeof t.then)return t}var o=Object.create(null);a.r(o);var i={};e=e||[null,r({}),r([]),r(r)];for(var c=2&n&&t;\\"object\\"==typeof c&&!~e.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,a.d(o,i),o},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((r,t)=>(a.f[t](e,r),r)),[])),a.u=e=>\\"chunks/\\"+{5:\\"asyncLoc2\\",14:\\"asyncLoc1\\",515:\\"async1\\",989:\\"async2\\"}[e]+\\"-\\"+({5:1,14:1}[e]?\\"LOCALE2\\":\\"none\\")+\\"-\\"+{5:\\"6f7d6cb21f686f18a3de\\",14:\\"9569ed1013c7d99991f0\\",515:\\"cae03d2626cc2ffa3508\\",989:\\"a3af93683846f20fd06d\\"}[e]+\\".js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},a.l=(e,r,n,o)=>{if(t[e])t[e].push(r);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),f=0;f{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(l.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var r=a.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={179:0};a.f.j=(r,t)=>{var n=a.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var i=a.p+a.u(r),c=new Error;a.l(i,(t=>{if(a.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+o+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=o,c.request=i,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,o,[i,c,s]=t,f=0;if(i.some((r=>0!==e[r]))){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);s&&s(a)}for(r&&r(t);f{console.log(\\"blah1\\")}}]);", + "/release/chunks/async2-none-1b365930b3b55b3e7daf.js": "(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./a/async2.js\\":()=>{console.log(\\"blah2\\")}}]);", + "/release/chunks/asyncLoc1-LOCALE1-11284a1030c0b96a0d4a.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[410],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test,t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"something else\\"}}}]);", + "/release/chunks/asyncLoc1-LOCALE2-732c0329cde51769598f.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[410],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test,t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"some random translation\\"}}}]);", + "/release/chunks/asyncLoc2-LOCALE1-0a0dcdf1f01e840045bb.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[17],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test+t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"something else\\"}}}]);", + "/release/chunks/asyncLoc2-LOCALE2-b7bf7b922103768fdca2.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[17],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test+t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"some random translation\\"}}}]);", + "/release/main-LOCALE1-13cabae54d71324e68b9.js": "(()=>{var e,t,r,n={},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if(\\"object\\"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&\\"function\\"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&r;\\"object\\"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>\\"chunks/\\"+{17:\\"asyncLoc2\\",230:\\"async1\\",410:\\"asyncLoc1\\",421:\\"async2\\"}[e]+\\"-\\"+({17:1,410:1}[e]?\\"LOCALE1\\":\\"none\\")+\\"-\\"+{17:\\"0a0dcdf1f01e840045bb\\",230:\\"dcecbe55134f94f9aee7\\",410:\\"11284a1030c0b96a0d4a\\",421:\\"1b365930b3b55b3e7daf\\"}[e]+\\".js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},a.l=(e,t,n,o)=>{if(r[e])r[e].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),f=0;f{i.onerror=i.onload=null,clearTimeout(d);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},d=setTimeout(l.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var t=a.g.document;if(!e&&t&&(t.currentScript&&\\"SCRIPT\\"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName(\\"script\\");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),c=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&(\\"load\\"===r.type?\\"missing\\":r.type),i=r&&r.target&&r.target.src;c.message=\\"Loading chunk \\"+t+\\" failed.\\\\n(\\"+o+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=o,c.request=i,n[1](c)}}),\\"chunk-\\"+t,t)}};var t=(t,r)=>{var n,o,[i,c,s]=r,f=0;if(i.some((t=>0!==e[t]))){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);s&&s(a)}for(t&&t(r);f{var e,t,r,n={},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if(\\"object\\"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&\\"function\\"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&r;\\"object\\"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>\\"chunks/\\"+{17:\\"asyncLoc2\\",230:\\"async1\\",410:\\"asyncLoc1\\",421:\\"async2\\"}[e]+\\"-\\"+({17:1,410:1}[e]?\\"LOCALE2\\":\\"none\\")+\\"-\\"+{17:\\"b7bf7b922103768fdca2\\",230:\\"dcecbe55134f94f9aee7\\",410:\\"732c0329cde51769598f\\",421:\\"1b365930b3b55b3e7daf\\"}[e]+\\".js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},a.l=(e,t,n,o)=>{if(r[e])r[e].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),f=0;f{i.onerror=i.onload=null,clearTimeout(d);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},d=setTimeout(l.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var t=a.g.document;if(!e&&t&&(t.currentScript&&\\"SCRIPT\\"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName(\\"script\\");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),c=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&(\\"load\\"===r.type?\\"missing\\":r.type),i=r&&r.target&&r.target.src;c.message=\\"Loading chunk \\"+t+\\" failed.\\\\n(\\"+o+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=o,c.request=i,n[1](c)}}),\\"chunk-\\"+t,t)}};var t=(t,r)=>{var n,o,[i,c,s]=r,f=0;if(i.some((t=>0!==e[t]))){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);s&&s(a)}for(t&&t(r);f { @@ -56,7 +56,7 @@ console.log(\\"blah1\\"); /***/ }) }]);", - "/release/chunks/async2-none-c9e2b0fb2741b17cb7ae.js": "(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/chunks/async2-none-8e2ba6247847f697c0f1.js": "(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./a/async2.js\\": /***/ (() => { @@ -66,8 +66,8 @@ console.log(\\"blah2\\"); /***/ }) }]);", - "/release/chunks/asyncLoc1-LOCALE1-0e3f6d729d9a8d850e0d.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[14],{ + "/release/chunks/asyncLoc1-LOCALE1-3d4d60bb40f9e71ffd3d.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[410],{ /***/ \\"./a/asyncLoc1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -75,7 +75,7 @@ console.log(\\"blah2\\"); __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -83,7 +83,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"blah\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -94,7 +94,7 @@ const strings = {\\"test\\":\\"blah\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -102,8 +102,8 @@ const strings = {\\"another\\":\\"something else\\"}; /***/ }) }]);", - "/release/chunks/asyncLoc1-LOCALE2-2eebf33f2db768152544.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[14],{ + "/release/chunks/asyncLoc1-LOCALE2-f8f4279164ff7b99d24c.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[410],{ /***/ \\"./a/asyncLoc1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -111,7 +111,7 @@ const strings = {\\"another\\":\\"something else\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -119,7 +119,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"baz\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -130,7 +130,7 @@ const strings = {\\"test\\":\\"baz\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"some random translation\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -138,8 +138,8 @@ const strings = {\\"another\\":\\"some random translation\\"}; /***/ }) }]);", - "/release/chunks/asyncLoc2-LOCALE1-862fa13951f910022c37.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[5],{ + "/release/chunks/asyncLoc2-LOCALE1-51577f6650bd547636e7.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[17],{ /***/ \\"./a/asyncLoc2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -147,7 +147,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -155,7 +155,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"blah\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -166,7 +166,7 @@ const strings = {\\"test\\":\\"blah\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -174,8 +174,8 @@ const strings = {\\"another\\":\\"something else\\"}; /***/ }) }]);", - "/release/chunks/asyncLoc2-LOCALE2-c21e197905c17fe34ef7.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[5],{ + "/release/chunks/asyncLoc2-LOCALE2-19aa94fd15e03b9e60b1.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[17],{ /***/ \\"./a/asyncLoc2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -183,7 +183,7 @@ const strings = {\\"another\\":\\"something else\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -191,7 +191,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"baz\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -202,7 +202,7 @@ const strings = {\\"test\\":\\"baz\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"some random translation\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -210,7 +210,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /***/ }) }]);", - "/release/main-LOCALE1-8345e579c701b1d78cf4.js": "/******/ (() => { // webpackBootstrap + "/release/main-LOCALE1-8da16ffc2a7f76079fb5.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -301,7 +301,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"5\\":\\"asyncLoc2\\",\\"14\\":\\"asyncLoc1\\",\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-\\" + ({\\"5\\":1,\\"14\\":1}[chunkId]?\\"LOCALE1\\":\\"none\\") + \\"-\\" + {\\"5\\":\\"862fa13951f910022c37\\",\\"14\\":\\"0e3f6d729d9a8d850e0d\\",\\"515\\":\\"38a5bffea2da0af62512\\",\\"989\\":\\"c9e2b0fb2741b17cb7ae\\"}[chunkId] + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"17\\":\\"asyncLoc2\\",\\"230\\":\\"async1\\",\\"410\\":\\"asyncLoc1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-\\" + ({\\"17\\":1,\\"410\\":1}[chunkId]?\\"LOCALE1\\":\\"none\\") + \\"-\\" + {\\"17\\":\\"51577f6650bd547636e7\\",\\"230\\":\\"52f5e6bec29995fa1a9d\\",\\"410\\":\\"3d4d60bb40f9e71ffd3d\\",\\"421\\":\\"8e2ba6247847f697c0f1\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -347,6 +347,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -384,13 +385,13 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -409,7 +410,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 179: 0 +/******/ 792: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -493,10 +494,10 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 5).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\"));__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async1.js\\", 23));__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async2.js\\", 23)); +__webpack_require__.e(/* import() | asyncLoc1 */ 410).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 17).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\"));__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async1.js\\", 23));__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async2.js\\", 23)); /******/ })() ;", - "/release/main-LOCALE2-9f3e7cd89069987e6049.js": "/******/ (() => { // webpackBootstrap + "/release/main-LOCALE2-1b1eb8c4c78cd5114077.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -587,7 +588,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"5\\":\\"asyncLoc2\\",\\"14\\":\\"asyncLoc1\\",\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-\\" + ({\\"5\\":1,\\"14\\":1}[chunkId]?\\"LOCALE2\\":\\"none\\") + \\"-\\" + {\\"5\\":\\"c21e197905c17fe34ef7\\",\\"14\\":\\"2eebf33f2db768152544\\",\\"515\\":\\"38a5bffea2da0af62512\\",\\"989\\":\\"c9e2b0fb2741b17cb7ae\\"}[chunkId] + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"17\\":\\"asyncLoc2\\",\\"230\\":\\"async1\\",\\"410\\":\\"asyncLoc1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-\\" + ({\\"17\\":1,\\"410\\":1}[chunkId]?\\"LOCALE2\\":\\"none\\") + \\"-\\" + {\\"17\\":\\"19aa94fd15e03b9e60b1\\",\\"230\\":\\"52f5e6bec29995fa1a9d\\",\\"410\\":\\"f8f4279164ff7b99d24c\\",\\"421\\":\\"8e2ba6247847f697c0f1\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -633,6 +634,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -670,13 +672,13 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -695,7 +697,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 179: 0 +/******/ 792: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -779,7 +781,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 5).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\"));__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async1.js\\", 23));__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async2.js\\", 23)); +__webpack_require__.e(/* import() | asyncLoc1 */ 410).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 17).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\"));__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async1.js\\", 23));__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async2.js\\", 23)); /******/ })() ;", } @@ -792,22 +794,22 @@ Object { "entrypoints": Object { "main": Object { "localizedAssets": Object { - "LOCALE1": "main-LOCALE1-8345e579c701b1d78cf4.js", - "LOCALE2": "main-LOCALE2-9f3e7cd89069987e6049.js", + "LOCALE1": "main-LOCALE1-8da16ffc2a7f76079fb5.js", + "LOCALE2": "main-LOCALE2-1b1eb8c4c78cd5114077.js", }, }, }, "namedChunkGroups": Object { "asyncLoc1": Object { "localizedAssets": Object { - "LOCALE1": "chunks/asyncLoc1-LOCALE1-0e3f6d729d9a8d850e0d.js", - "LOCALE2": "chunks/asyncLoc1-LOCALE2-2eebf33f2db768152544.js", + "LOCALE1": "chunks/asyncLoc1-LOCALE1-3d4d60bb40f9e71ffd3d.js", + "LOCALE2": "chunks/asyncLoc1-LOCALE2-f8f4279164ff7b99d24c.js", }, }, "asyncLoc2": Object { "localizedAssets": Object { - "LOCALE1": "chunks/asyncLoc2-LOCALE1-862fa13951f910022c37.js", - "LOCALE2": "chunks/asyncLoc2-LOCALE2-c21e197905c17fe34ef7.js", + "LOCALE1": "chunks/asyncLoc2-LOCALE1-51577f6650bd547636e7.js", + "LOCALE2": "chunks/asyncLoc2-LOCALE2-19aa94fd15e03b9e60b1.js", }, }, }, diff --git a/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsyncDynamic.test.ts.snap b/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsyncDynamic.test.ts.snap index f5a9eefe647..073d7d934cb 100644 --- a/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsyncDynamic.test.ts.snap +++ b/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsyncDynamic.test.ts.snap @@ -2,14 +2,14 @@ exports[`LocalizationPlugin Handles async localized and non-localized chunks with a runtime locale expression (minified): Content 1`] = ` Object { - "/release/chunks/async1-none-89512bfadaaef3d1bc93.js": "(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./a/async1.js\\":()=>{console.log(\\"blah1\\")}}]);", - "/release/chunks/async2-none-a29aea062be9262ec79a.js": "(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./a/async2.js\\":()=>{console.log(\\"blah2\\")}}]);", - "/release/chunks/asyncLoc1-LOCALE1-58b54a5473b6573f4887.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[14],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test,t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"something else\\"}}}]);", - "/release/chunks/asyncLoc1-LOCALE2-58b54a5473b6573f4887.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[14],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test,t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"some random translation\\"}}}]);", - "/release/chunks/asyncLoc2-LOCALE1-07ad84406ec89cfeeeca.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[5],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test+t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"something else\\"}}}]);", - "/release/chunks/asyncLoc2-LOCALE2-07ad84406ec89cfeeeca.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[5],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test+t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"some random translation\\"}}}]);", - "/release/mainFourChunks-none-1cca7f460dcc7ed1bd86.js": "(()=>{var e,r,t,n={},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={exports:{}};return n[e](t,t.exports,a),t.exports}a.m=n,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if(\\"object\\"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&\\"function\\"==typeof t.then)return t}var o=Object.create(null);a.r(o);var i={};e=e||[null,r({}),r([]),r(r)];for(var c=2&n&&t;\\"object\\"==typeof c&&!~e.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,a.d(o,i),o},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((r,t)=>(a.f[t](e,r),r)),[])),a.u=e=>\\"chunks/\\"+{5:\\"asyncLoc2\\",14:\\"asyncLoc1\\",515:\\"async1\\",989:\\"async2\\"}[e]+\\"-\\"+({5:1,14:1}[e]?self.__locale:\\"none\\")+\\"-\\"+{5:\\"07ad84406ec89cfeeeca\\",14:\\"58b54a5473b6573f4887\\",515:\\"89512bfadaaef3d1bc93\\",989:\\"a29aea062be9262ec79a\\"}[e]+\\".js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},a.l=(e,r,n,o)=>{if(t[e])t[e].push(r);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName(\\"script\\"),s=0;s{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var r=a.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={550:0};a.f.j=(r,t)=>{var n=a.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var i=a.p+a.u(r),c=new Error;a.l(i,(t=>{if(a.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+o+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=o,c.request=i,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,o,[i,c,l]=t,s=0;if(i.some((r=>0!==e[r]))){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);l&&l(a)}for(r&&r(t);s{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/\\"+{5:\\"asyncLoc2\\",14:\\"asyncLoc1\\"}[e]+\\"-\\"+self.__locale+\\"-\\"+{5:\\"07ad84406ec89cfeeeca\\",14:\\"58b54a5473b6573f4887\\"}[e]+\\".js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName(\\"script\\"),s=0;s{i.onerror=i.onload=null,clearTimeout(p);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),t)return t(o)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={903:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,l]=t,s=0;if(i.some((r=>0!==e[r]))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);l&&l(o)}for(r&&r(t);s{console.log(\\"blah1\\")}}]);", + "/release/chunks/async2-none-b0e67657a0022cfa7b25.js": "(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./a/async2.js\\":()=>{console.log(\\"blah2\\")}}]);", + "/release/chunks/asyncLoc1-LOCALE1-c33a4f630d3803dd424a.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[410],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test,t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"something else\\"}}}]);", + "/release/chunks/asyncLoc1-LOCALE2-c33a4f630d3803dd424a.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[410],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test,t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"some random translation\\"}}}]);", + "/release/chunks/asyncLoc2-LOCALE1-ec1a97b2f8911e9363be.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[17],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test+t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"something else\\"}}}]);", + "/release/chunks/asyncLoc2-LOCALE2-ec1a97b2f8911e9363be.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[17],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test+t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"some random translation\\"}}}]);", + "/release/mainFourChunks-none-3d0708d071494f845896.js": "(()=>{var e,t,r,n={},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if(\\"object\\"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&\\"function\\"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&r;\\"object\\"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>\\"chunks/\\"+{17:\\"asyncLoc2\\",230:\\"async1\\",410:\\"asyncLoc1\\",421:\\"async2\\"}[e]+\\"-\\"+({17:1,410:1}[e]?self.__locale:\\"none\\")+\\"-\\"+{17:\\"ec1a97b2f8911e9363be\\",230:\\"11eb287e6b7e894591c1\\",410:\\"c33a4f630d3803dd424a\\",421:\\"b0e67657a0022cfa7b25\\"}[e]+\\".js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},a.l=(e,t,n,o)=>{if(r[e])r[e].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var t=a.g.document;if(!e&&t&&(t.currentScript&&\\"SCRIPT\\"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName(\\"script\\");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={882:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),c=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&(\\"load\\"===r.type?\\"missing\\":r.type),i=r&&r.target&&r.target.src;c.message=\\"Loading chunk \\"+t+\\" failed.\\\\n(\\"+o+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=o,c.request=i,n[1](c)}}),\\"chunk-\\"+t,t)}};var t=(t,r)=>{var n,o,[i,c,s]=r,l=0;if(i.some((t=>0!==e[t]))){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);s&&s(a)}for(t&&t(r);l{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"chunks/\\"+{17:\\"asyncLoc2\\",410:\\"asyncLoc1\\"}[e]+\\"-\\"+self.__locale+\\"-\\"+{17:\\"ec1a97b2f8911e9363be\\",410:\\"c33a4f630d3803dd424a\\"}[e]+\\".js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName(\\"script\\"),s=0;s{i.onerror=i.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={580:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,l]=t,s=0;if(i.some((r=>0!==e[r]))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);l&&l(o)}for(r&&r(t);s { @@ -49,7 +49,7 @@ console.log(\\"blah1\\"); /***/ }) }]);", - "/release/chunks/async2-none-1a5cac0840478360fcd4.js": "(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/chunks/async2-none-403f7af31493ef9e3d3b.js": "(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./a/async2.js\\": /***/ (() => { @@ -59,8 +59,8 @@ console.log(\\"blah2\\"); /***/ }) }]);", - "/release/chunks/asyncLoc1-LOCALE1-5491741ac467873e0e20.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[14],{ + "/release/chunks/asyncLoc1-LOCALE1-e8c35834e182d57fab45.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[410],{ /***/ \\"./a/asyncLoc1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -68,7 +68,7 @@ console.log(\\"blah2\\"); __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -76,7 +76,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"blah\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -87,7 +87,7 @@ const strings = {\\"test\\":\\"blah\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -95,8 +95,8 @@ const strings = {\\"another\\":\\"something else\\"}; /***/ }) }]);", - "/release/chunks/asyncLoc1-LOCALE2-5491741ac467873e0e20.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[14],{ + "/release/chunks/asyncLoc1-LOCALE2-e8c35834e182d57fab45.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[410],{ /***/ \\"./a/asyncLoc1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -104,7 +104,7 @@ const strings = {\\"another\\":\\"something else\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -112,7 +112,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"baz\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -123,7 +123,7 @@ const strings = {\\"test\\":\\"baz\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"some random translation\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -131,8 +131,8 @@ const strings = {\\"another\\":\\"some random translation\\"}; /***/ }) }]);", - "/release/chunks/asyncLoc2-LOCALE1-cd7bb284d09a7eab49e4.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[5],{ + "/release/chunks/asyncLoc2-LOCALE1-c746718e12997bb66895.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[17],{ /***/ \\"./a/asyncLoc2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -140,7 +140,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -148,7 +148,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"blah\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -159,7 +159,7 @@ const strings = {\\"test\\":\\"blah\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -167,8 +167,8 @@ const strings = {\\"another\\":\\"something else\\"}; /***/ }) }]);", - "/release/chunks/asyncLoc2-LOCALE2-cd7bb284d09a7eab49e4.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[5],{ + "/release/chunks/asyncLoc2-LOCALE2-c746718e12997bb66895.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[17],{ /***/ \\"./a/asyncLoc2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -176,7 +176,7 @@ const strings = {\\"another\\":\\"something else\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -184,7 +184,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"baz\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -195,7 +195,7 @@ const strings = {\\"test\\":\\"baz\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"some random translation\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -203,7 +203,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /***/ }) }]);", - "/release/mainFourChunks-none-6e2099e8b5f8f28baad5.js": "/******/ (() => { // webpackBootstrap + "/release/mainFourChunks-none-6d9ab0cc33548110d61e.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -294,7 +294,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"5\\":\\"asyncLoc2\\",\\"14\\":\\"asyncLoc1\\",\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-\\" + ({\\"5\\":1,\\"14\\":1}[chunkId]?self.__locale:\\"none\\") + \\"-\\" + {\\"5\\":\\"cd7bb284d09a7eab49e4\\",\\"14\\":\\"5491741ac467873e0e20\\",\\"515\\":\\"fd1b1af302665cb4e2e3\\",\\"989\\":\\"1a5cac0840478360fcd4\\"}[chunkId] + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"17\\":\\"asyncLoc2\\",\\"230\\":\\"async1\\",\\"410\\":\\"asyncLoc1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-\\" + ({\\"17\\":1,\\"410\\":1}[chunkId]?self.__locale:\\"none\\") + \\"-\\" + {\\"17\\":\\"c746718e12997bb66895\\",\\"230\\":\\"0b9a18e34a186770e865\\",\\"410\\":\\"e8c35834e182d57fab45\\",\\"421\\":\\"403f7af31493ef9e3d3b\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -340,6 +340,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -377,13 +378,13 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -402,7 +403,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 550: 0 +/******/ 882: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -486,10 +487,10 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 5).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\"));__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async1.js\\", 23));__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async2.js\\", 23)); +__webpack_require__.e(/* import() | asyncLoc1 */ 410).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 17).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\"));__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async1.js\\", 23));__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async2.js\\", 23)); /******/ })() ;", - "/release/mainTwoChunks-none-9f1d368ff4afdae73e34.js": "/******/ (() => { // webpackBootstrap + "/release/mainTwoChunks-none-9dd8fba1d3b19bce31b9.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -550,7 +551,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"5\\":\\"asyncLoc2\\",\\"14\\":\\"asyncLoc1\\"}[chunkId] + \\"-\\" + self.__locale + \\"-\\" + {\\"5\\":\\"cd7bb284d09a7eab49e4\\",\\"14\\":\\"5491741ac467873e0e20\\"}[chunkId] + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"17\\":\\"asyncLoc2\\",\\"410\\":\\"asyncLoc1\\"}[chunkId] + \\"-\\" + self.__locale + \\"-\\" + {\\"17\\":\\"c746718e12997bb66895\\",\\"410\\":\\"e8c35834e182d57fab45\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -596,6 +597,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -633,13 +635,13 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -658,7 +660,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 903: 0 +/******/ 580: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -742,7 +744,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 5).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\")); +__webpack_require__.e(/* import() | asyncLoc1 */ 410).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 17).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\")); /******/ })() ;", } @@ -756,14 +758,14 @@ Object { "namedChunkGroups": Object { "asyncLoc1": Object { "localizedAssets": Object { - "LOCALE1": "chunks/asyncLoc1-LOCALE1-5491741ac467873e0e20.js", - "LOCALE2": "chunks/asyncLoc1-LOCALE2-5491741ac467873e0e20.js", + "LOCALE1": "chunks/asyncLoc1-LOCALE1-e8c35834e182d57fab45.js", + "LOCALE2": "chunks/asyncLoc1-LOCALE2-e8c35834e182d57fab45.js", }, }, "asyncLoc2": Object { "localizedAssets": Object { - "LOCALE1": "chunks/asyncLoc2-LOCALE1-cd7bb284d09a7eab49e4.js", - "LOCALE2": "chunks/asyncLoc2-LOCALE2-cd7bb284d09a7eab49e4.js", + "LOCALE1": "chunks/asyncLoc2-LOCALE1-c746718e12997bb66895.js", + "LOCALE2": "chunks/asyncLoc2-LOCALE2-c746718e12997bb66895.js", }, }, }, diff --git a/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsyncNonHashed.test.ts.snap b/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsyncNonHashed.test.ts.snap index 3a732228ad6..657add971f3 100644 --- a/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsyncNonHashed.test.ts.snap +++ b/webpack/webpack5-localization-plugin/src/test/__snapshots__/MixedAsyncNonHashed.test.ts.snap @@ -2,14 +2,14 @@ exports[`LocalizationPlugin Handles async localized and non-localized chunks with a runtime locale expression and without an asset filename hash (minified): Content 1`] = ` Object { - "/release/chunks/async1-none.js": "(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./a/async1.js\\":()=>{console.log(\\"blah1\\")}}]);", - "/release/chunks/async2-none.js": "(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./a/async2.js\\":()=>{console.log(\\"blah2\\")}}]);", - "/release/chunks/asyncLoc1-LOCALE1.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[14],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test,t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"something else\\"}}}]);", - "/release/chunks/asyncLoc1-LOCALE2.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[14],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test,t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"some random translation\\"}}}]);", - "/release/chunks/asyncLoc2-LOCALE1.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[5],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test+t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"something else\\"}}}]);", - "/release/chunks/asyncLoc2-LOCALE2.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[5],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.Z.test+t.Z.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{Z:()=>o});const o={another:\\"some random translation\\"}}}]);", - "/release/main-LOCALE1.js": "(()=>{var e,r,t,n={},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={exports:{}};return n[e](t,t.exports,a),t.exports}a.m=n,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if(\\"object\\"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&\\"function\\"==typeof t.then)return t}var o=Object.create(null);a.r(o);var i={};e=e||[null,r({}),r([]),r(r)];for(var c=2&n&&t;\\"object\\"==typeof c&&!~e.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,a.d(o,i),o},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((r,t)=>(a.f[t](e,r),r)),[])),a.u=e=>\\"chunks/\\"+{5:\\"asyncLoc2\\",14:\\"asyncLoc1\\",515:\\"async1\\",989:\\"async2\\"}[e]+\\"-\\"+({5:1,14:1}[e]?\\"LOCALE1\\":\\"none\\")+\\".js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},a.l=(e,r,n,o)=>{if(t[e])t[e].push(r);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),u=0;u{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var r=a.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={179:0};a.f.j=(r,t)=>{var n=a.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var i=a.p+a.u(r),c=new Error;a.l(i,(t=>{if(a.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+o+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=o,c.request=i,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,o,[i,c,s]=t,u=0;if(i.some((r=>0!==e[r]))){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);s&&s(a)}for(r&&r(t);u{var e,r,t,n={},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={exports:{}};return n[e](t,t.exports,a),t.exports}a.m=n,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if(\\"object\\"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&\\"function\\"==typeof t.then)return t}var o=Object.create(null);a.r(o);var i={};e=e||[null,r({}),r([]),r(r)];for(var c=2&n&&t;\\"object\\"==typeof c&&!~e.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,a.d(o,i),o},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((r,t)=>(a.f[t](e,r),r)),[])),a.u=e=>\\"chunks/\\"+{5:\\"asyncLoc2\\",14:\\"asyncLoc1\\",515:\\"async1\\",989:\\"async2\\"}[e]+\\"-\\"+({5:1,14:1}[e]?\\"LOCALE2\\":\\"none\\")+\\".js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},a.l=(e,r,n,o)=>{if(t[e])t[e].push(r);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),u=0;u{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var r=a.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={179:0};a.f.j=(r,t)=>{var n=a.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var i=a.p+a.u(r),c=new Error;a.l(i,(t=>{if(a.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+o+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=o,c.request=i,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,o,[i,c,s]=t,u=0;if(i.some((r=>0!==e[r]))){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);s&&s(a)}for(r&&r(t);u{console.log(\\"blah1\\")}}]);", + "/release/chunks/async2-none.js": "(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./a/async2.js\\":()=>{console.log(\\"blah2\\")}}]);", + "/release/chunks/asyncLoc1-LOCALE1.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[410],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test,t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"something else\\"}}}]);", + "/release/chunks/asyncLoc1-LOCALE2.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[410],{\\"./a/asyncLoc1.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test,t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"some random translation\\"}}}]);", + "/release/chunks/asyncLoc2-LOCALE1.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[17],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test+t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"blah\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"something else\\"}}}]);", + "/release/chunks/asyncLoc2-LOCALE2.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[17],{\\"./a/asyncLoc2.js\\":(s,_,n)=>{n.r(_);var o=n(\\"./a/strings1.loc.json\\"),t=n(\\"./a/strings2.loc.json\\");console.log(o.A.test+t.A.another)},\\"./a/strings1.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={test:\\"baz\\"}},\\"./a/strings2.loc.json\\":(s,_,n)=>{n.d(_,{A:()=>o});const o={another:\\"some random translation\\"}}}]);", + "/release/main-LOCALE1.js": "(()=>{var e,t,r,n={},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if(\\"object\\"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&\\"function\\"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&r;\\"object\\"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>\\"chunks/\\"+{17:\\"asyncLoc2\\",230:\\"async1\\",410:\\"asyncLoc1\\",421:\\"async2\\"}[e]+\\"-\\"+({17:1,410:1}[e]?\\"LOCALE1\\":\\"none\\")+\\".js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},a.l=(e,t,n,o)=>{if(r[e])r[e].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),u=0;u{i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var t=a.g.document;if(!e&&t&&(t.currentScript&&\\"SCRIPT\\"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName(\\"script\\");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),c=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&(\\"load\\"===r.type?\\"missing\\":r.type),i=r&&r.target&&r.target.src;c.message=\\"Loading chunk \\"+t+\\" failed.\\\\n(\\"+o+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=o,c.request=i,n[1](c)}}),\\"chunk-\\"+t,t)}};var t=(t,r)=>{var n,o,[i,c,s]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);s&&s(a)}for(t&&t(r);u{var e,t,r,n={},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if(\\"object\\"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&\\"function\\"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&r;\\"object\\"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>\\"chunks/\\"+{17:\\"asyncLoc2\\",230:\\"async1\\",410:\\"asyncLoc1\\",421:\\"async2\\"}[e]+\\"-\\"+({17:1,410:1}[e]?\\"LOCALE2\\":\\"none\\")+\\".js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},a.l=(e,t,n,o)=>{if(r[e])r[e].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),u=0;u{i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var t=a.g.document;if(!e&&t&&(t.currentScript&&\\"SCRIPT\\"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName(\\"script\\");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),c=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&(\\"load\\"===r.type?\\"missing\\":r.type),i=r&&r.target&&r.target.src;c.message=\\"Loading chunk \\"+t+\\" failed.\\\\n(\\"+o+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=o,c.request=i,n[1](c)}}),\\"chunk-\\"+t,t)}};var t=(t,r)=>{var n,o,[i,c,s]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);s&&s(a)}for(t&&t(r);u { @@ -56,7 +56,7 @@ console.log(\\"blah1\\"); /***/ }) }]);", - "/release/chunks/async2-none.js": "(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/chunks/async2-none.js": "(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./a/async2.js\\": /***/ (() => { @@ -67,7 +67,7 @@ console.log(\\"blah2\\"); }]);", "/release/chunks/asyncLoc1-LOCALE1.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[14],{ +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[410],{ /***/ \\"./a/asyncLoc1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -75,7 +75,7 @@ console.log(\\"blah2\\"); __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -83,7 +83,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"blah\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -94,7 +94,7 @@ const strings = {\\"test\\":\\"blah\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -103,7 +103,7 @@ const strings = {\\"another\\":\\"something else\\"}; }]);", "/release/chunks/asyncLoc1-LOCALE2.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[14],{ +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[410],{ /***/ \\"./a/asyncLoc1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -111,7 +111,7 @@ const strings = {\\"another\\":\\"something else\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test, _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -119,7 +119,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"baz\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -130,7 +130,7 @@ const strings = {\\"test\\":\\"baz\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"some random translation\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -139,7 +139,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; }]);", "/release/chunks/asyncLoc2-LOCALE1.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[5],{ +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[17],{ /***/ \\"./a/asyncLoc2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -147,7 +147,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -155,7 +155,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"blah\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -166,7 +166,7 @@ const strings = {\\"test\\":\\"blah\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"something else\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -175,7 +175,7 @@ const strings = {\\"another\\":\\"something else\\"}; }]);", "/release/chunks/asyncLoc2-LOCALE2.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[5],{ +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[17],{ /***/ \\"./a/asyncLoc2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -183,7 +183,7 @@ const strings = {\\"another\\":\\"something else\\"}; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\\"./a/strings1.loc.json\\"); /* harmony import */ var _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\\"./a/strings2.loc.json\\"); - console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"].test */ .Z.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"].another */ .Z.another); + console.log(_strings1_loc_json__WEBPACK_IMPORTED_MODULE_0__/* [\\"default\\"] */ .A.test + _strings2_loc_json__WEBPACK_IMPORTED_MODULE_1__/* [\\"default\\"] */ .A.another); /***/ }), @@ -191,7 +191,7 @@ __webpack_require__.r(__webpack_exports__); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"test\\":\\"baz\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -202,7 +202,7 @@ const strings = {\\"test\\":\\"baz\\"}; /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"Z\\": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); const strings = {\\"another\\":\\"some random translation\\"}; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (strings); @@ -301,7 +301,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"5\\":\\"asyncLoc2\\",\\"14\\":\\"asyncLoc1\\",\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-\\" + ({\\"5\\":1,\\"14\\":1}[chunkId]?\\"LOCALE1\\":\\"none\\") + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"17\\":\\"asyncLoc2\\",\\"230\\":\\"async1\\",\\"410\\":\\"asyncLoc1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-\\" + ({\\"17\\":1,\\"410\\":1}[chunkId]?\\"LOCALE1\\":\\"none\\") + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -347,6 +347,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -384,13 +385,13 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -409,7 +410,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 179: 0 +/******/ 792: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -493,7 +494,7 @@ const strings = {\\"another\\":\\"some random translation\\"}; /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 5).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\"));__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async1.js\\", 23));__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async2.js\\", 23)); +__webpack_require__.e(/* import() | asyncLoc1 */ 410).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 17).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\"));__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async1.js\\", 23));__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async2.js\\", 23)); /******/ })() ;", "/release/main-LOCALE2.js": "/******/ (() => { // webpackBootstrap @@ -587,7 +588,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"chunks/\\" + {\\"5\\":\\"asyncLoc2\\",\\"14\\":\\"asyncLoc1\\",\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-\\" + ({\\"5\\":1,\\"14\\":1}[chunkId]?\\"LOCALE2\\":\\"none\\") + \\".js\\"; +/******/ return \\"chunks/\\" + {\\"17\\":\\"asyncLoc2\\",\\"230\\":\\"async1\\",\\"410\\":\\"asyncLoc1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-\\" + ({\\"17\\":1,\\"410\\":1}[chunkId]?\\"LOCALE2\\":\\"none\\") + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -633,6 +634,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -670,13 +672,13 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -695,7 +697,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 179: 0 +/******/ 792: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -779,7 +781,7 @@ __webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bi /******/ /************************************************************************/ var __webpack_exports__ = {}; -__webpack_require__.e(/* import() | asyncLoc1 */ 14).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 5).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\"));__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async1.js\\", 23));__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async2.js\\", 23)); +__webpack_require__.e(/* import() | asyncLoc1 */ 410).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc1.js\\"));__webpack_require__.e(/* import() | asyncLoc2 */ 17).then(__webpack_require__.bind(__webpack_require__, \\"./a/asyncLoc2.js\\"));__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async1.js\\", 23));__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.t.bind(__webpack_require__, \\"./a/async2.js\\", 23)); /******/ })() ;", } diff --git a/webpack/webpack5-localization-plugin/src/test/__snapshots__/NoLocalizedFiles.test.ts.snap b/webpack/webpack5-localization-plugin/src/test/__snapshots__/NoLocalizedFiles.test.ts.snap index 8ca98a2f7b6..3f58b215dc1 100644 --- a/webpack/webpack5-localization-plugin/src/test/__snapshots__/NoLocalizedFiles.test.ts.snap +++ b/webpack/webpack5-localization-plugin/src/test/__snapshots__/NoLocalizedFiles.test.ts.snap @@ -2,10 +2,10 @@ exports[`LocalizationPlugin Handles non-localized compilations (minified): Content 1`] = ` Object { - "/release/async1-none-48a722dc54a6c9ffce23.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./async1.js\\":(o,s,c)=>{function e(){console.log(\\"foo1\\")}c.r(s),c.d(s,{foo:()=>e})}}]);", - "/release/async2-none-533c236877cb65c0fb15.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./async2.js\\":(o,s,c)=>{function e(){console.log(\\"foo2\\")}c.r(s),c.d(s,{foo:()=>e})}}]);", - "/release/mainSingleChunk-none-eff6cc03939489567a5a.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"async1-none-48a722dc54a6c9ffce23.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,l;if(void 0!==n)for(var u=document.getElementsByTagName(\\"script\\"),c=0;c{a.onerror=a.onload=null,clearTimeout(p);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},p=setTimeout(f.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={315:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),l=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",l.name=\\"ChunkLoadError\\",l.type=i,l.request=a,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,l,u]=t,c=0;if(a.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);u&&u(o)}for(r&&r(t);ce.foo()))})();", - "/release/mainTwoChunks-none-934cc733d67e87a6ee11.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>({515:\\"async1\\",989:\\"async2\\"}[e]+\\"-none-\\"+{515:\\"48a722dc54a6c9ffce23\\",989:\\"533c236877cb65c0fb15\\"}[e]+\\".js\\"),o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,l;if(void 0!==n)for(var c=document.getElementsByTagName(\\"script\\"),s=0;s{a.onerror=a.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(f.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={903:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),l=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",l.name=\\"ChunkLoadError\\",l.type=i,l.request=a,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,l,c]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);c&&c(o)}for(r&&r(t);se.foo())),o.e(989).then(o.bind(o,\\"./async2.js\\")).then((e=>e.foo()))})();", + "/release/async1-none-095e08ce2f180ba75e57.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[230],{\\"./async1.js\\":(o,s,c)=>{function e(){console.log(\\"foo1\\")}c.r(s),c.d(s,{foo:()=>e})}}]);", + "/release/async2-none-53087f3320703e9ab170.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./async2.js\\":(o,s,c)=>{function e(){console.log(\\"foo2\\")}c.r(s),c.d(s,{foo:()=>e})}}]);", + "/release/mainSingleChunk-none-fe5ff39af16b700d1296.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"async1-none-095e08ce2f180ba75e57.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,l;if(void 0!==n)for(var c=document.getElementsByTagName(\\"script\\"),s=0;s{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={331:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),l=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",l.name=\\"ChunkLoadError\\",l.type=a,l.request=i,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,a,[i,l,c]=t,s=0;if(i.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);c&&c(o)}for(r&&r(t);se.foo()))})();", + "/release/mainTwoChunks-none-674f2557d771fad64145.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>({230:\\"async1\\",421:\\"async2\\"}[e]+\\"-none-\\"+{230:\\"095e08ce2f180ba75e57\\",421:\\"53087f3320703e9ab170\\"}[e]+\\".js\\"),o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),l=0;l{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={580:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;c.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",c.name=\\"ChunkLoadError\\",c.type=a,c.request=i,n[1](c)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some((r=>0!==e[r]))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);le.foo())),o.e(421).then(o.bind(o,\\"./async2.js\\")).then((e=>e.foo()))})();", } `; @@ -15,37 +15,37 @@ exports[`LocalizationPlugin Handles non-localized compilations (minified): Warni exports[`LocalizationPlugin Handles non-localized compilations (unminified): Content 1`] = ` Object { - "/release/async1-none-a138af13bd80cae8310a.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[515],{ + "/release/async1-none-500fdaa5193c2a4703d3.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[230],{ /***/ \\"./async1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"foo\\": () => (/* binding */ foo) +/* harmony export */ foo: () => (/* binding */ foo) /* harmony export */ }); function foo() { console.log('foo1'); } /***/ }) }]);", - "/release/async2-none-0c142ab36ce8fdb6d445.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ + "/release/async2-none-05090276588271c11ac2.js": "\\"use strict\\"; +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./async2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"foo\\": () => (/* binding */ foo) +/* harmony export */ foo: () => (/* binding */ foo) /* harmony export */ }); function foo() { console.log('foo2'); } /***/ }) }]);", - "/release/mainSingleChunk-none-508ef9a361c3744d4242.js": "/******/ (() => { // webpackBootstrap + "/release/mainSingleChunk-none-512fa19f5223ac2c253a.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -106,7 +106,7 @@ function foo() { console.log('foo2'); } /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"\\" + \\"async1\\" + \\"-none-\\" + \\"a138af13bd80cae8310a\\" + \\".js\\"; +/******/ return \\"\\" + \\"async1\\" + \\"-none-\\" + \\"500fdaa5193c2a4703d3\\" + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -152,6 +152,7 @@ function foo() { console.log('foo2'); } /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -189,13 +190,13 @@ function foo() { console.log('foo2'); } /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -214,7 +215,7 @@ function foo() { console.log('foo2'); } /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 315: 0 +/******/ 331: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -298,10 +299,10 @@ function foo() { console.log('foo2'); } /******/ /************************************************************************/ var __webpack_exports__ = {}; -console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./async1.js\\")).then(mod => mod.foo()); +console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./async1.js\\")).then(mod => mod.foo()); /******/ })() ;", - "/release/mainTwoChunks-none-b149e5d15775d7f6fd87.js": "/******/ (() => { // webpackBootstrap + "/release/mainTwoChunks-none-49b1bffa9bef70a8a6eb.js": "/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ /******/ // The module cache @@ -362,7 +363,7 @@ console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).t /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"\\" + {\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\"-none-\\" + {\\"515\\":\\"a138af13bd80cae8310a\\",\\"989\\":\\"0c142ab36ce8fdb6d445\\"}[chunkId] + \\".js\\"; +/******/ return \\"\\" + {\\"230\\":\\"async1\\",\\"421\\":\\"async2\\"}[chunkId] + \\"-none-\\" + {\\"230\\":\\"500fdaa5193c2a4703d3\\",\\"421\\":\\"05090276588271c11ac2\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -408,6 +409,7 @@ console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).t /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -445,13 +447,13 @@ console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).t /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -470,7 +472,7 @@ console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).t /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 903: 0 +/******/ 580: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -554,7 +556,7 @@ console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).t /******/ /************************************************************************/ var __webpack_exports__ = {}; -console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./async1.js\\")).then(mod => mod.foo());__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.bind(__webpack_require__, \\"./async2.js\\")).then(mod => mod.foo()); +console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./async1.js\\")).then(mod => mod.foo());__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.bind(__webpack_require__, \\"./async2.js\\")).then(mod => mod.foo()); /******/ })() ;", } diff --git a/webpack/webpack5-localization-plugin/src/test/__snapshots__/NonHashedNonLocalizedAssets.test.ts.snap b/webpack/webpack5-localization-plugin/src/test/__snapshots__/NonHashedNonLocalizedAssets.test.ts.snap index 93dbcb8b05b..c9f9c33f6e8 100644 --- a/webpack/webpack5-localization-plugin/src/test/__snapshots__/NonHashedNonLocalizedAssets.test.ts.snap +++ b/webpack/webpack5-localization-plugin/src/test/__snapshots__/NonHashedNonLocalizedAssets.test.ts.snap @@ -2,10 +2,10 @@ exports[`TrueHashPlugin Handles non-localized non-hashed compilations (minified): Content 1`] = ` Object { - "/release/async1.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[515],{\\"./async1.js\\":(o,s,c)=>{function e(){console.log(\\"foo1\\")}c.r(s),c.d(s,{foo:()=>e})}}]);", - "/release/async2.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[989],{\\"./async2.js\\":(o,s,c)=>{function e(){console.log(\\"foo2\\")}c.r(s),c.d(s,{foo:()=>e})}}]);", - "/release/mainSingleChunk.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"async1.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,l;if(void 0!==n)for(var u=document.getElementsByTagName(\\"script\\"),c=0;c{a.onerror=a.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={315:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),l=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",l.name=\\"ChunkLoadError\\",l.type=i,l.request=a,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,l,u]=t,c=0;if(a.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);u&&u(o)}for(r&&r(t);ce.foo()))})();", - "/release/mainTwoChunks.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>({515:\\"async1\\",989:\\"async2\\"}[e]+\\".js\\"),o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,l;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),c=0;c{a.onerror=a.onload=null,clearTimeout(p);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},p=setTimeout(d.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={903:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),l=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",l.name=\\"ChunkLoadError\\",l.type=i,l.request=a,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,l,s]=t,c=0;if(a.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);s&&s(o)}for(r&&r(t);ce.foo())),o.e(989).then(o.bind(o,\\"./async2.js\\")).then((e=>e.foo()))})();", + "/release/async1.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[230],{\\"./async1.js\\":(o,s,c)=>{function e(){console.log(\\"foo1\\")}c.r(s),c.d(s,{foo:()=>e})}}]);", + "/release/async2.js": "\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[421],{\\"./async2.js\\":(o,s,c)=>{function e(){console.log(\\"foo2\\")}c.r(s),c.d(s,{foo:()=>e})}}]);", + "/release/mainSingleChunk.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>\\"async1.js\\",o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,i)=>{if(e[r])e[r].push(t);else{var a,l;if(void 0!==n)for(var s=document.getElementsByTagName(\\"script\\"),c=0;c{a.onerror=a.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={331:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=i);var a=o.p+o.u(r),l=new Error;o.l(a,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var i=t&&(\\"load\\"===t.type?\\"missing\\":t.type),a=t&&t.target&&t.target.src;l.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+i+\\": \\"+a+\\")\\",l.name=\\"ChunkLoadError\\",l.type=i,l.request=a,n[1](l)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,i,[a,l,s]=t,c=0;if(a.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);s&&s(o)}for(r&&r(t);ce.foo()))})();", + "/release/mainTwoChunks.js": "(()=>{var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>({230:\\"async1\\",421:\\"async2\\"}[e]+\\".js\\"),o.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,s;if(void 0!==n)for(var l=document.getElementsByTagName(\\"script\\"),c=0;c{i.onerror=i.onload=null,clearTimeout(d);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:\\"timeout\\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},o.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+\\"\\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\\"SCRIPT\\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\\"script\\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),o.p=e})(),(()=>{var e={580:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),s=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\\"load\\"===t.type?\\"missing\\":t.type),i=t&&t.target&&t.target.src;s.message=\\"Loading chunk \\"+r+\\" failed.\\\\n(\\"+a+\\": \\"+i+\\")\\",s.name=\\"ChunkLoadError\\",s.type=a,s.request=i,n[1](s)}}),\\"chunk-\\"+r,r)}};var r=(r,t)=>{var n,a,[i,s,l]=t,c=0;if(i.some((r=>0!==e[r]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);l&&l(o)}for(r&&r(t);ce.foo())),o.e(421).then(o.bind(o,\\"./async2.js\\")).then((e=>e.foo()))})();", } `; @@ -16,14 +16,14 @@ exports[`TrueHashPlugin Handles non-localized non-hashed compilations (minified) exports[`TrueHashPlugin Handles non-localized non-hashed compilations (unminified): Content 1`] = ` Object { "/release/async1.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[515],{ +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[230],{ /***/ \\"./async1.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"foo\\": () => (/* binding */ foo) +/* harmony export */ foo: () => (/* binding */ foo) /* harmony export */ }); function foo() { console.log('foo1'); } @@ -31,14 +31,14 @@ function foo() { console.log('foo1'); } }]);", "/release/async2.js": "\\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[989],{ +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[421],{ /***/ \\"./async2.js\\": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"foo\\": () => (/* binding */ foo) +/* harmony export */ foo: () => (/* binding */ foo) /* harmony export */ }); function foo() { console.log('foo2'); } @@ -152,6 +152,7 @@ function foo() { console.log('foo2'); } /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -189,13 +190,13 @@ function foo() { console.log('foo2'); } /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -214,7 +215,7 @@ function foo() { console.log('foo2'); } /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 315: 0 +/******/ 331: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -298,7 +299,7 @@ function foo() { console.log('foo2'); } /******/ /************************************************************************/ var __webpack_exports__ = {}; -console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./async1.js\\")).then(mod => mod.foo()); +console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./async1.js\\")).then(mod => mod.foo()); /******/ })() ;", "/release/mainTwoChunks.js": "/******/ (() => { // webpackBootstrap @@ -362,7 +363,7 @@ console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).t /******/ // This function allow to reference async chunks /******/ __webpack_require__.u = (chunkId) => { /******/ // return url for filenames based on template -/******/ return \\"\\" + {\\"515\\":\\"async1\\",\\"989\\":\\"async2\\"}[chunkId] + \\".js\\"; +/******/ return \\"\\" + {\\"230\\":\\"async1\\",\\"421\\":\\"async2\\"}[chunkId] + \\".js\\"; /******/ }; /******/ })(); /******/ @@ -408,6 +409,7 @@ console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).t /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -445,13 +447,13 @@ console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).t /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -470,7 +472,7 @@ console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).t /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 903: 0 +/******/ 580: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -554,7 +556,7 @@ console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).t /******/ /************************************************************************/ var __webpack_exports__ = {}; -console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 515).then(__webpack_require__.bind(__webpack_require__, \\"./async1.js\\")).then(mod => mod.foo());__webpack_require__.e(/* import() | async2 */ 989).then(__webpack_require__.bind(__webpack_require__, \\"./async2.js\\")).then(mod => mod.foo()); +console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async1 */ 230).then(__webpack_require__.bind(__webpack_require__, \\"./async1.js\\")).then(mod => mod.foo());__webpack_require__.e(/* import() | async2 */ 421).then(__webpack_require__.bind(__webpack_require__, \\"./async2.js\\")).then(mod => mod.foo()); /******/ })() ;", } diff --git a/webpack/webpack5-localization-plugin/src/trueHashes.ts b/webpack/webpack5-localization-plugin/src/trueHashes.ts index ad3d083a386..c7b479edebd 100644 --- a/webpack/webpack5-localization-plugin/src/trueHashes.ts +++ b/webpack/webpack5-localization-plugin/src/trueHashes.ts @@ -223,9 +223,10 @@ export function updateAssetHashes({ compilation.renameAsset(jsAssetName, newJsFilename); if (locale) { - const filesForChunkName: Record | undefined = filesByChunkName?.get( - chunk.name - ); + const filesForChunkName: Record | undefined = chunk.name + ? filesByChunkName?.get(chunk.name) + : undefined; + if (filesForChunkName) { filesForChunkName[locale] = newJsFilename; } diff --git a/webpack/webpack5-module-minifier-plugin/package.json b/webpack/webpack5-module-minifier-plugin/package.json index 69c3dadc796..f41c9de5779 100644 --- a/webpack/webpack5-module-minifier-plugin/package.json +++ b/webpack/webpack5-module-minifier-plugin/package.json @@ -33,8 +33,8 @@ "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*", "@rushstack/module-minifier": "workspace:*", - "memfs": "3.4.3", - "webpack": "~5.82.1" + "memfs": "4.12.0", + "webpack": "~5.95.0" }, "sideEffects": false, "peerDependenciesMeta": { diff --git a/webpack/webpack5-module-minifier-plugin/src/ModuleMinifierPlugin.ts b/webpack/webpack5-module-minifier-plugin/src/ModuleMinifierPlugin.ts index fb0eaf5d79f..243a5a461e0 100644 --- a/webpack/webpack5-module-minifier-plugin/src/ModuleMinifierPlugin.ts +++ b/webpack/webpack5-module-minifier-plugin/src/ModuleMinifierPlugin.ts @@ -196,7 +196,10 @@ export class ModuleMinifierPlugin implements WebpackPluginInstance { parser.hooks.program.tap(PLUGIN_NAME, (program: unknown, comments: Comment[]) => { const relevantComments: Comment[] = comments.filter(isLicenseComment); if (comments.length > 0) { - const module: Module = parser.state.module; + // Webpack's typings now restrict the properties on factoryMeta for unknown reasons + const module: { factoryMeta?: IFactoryMeta } = parser.state.module as unknown as { + factoryMeta?: IFactoryMeta; + }; if (!module.factoryMeta) { module.factoryMeta = { comments: relevantComments @@ -316,7 +319,12 @@ export class ModuleMinifierPlugin implements WebpackPluginInstance { return source; } - const id: string | number = compilation.chunkGraph.getModuleId(mod); + const id: string | number | null = compilation.chunkGraph.getModuleId(mod); + + if (id === null) { + // This module has no id. Abandon per-module minification. + return source; + } const metadata: IModuleStats = getOrCreateMetadata(mod); const cachedResult: ISourceCacheEntry | undefined = sourceCache.get(source); diff --git a/webpack/webpack5-module-minifier-plugin/src/test/AmdExternals.test.ts b/webpack/webpack5-module-minifier-plugin/src/test/AmdExternals.test.ts index 08914292ba2..d5aa941a91f 100644 --- a/webpack/webpack5-module-minifier-plugin/src/test/AmdExternals.test.ts +++ b/webpack/webpack5-module-minifier-plugin/src/test/AmdExternals.test.ts @@ -4,7 +4,7 @@ jest.disableAutomock(); import { promisify } from 'util'; -import webpack, { type Stats } from 'webpack'; +import webpack, { type Stats, type InputFileSystem, type OutputFileSystem } from 'webpack'; import { Volume } from 'memfs/lib/volume'; import { type IModuleMinifier, LocalMinifier } from '@rushstack/module-minifier'; @@ -56,8 +56,8 @@ async function amdExternalsTest(minifier: IModuleMinifier): Promise { plugins: [minifierPlugin, metadataPlugin] }); - compiler.inputFileSystem = memoryFileSystem; - compiler.outputFileSystem = memoryFileSystem; + compiler.inputFileSystem = memoryFileSystem as unknown as InputFileSystem; + compiler.outputFileSystem = memoryFileSystem as unknown as OutputFileSystem; const stats: Stats | undefined = await promisify(compiler.run.bind(compiler))(); await promisify(compiler.close.bind(compiler)); diff --git a/webpack/webpack5-module-minifier-plugin/src/test/MultipleRuntimes.test.ts b/webpack/webpack5-module-minifier-plugin/src/test/MultipleRuntimes.test.ts index 9482ee472d3..bcb14e9d159 100644 --- a/webpack/webpack5-module-minifier-plugin/src/test/MultipleRuntimes.test.ts +++ b/webpack/webpack5-module-minifier-plugin/src/test/MultipleRuntimes.test.ts @@ -4,7 +4,7 @@ jest.disableAutomock(); import { promisify } from 'util'; -import webpack, { type Stats } from 'webpack'; +import webpack, { type Stats, type InputFileSystem, type OutputFileSystem } from 'webpack'; import { Volume } from 'memfs/lib/volume'; import { ModuleMinifierPlugin } from '../ModuleMinifierPlugin'; @@ -50,8 +50,8 @@ async function multipleRuntimesTest(minifier: IModuleMinifier): Promise { plugins: [minifierPlugin, metadataPlugin] }); - compiler.inputFileSystem = memoryFileSystem; - compiler.outputFileSystem = memoryFileSystem; + compiler.inputFileSystem = memoryFileSystem as unknown as InputFileSystem; + compiler.outputFileSystem = memoryFileSystem as unknown as OutputFileSystem; const stats: Stats | undefined = await promisify(compiler.run.bind(compiler))(); await promisify(compiler.close.bind(compiler)); diff --git a/webpack/webpack5-module-minifier-plugin/src/test/RecordMetadataPlugin.ts b/webpack/webpack5-module-minifier-plugin/src/test/RecordMetadataPlugin.ts index a6347cf5db2..32370533fbd 100644 --- a/webpack/webpack5-module-minifier-plugin/src/test/RecordMetadataPlugin.ts +++ b/webpack/webpack5-module-minifier-plugin/src/test/RecordMetadataPlugin.ts @@ -36,9 +36,9 @@ export class RecordMetadataPlugin implements WebpackPluginInstance { metadata.byAssetFilename = metadataByAssetFileName; for (const module of compilation.modules) { - const id: string | number = chunkGraph.getModuleId(module); + const id: string | number | null = chunkGraph.getModuleId(module); const metadataForModule: IModuleStats | undefined = metadataByModule.get(module); - if (metadataForModule) { + if (metadataForModule && id !== null) { const flattenedModule: IFlattenedModuleMetadata = new Map(); for (const [chunk, hash] of metadataForModule.hashByChunk) { const chunkId: string | number | null = chunk.id; diff --git a/webpack/webpack5-module-minifier-plugin/src/test/__snapshots__/AmdExternals.test.ts.snap b/webpack/webpack5-module-minifier-plugin/src/test/__snapshots__/AmdExternals.test.ts.snap index 6fa59e4970b..444c8ca12a7 100644 --- a/webpack/webpack5-module-minifier-plugin/src/test/__snapshots__/AmdExternals.test.ts.snap +++ b/webpack/webpack5-module-minifier-plugin/src/test/__snapshots__/AmdExternals.test.ts.snap @@ -3,23 +3,23 @@ exports[`ModuleMinifierPlugin Handles AMD externals (mock): Content 1`] = ` Object { "/release/async.js": "/*! For license information please see async.js.LICENSE.txt */ -// Begin Asset Hash=9cea223c5b52c3d2d453434504be210b33d1d8257f6a701509abfe7888323dcb +// Begin Asset Hash=ac6de72b824de4fb2378d67eedab44cba6dabd6a461ff7e34e193f5403082522 \\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[931],{ +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[157],{ -/***/ 417: +/***/ 541: -// Begin Module Hash=094ab5223af3c15d458c0cef66f228ac5ef757e87c865e83b0c812f6e36777ae +// Begin Module Hash=6f667256aae962bddfb95cc093f6b523502659b0ce95fcfd296ed47393e4e9ec /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"foo\\": () => (/* binding */ foo) +/* harmony export */ foo: () => (/* binding */ foo) /* harmony export */ }); -/* harmony import */ var bar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(791); +/* harmony import */ var bar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(885); /* harmony import */ var bar__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(bar__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var baz__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(506); +/* harmony import */ var baz__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(653); /* harmony import */ var baz__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(baz__WEBPACK_IMPORTED_MODULE_1__); // @license MIT @@ -35,23 +35,23 @@ function foo() { bar__WEBPACK_IMPORTED_MODULE_0___default().a(); baz__WEBPACK_IM // End Asset", "/release/async.js.LICENSE.txt": "// @license MIT ", - "/release/main.js": "// Begin Asset Hash=72f872cd36fc291394f263bf0ff812893481f2651f7475ccf67fcd0d60b3f7be -define([\\"bar\\",\\"baz\\"], (__WEBPACK_EXTERNAL_MODULE__791__, __WEBPACK_EXTERNAL_MODULE__506__) => { return /******/ (() => { // webpackBootstrap + "/release/main.js": "// Begin Asset Hash=0989d4bfc3cf576d35603251ca4bc8a57ab7bf83607d14d7767d626290aeb61f +define([\\"bar\\",\\"baz\\"], (__WEBPACK_EXTERNAL_MODULE__885__, __WEBPACK_EXTERNAL_MODULE__653__) => { return /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 791: +/***/ 885: /***/ ((module) => { \\"use strict\\"; -module.exports = __WEBPACK_EXTERNAL_MODULE__791__; +module.exports = __WEBPACK_EXTERNAL_MODULE__885__; /***/ }), -/***/ 506: +/***/ 653: /***/ ((module) => { \\"use strict\\"; -module.exports = __WEBPACK_EXTERNAL_MODULE__506__; +module.exports = __WEBPACK_EXTERNAL_MODULE__653__; /***/ }) @@ -173,6 +173,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__506__; /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -210,13 +211,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__506__; /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -235,7 +236,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__506__; /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 179: 0 +/******/ 792: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -319,12 +320,8 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__506__; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. -(() => { // A comment -console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async */ 931).then(__webpack_require__.bind(__webpack_require__, 417)).then(mod => mod.foo()); -})(); - +console.log(\\"Do stuff\\");__webpack_require__.e(/* import() | async */ 157).then(__webpack_require__.bind(__webpack_require__, 541)).then(mod => mod.foo()); /******/ return __webpack_exports__; /******/ })() ; @@ -343,16 +340,16 @@ Object { }, "async.js" => Object { "positionByModuleId": Map { - 417 => Object { - "charLength": 1006, + 541 => Object { + "charLength": 1004, "charOffset": 240, }, }, }, }, "byModule": Map { - 417 => Map { - 931 => 1010, + 541 => Map { + 157 => 1008, }, }, } @@ -363,11 +360,11 @@ exports[`ModuleMinifierPlugin Handles AMD externals (mock): Warnings 1`] = `Arra exports[`ModuleMinifierPlugin Handles AMD externals (terser): Content 1`] = ` Object { "/release/async.js": "/*! For license information please see async.js.LICENSE.txt */ -\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[931],{417:((e,t,n)=>{n.r(t),n.d(t,{foo:()=>s});var a=n(791),i=n.n(a),r=n(506),o=n.n(r);function s(){i().a(),o().b()}console.log(\\"Test character lengths: \\\\ufeff￯\\")}) +\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[157],{541:((e,t,n)=>{n.r(t),n.d(t,{foo:()=>s});var a=n(885),i=n.n(a),r=n(653),o=n.n(r);function s(){i().a(),o().b()}console.log(\\"Test character lengths: \\\\ufeff￯\\")}) }]);", "/release/async.js.LICENSE.txt": "// @license MIT ", - "/release/main.js": "define([\\"bar\\",\\"baz\\"],((e,t)=>(()=>{var n,a={791:t=>{\\"use strict\\";t.exports=e},506:e=>{\\"use strict\\";e.exports=t}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return a[e](n,n.exports,r),n.exports}r.m=a,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>\\"async.js\\",r.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r.l=(e,t,a,i)=>{if(n[e])n[e].push(t);else{var o,s;if(void 0!==a)for(var c=document.getElementsByTagName(\\"script\\"),d=0;d{o.onerror=o.onload=null,clearTimeout(f);var i=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((e=>e(a))),t)return t(a)},f=setTimeout(u.bind(null,void 0,{type:\\"timeout\\",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),s&&document.head.appendChild(o)}},r.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+\\"\\");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName(\\"script\\");if(n.length)for(var a=n.length-1;a>-1&&!e;)e=n[a--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),r.p=e})(),(()=>{var e={179:0};r.f.j=(t,n)=>{var a=r.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var i=new Promise(((n,i)=>a=e[t]=[n,i]));n.push(a[2]=i);var o=r.p+r.u(t),s=new Error;r.l(o,(n=>{if(r.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=n&&(\\"load\\"===n.type?\\"missing\\":n.type),o=n&&n.target&&n.target.src;s.message=\\"Loading chunk \\"+t+\\" failed.\\\\n(\\"+i+\\": \\"+o+\\")\\",s.name=\\"ChunkLoadError\\",s.type=i,s.request=o,a[1](s)}}),\\"chunk-\\"+t,t)}};var t=(t,n)=>{var a,i,[o,s,c]=n,d=0;if(o.some((t=>0!==e[t]))){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);if(c)c(r)}for(t&&t(n);de.foo())),{}})()));", + "/release/main.js": "define([\\"bar\\",\\"baz\\"],((e,t)=>(()=>{var n,a={885:t=>{\\"use strict\\";t.exports=e},653:e=>{\\"use strict\\";e.exports=t}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return a[e](n,n.exports,r),n.exports}r.m=a,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>\\"async.js\\",r.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r.l=(e,t,a,i)=>{if(n[e])n[e].push(t);else{var o,s;if(void 0!==a)for(var c=document.getElementsByTagName(\\"script\\"),d=0;d{o.onerror=o.onload=null,clearTimeout(f);var i=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((e=>e(a))),t)return t(a)},f=setTimeout(u.bind(null,void 0,{type:\\"timeout\\",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),s&&document.head.appendChild(o)}},r.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+\\"\\");var t=r.g.document;if(!e&&t&&(t.currentScript&&\\"SCRIPT\\"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName(\\"script\\");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),r.p=e})(),(()=>{var e={792:0};r.f.j=(t,n)=>{var a=r.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var i=new Promise(((n,i)=>a=e[t]=[n,i]));n.push(a[2]=i);var o=r.p+r.u(t),s=new Error;r.l(o,(n=>{if(r.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=n&&(\\"load\\"===n.type?\\"missing\\":n.type),o=n&&n.target&&n.target.src;s.message=\\"Loading chunk \\"+t+\\" failed.\\\\n(\\"+i+\\": \\"+o+\\")\\",s.name=\\"ChunkLoadError\\",s.type=i,s.request=o,a[1](s)}}),\\"chunk-\\"+t,t)}};var t=(t,n)=>{var a,i,[o,s,c]=n,d=0;if(o.some((t=>0!==e[t]))){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);if(c)c(r)}for(t&&t(n);de.foo())),{}})()));", } `; @@ -381,7 +378,7 @@ Object { }, "async.js" => Object { "positionByModuleId": Map { - 417 => Object { + 541 => Object { "charLength": 154, "charOffset": 135, }, @@ -389,8 +386,8 @@ Object { }, }, "byModule": Map { - 417 => Map { - 931 => 156, + 541 => Map { + 157 => 156, }, }, } diff --git a/webpack/webpack5-module-minifier-plugin/src/test/__snapshots__/MultipleRuntimes.test.ts.snap b/webpack/webpack5-module-minifier-plugin/src/test/__snapshots__/MultipleRuntimes.test.ts.snap index 148d11b20b9..651952258ac 100644 --- a/webpack/webpack5-module-minifier-plugin/src/test/__snapshots__/MultipleRuntimes.test.ts.snap +++ b/webpack/webpack5-module-minifier-plugin/src/test/__snapshots__/MultipleRuntimes.test.ts.snap @@ -3,19 +3,19 @@ exports[`ModuleMinifierPlugin Handles multiple runtimes (mock): Content 1`] = ` Object { "/release/async-1.js": "/*! For license information please see async-1.js.LICENSE.txt */ -// Begin Asset Hash=f2afd143b6eeab6a5841dc216ba6be5af46acf4e5d593c9e7caec235d6ff5421 +// Begin Asset Hash=cccf84247d226f17cdd92b3f77aaf9bb21778110fabcb75701abe542791e3c64 \\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[842],{ +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[527],{ -/***/ 877: +/***/ 923: -// Begin Module Hash=242f43d36db985a6393fcf496194dcd87270dda21fb4f6e6ad142342f8f24bed +// Begin Module Hash=371cb4826740509b29e1cfede618ecb8bcd12f587e57062466b425e2d93ea34e /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"async1\\": () => (/* binding */ async1) +/* harmony export */ async1: () => (/* binding */ async1) /* harmony export */ }); // @license BAR function async1() { console.log('async-1'); } @@ -25,16 +25,16 @@ function async1() { console.log('async-1'); } // End Module , -/***/ 417: +/***/ 541: -// Begin Module Hash=512c272f57e99a3eaca321a1a5eabe6cda66174065a6487e110aeca2459860a5 +// Begin Module Hash=445eb01e9f53ea96b925fbefbc4d13fdd2ca421fb980991639b16dcabad2679e /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"async1\\": () => (/* reexport safe */ _async_1__WEBPACK_IMPORTED_MODULE_0__.async1) +/* harmony export */ async1: () => (/* reexport safe */ _async_1__WEBPACK_IMPORTED_MODULE_0__.async1) /* harmony export */ }); -/* harmony import */ var _async_1__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(877); +/* harmony import */ var _async_1__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(923); // @license MIT @@ -50,19 +50,19 @@ function async1() { console.log('async-1'); } // @license MIT ", "/release/async-2.js": "/*! For license information please see async-2.js.LICENSE.txt */ -// Begin Asset Hash=c4b4cb8f0c3f73f6a855f73948b66aeb5cc9b1a6993279946fff7983e81c4205 +// Begin Asset Hash=0a5a7db478ffd1ab090cffb0f7d1a62d594bc18bc000e34486e707c422337daf \\"use strict\\"; -(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[235],{ +(self[\\"webpackChunk\\"] = self[\\"webpackChunk\\"] || []).push([[324],{ -/***/ 531: +/***/ 454: -// Begin Module Hash=9c112f535bd6a83cb3435abbcdaab57e8f83d87f69fa7e60ae9ff2332bea40e8 +// Begin Module Hash=139c039d17d50f9372fd6e8cdc278502137616184a7aa55e4b0558ec6175ff56 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"a2\\": () => (/* binding */ a2) +/* harmony export */ a2: () => (/* binding */ a2) /* harmony export */ }); // @license BAZ function a2() { console.log('async-2'); } @@ -72,16 +72,16 @@ function a2() { console.log('async-2'); } // End Module , -/***/ 417: +/***/ 541: -// Begin Module Hash=09c420e184884da613e741adce49338dda85f4f3db2690e83ffa61a78c577368 +// Begin Module Hash=f2cc8ece05d708e198919711a30fc938469874987e096021c0ce8f0461b2995f /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ \\"a2\\": () => (/* reexport safe */ _async_2__WEBPACK_IMPORTED_MODULE_1__.a2) +/* harmony export */ a2: () => (/* reexport safe */ _async_2__WEBPACK_IMPORTED_MODULE_1__.a2) /* harmony export */ }); -/* harmony import */ var _async_2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(531); +/* harmony import */ var _async_2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(454); // @license MIT @@ -96,7 +96,7 @@ function a2() { console.log('async-2'); } "/release/async-2.js.LICENSE.txt": "// @license BAZ // @license MIT ", - "/release/entry1.js": "// Begin Asset Hash=9b3f695f82464faeb6d028233ff625524385d20ba166e9d1a918c72ce92f1e97 + "/release/entry1.js": "// Begin Asset Hash=3e021ff8610bb1733f69ae70a0fe4ff10129c92ae0ae91037da95b418b3dbd2d /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ @@ -204,6 +204,7 @@ function a2() { console.log('async-2'); } /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -241,13 +242,13 @@ function a2() { console.log('async-2'); } /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -266,7 +267,7 @@ function a2() { console.log('async-2'); } /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 688: 0 +/******/ 834: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -352,12 +353,12 @@ function a2() { console.log('async-2'); } var __webpack_exports__ = {}; // A comment console.log(\\"Do stuff\\"); -__webpack_require__.e(/* import() | async-1 */ 842).then(__webpack_require__.bind(__webpack_require__, 417)).then(mod => mod.async1()); -__webpack_require__.e(/* import() | async-1 */ 842).then(__webpack_require__.bind(__webpack_require__, 877)).then(mod => mod.async1()); +__webpack_require__.e(/* import() | async-1 */ 527).then(__webpack_require__.bind(__webpack_require__, 541)).then(mod => mod.async1()); +__webpack_require__.e(/* import() | async-1 */ 527).then(__webpack_require__.bind(__webpack_require__, 923)).then(mod => mod.async1()); /******/ })() ; // End Asset", - "/release/entry2.js": "// Begin Asset Hash=a13ce94b2a5285d3d452baf233bb91015174151262a772d1875c6aebad0be66f + "/release/entry2.js": "// Begin Asset Hash=247a21e8e411b7b86867ba1402d0dfce2cab8779947a07e789f0e778243ac5cc /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({}); /************************************************************************/ @@ -465,6 +466,7 @@ __webpack_require__.e(/* import() | async-1 */ 842).then(__webpack_require__.bin /******/ script.setAttribute(\\"nonce\\", __webpack_require__.nc); /******/ } /******/ +/******/ /******/ script.src = url; /******/ } /******/ inProgress[url] = [done]; @@ -502,13 +504,13 @@ __webpack_require__.e(/* import() | async-1 */ 842).then(__webpack_require__.bin /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\"\\"; /******/ var document = __webpack_require__.g.document; /******/ if (!scriptUrl && document) { -/******/ if (document.currentScript) +/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') /******/ scriptUrl = document.currentScript.src; /******/ if (!scriptUrl) { /******/ var scripts = document.getElementsByTagName(\\"script\\"); /******/ if(scripts.length) { /******/ var i = scripts.length - 1; -/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src; +/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src; /******/ } /******/ } /******/ } @@ -527,7 +529,7 @@ __webpack_require__.e(/* import() | async-1 */ 842).then(__webpack_require__.bin /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded /******/ var installedChunks = { -/******/ 887: 0 +/******/ 441: 0 /******/ }; /******/ /******/ __webpack_require__.f.j = (chunkId, promises) => { @@ -613,8 +615,8 @@ __webpack_require__.e(/* import() | async-1 */ 842).then(__webpack_require__.bin var __webpack_exports__ = {}; // A comment console.log(\\"Do stuff\\"); -__webpack_require__.e(/* import() | async-2 */ 235).then(__webpack_require__.bind(__webpack_require__, 417)).then(mod => mod.a2()); -__webpack_require__.e(/* import() | async-2 */ 235).then(__webpack_require__.bind(__webpack_require__, 531)).then(mod => mod.a2()); +__webpack_require__.e(/* import() | async-2 */ 324).then(__webpack_require__.bind(__webpack_require__, 541)).then(mod => mod.a2()); +__webpack_require__.e(/* import() | async-2 */ 324).then(__webpack_require__.bind(__webpack_require__, 454)).then(mod => mod.a2()); /******/ })() ; // End Asset", @@ -634,39 +636,39 @@ Object { }, "async-1.js" => Object { "positionByModuleId": Map { - 877 => Object { - "charLength": 452, + 923 => Object { + "charLength": 450, "charOffset": 242, }, - 417 => Object { - "charLength": 499, - "charOffset": 709, + 541 => Object { + "charLength": 497, + "charOffset": 707, }, }, }, "async-2.js" => Object { "positionByModuleId": Map { - 531 => Object { - "charLength": 440, + 454 => Object { + "charLength": 438, "charOffset": 242, }, - 417 => Object { - "charLength": 491, - "charOffset": 697, + 541 => Object { + "charLength": 489, + "charOffset": 695, }, }, }, }, "byModule": Map { - 877 => Map { - 842 => 452, + 923 => Map { + 527 => 450, }, - 417 => Map { - 842 => 499, - 235 => 491, + 541 => Map { + 527 => 497, + 324 => 489, }, - 531 => Map { - 235 => 440, + 454 => Map { + 324 => 438, }, }, } @@ -677,21 +679,21 @@ exports[`ModuleMinifierPlugin Handles multiple runtimes (mock): Warnings 1`] = ` exports[`ModuleMinifierPlugin Handles multiple runtimes (terser): Content 1`] = ` Object { "/release/async-1.js": "/*! For license information please see async-1.js.LICENSE.txt */ -\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[842],{877:((e,t,n)=>{function a(){console.log(\\"async-1\\")}n.r(t),n.d(t,{async1:()=>a})}) -,417:((e,t,n)=>{n.d(t,{async1:()=>a.async1});var a=n(877)}) +\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[527],{923:((e,t,n)=>{function a(){console.log(\\"async-1\\")}n.r(t),n.d(t,{async1:()=>a})}) +,541:((e,t,n)=>{n.d(t,{async1:()=>a.async1});var a=n(923)}) }]);", "/release/async-1.js.LICENSE.txt": "// @license BAR // @license MIT ", "/release/async-2.js": "/*! For license information please see async-2.js.LICENSE.txt */ -\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[235],{531:((e,t,n)=>{function a(){console.log(\\"async-2\\")}n.r(t),n.d(t,{a2:()=>a})}) -,417:((e,t,n)=>{n.d(t,{a2:()=>a.a2});var a=n(531)}) +\\"use strict\\";(self.webpackChunk=self.webpackChunk||[]).push([[324],{454:((e,t,n)=>{function a(){console.log(\\"async-2\\")}n.r(t),n.d(t,{a2:()=>a})}) +,541:((e,t,n)=>{n.d(t,{a2:()=>a.a2});var a=n(454)}) }]);", "/release/async-2.js.LICENSE.txt": "// @license BAZ // @license MIT ", - "/release/entry1.js": "(()=>{var e,t={},n={};function a(e){var i=n[e];if(void 0!==i)return i.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,a),r.exports}a.m=t,a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>\\"async-1.js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},a.l=(t,n,i,r)=>{if(e[t])e[t].push(n);else{var o,s;if(void 0!==i)for(var c=document.getElementsByTagName(\\"script\\"),d=0;d{o.onerror=o.onload=null,clearTimeout(f);var i=e[t];if(delete e[t],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((e=>e(a))),n)return n(a)},f=setTimeout(u.bind(null,void 0,{type:\\"timeout\\",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),s&&document.head.appendChild(o)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName(\\"script\\");if(n.length)for(var i=n.length-1;i>-1&&!e;)e=n[i--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={688:0};a.f.j=(t,n)=>{var i=a.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,a)=>i=e[t]=[n,a]));n.push(i[2]=r);var o=a.p+a.u(t),s=new Error;a.l(o,(n=>{if(a.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&(\\"load\\"===n.type?\\"missing\\":n.type),o=n&&n.target&&n.target.src;s.message=\\"Loading chunk \\"+t+\\" failed.\\\\n(\\"+r+\\": \\"+o+\\")\\",s.name=\\"ChunkLoadError\\",s.type=r,s.request=o,i[1](s)}}),\\"chunk-\\"+t,t)}};var t=(t,n)=>{var i,r,[o,s,c]=n,d=0;if(o.some((t=>0!==e[t]))){for(i in s)a.o(s,i)&&(a.m[i]=s[i]);if(c)c(a)}for(t&&t(n);de.async1())),a.e(842).then(a.bind(a,877)).then((e=>e.async1()))})();", - "/release/entry2.js": "(()=>{var e,t={},n={};function a(e){var i=n[e];if(void 0!==i)return i.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,a),r.exports}a.m=t,a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>\\"async-2.js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},a.l=(t,n,i,r)=>{if(e[t])e[t].push(n);else{var o,s;if(void 0!==i)for(var c=document.getElementsByTagName(\\"script\\"),d=0;d{o.onerror=o.onload=null,clearTimeout(f);var i=e[t];if(delete e[t],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((e=>e(a))),n)return n(a)},f=setTimeout(u.bind(null,void 0,{type:\\"timeout\\",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),s&&document.head.appendChild(o)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName(\\"script\\");if(n.length)for(var i=n.length-1;i>-1&&!e;)e=n[i--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={887:0};a.f.j=(t,n)=>{var i=a.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,a)=>i=e[t]=[n,a]));n.push(i[2]=r);var o=a.p+a.u(t),s=new Error;a.l(o,(n=>{if(a.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&(\\"load\\"===n.type?\\"missing\\":n.type),o=n&&n.target&&n.target.src;s.message=\\"Loading chunk \\"+t+\\" failed.\\\\n(\\"+r+\\": \\"+o+\\")\\",s.name=\\"ChunkLoadError\\",s.type=r,s.request=o,i[1](s)}}),\\"chunk-\\"+t,t)}};var t=(t,n)=>{var i,r,[o,s,c]=n,d=0;if(o.some((t=>0!==e[t]))){for(i in s)a.o(s,i)&&(a.m[i]=s[i]);if(c)c(a)}for(t&&t(n);de.a2())),a.e(235).then(a.bind(a,531)).then((e=>e.a2()))})();", + "/release/entry1.js": "(()=>{var e,t={},n={};function a(e){var i=n[e];if(void 0!==i)return i.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,a),r.exports}a.m=t,a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>\\"async-1.js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},a.l=(t,n,i,r)=>{if(e[t])e[t].push(n);else{var o,s;if(void 0!==i)for(var c=document.getElementsByTagName(\\"script\\"),d=0;d{o.onerror=o.onload=null,clearTimeout(f);var i=e[t];if(delete e[t],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((e=>e(a))),n)return n(a)},f=setTimeout(u.bind(null,void 0,{type:\\"timeout\\",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),s&&document.head.appendChild(o)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var t=a.g.document;if(!e&&t&&(t.currentScript&&\\"SCRIPT\\"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName(\\"script\\");if(n.length)for(var i=n.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=n[i--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={834:0};a.f.j=(t,n)=>{var i=a.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,a)=>i=e[t]=[n,a]));n.push(i[2]=r);var o=a.p+a.u(t),s=new Error;a.l(o,(n=>{if(a.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&(\\"load\\"===n.type?\\"missing\\":n.type),o=n&&n.target&&n.target.src;s.message=\\"Loading chunk \\"+t+\\" failed.\\\\n(\\"+r+\\": \\"+o+\\")\\",s.name=\\"ChunkLoadError\\",s.type=r,s.request=o,i[1](s)}}),\\"chunk-\\"+t,t)}};var t=(t,n)=>{var i,r,[o,s,c]=n,d=0;if(o.some((t=>0!==e[t]))){for(i in s)a.o(s,i)&&(a.m[i]=s[i]);if(c)c(a)}for(t&&t(n);de.async1())),a.e(527).then(a.bind(a,923)).then((e=>e.async1()))})();", + "/release/entry2.js": "(()=>{var e,t={},n={};function a(e){var i=n[e];if(void 0!==i)return i.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,a),r.exports}a.m=t,a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>\\"async-2.js\\",a.g=function(){if(\\"object\\"==typeof globalThis)return globalThis;try{return this||new Function(\\"return this\\")()}catch(e){if(\\"object\\"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},a.l=(t,n,i,r)=>{if(e[t])e[t].push(n);else{var o,s;if(void 0!==i)for(var c=document.getElementsByTagName(\\"script\\"),d=0;d{o.onerror=o.onload=null,clearTimeout(f);var i=e[t];if(delete e[t],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((e=>e(a))),n)return n(a)},f=setTimeout(u.bind(null,void 0,{type:\\"timeout\\",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),s&&document.head.appendChild(o)}},a.r=e=>{\\"undefined\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\"Module\\"}),Object.defineProperty(e,\\"__esModule\\",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+\\"\\");var t=a.g.document;if(!e&&t&&(t.currentScript&&\\"SCRIPT\\"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName(\\"script\\");if(n.length)for(var i=n.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=n[i--].src}if(!e)throw new Error(\\"Automatic publicPath is not supported in this browser\\");e=e.replace(/#.*$/,\\"\\").replace(/\\\\?.*$/,\\"\\").replace(/\\\\/[^\\\\/]+$/,\\"/\\"),a.p=e})(),(()=>{var e={441:0};a.f.j=(t,n)=>{var i=a.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,a)=>i=e[t]=[n,a]));n.push(i[2]=r);var o=a.p+a.u(t),s=new Error;a.l(o,(n=>{if(a.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&(\\"load\\"===n.type?\\"missing\\":n.type),o=n&&n.target&&n.target.src;s.message=\\"Loading chunk \\"+t+\\" failed.\\\\n(\\"+r+\\": \\"+o+\\")\\",s.name=\\"ChunkLoadError\\",s.type=r,s.request=o,i[1](s)}}),\\"chunk-\\"+t,t)}};var t=(t,n)=>{var i,r,[o,s,c]=n,d=0;if(o.some((t=>0!==e[t]))){for(i in s)a.o(s,i)&&(a.m[i]=s[i]);if(c)c(a)}for(t&&t(n);de.a2())),a.e(324).then(a.bind(a,454)).then((e=>e.a2()))})();", } `; @@ -708,11 +710,11 @@ Object { }, "async-1.js" => Object { "positionByModuleId": Map { - 877 => Object { + 923 => Object { "charLength": 77, "charOffset": 137, }, - 417 => Object { + 541 => Object { "charLength": 54, "charOffset": 220, }, @@ -720,11 +722,11 @@ Object { }, "async-2.js" => Object { "positionByModuleId": Map { - 531 => Object { + 454 => Object { "charLength": 73, "charOffset": 137, }, - 417 => Object { + 541 => Object { "charLength": 46, "charOffset": 216, }, @@ -732,15 +734,15 @@ Object { }, }, "byModule": Map { - 877 => Map { - 842 => 77, + 923 => Map { + 527 => 77, }, - 417 => Map { - 842 => 54, - 235 => 46, + 541 => Map { + 527 => 54, + 324 => 46, }, - 531 => Map { - 235 => 73, + 454 => Map { + 324 => 73, }, }, }