Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 295ad2b

Browse files
committed
build: account for APF v16 fesm2022 bundles
The lazy loading of examples needs to be adjusted to generate chunks for all FESM2022 bundles. The FESM2020 folder no longer exists as of APF v16.
1 parent b7aa60f commit 295ad2b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@angular/cdk-experimental": "^16.0.0-next.4",
3636
"@angular/common": "^16.0.0-next.5",
3737
"@angular/compiler": "^16.0.0-next.5",
38-
"@angular/components-examples": "https://github.com/angular/material2-docs-content.git#5f06e33d3aab6a59b1f588cbdf5425dbfdf71663",
38+
"@angular/components-examples": "https://github.com/angular/material2-docs-content.git#2f63410f273e10e1539f08f1ea99a02edf6ab6b9",
3939
"@angular/core": "^16.0.0-next.5",
4040
"@angular/forms": "^16.0.0-next.5",
4141
"@angular/google-maps": "^16.0.0-next.4",

src/app/shared/example-viewer/example-viewer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ export class ExampleViewer implements OnInit {
191191
const {componentName, module} = EXAMPLE_COMPONENTS[this._example];
192192
// Lazily loads the example package that contains the requested example. Webpack needs to be
193193
// able to statically determine possible imports for proper chunk generation. Explicitly
194-
// specifying the path to the `fesm2015` folder as first segment instructs Webpack to generate
195-
// chunks for each example flat esm2015 bundle. To avoid generating unnecessary chunks for
194+
// specifying the path to the `fesm` folder as first segment instructs Webpack to generate
195+
// chunks for each example flat ESM bundle. To avoid generating unnecessary chunks for
196196
// source maps (which would never be loaded), we instruct Webpack to exclude source map
197197
// files. More details: https://webpack.js.org/api/module-methods/#magic-comments.
198198
const moduleExports: any = await import(
199199
/* webpackExclude: /\.map$/ */
200-
'@angular/components-examples/fesm2020/' + module.importSpecifier
200+
'@angular/components-examples/fesm2022/' + module.importSpecifier
201201
);
202202
this._exampleComponentType = moduleExports[componentName];
203203
// The components examples package is built with Ivy. This means that no factory files are

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@
248248
dependencies:
249249
tslib "^2.3.0"
250250

251-
"@angular/components-examples@https://github.com/angular/material2-docs-content.git#5f06e33d3aab6a59b1f588cbdf5425dbfdf71663":
252-
version "15.0.0"
253-
resolved "https://github.com/angular/material2-docs-content.git#5f06e33d3aab6a59b1f588cbdf5425dbfdf71663"
251+
"@angular/components-examples@https://github.com/angular/material2-docs-content.git#2f63410f273e10e1539f08f1ea99a02edf6ab6b9":
252+
version "16.1.0-next.0"
253+
resolved "https://github.com/angular/material2-docs-content.git#2f63410f273e10e1539f08f1ea99a02edf6ab6b9"
254254
dependencies:
255255
tslib "^2.3.0"
256256

0 commit comments

Comments
 (0)