build(docs-infra): add support for examples of type elements
(#24840)
Examples using `@angular/elements` need to transpile to es2015 for Custom Elements to work (on browsers that natively support them). Alternatively, a polyfill would need to be loaded. For now, changing the transpilation target to es2015 is the simplest solution. PR Close #24840
This commit is contained in:

committed by
Victor Berchet

parent
ead3f926cb
commit
1c533c913d
@ -50,13 +50,12 @@ const BOILERPLATE_PATHS = {
|
||||
// This maps the CLI files that exists in a parent folder
|
||||
const cliRelativePath = BOILERPLATE_PATHS.cli.map(file => `../cli/${file}`);
|
||||
|
||||
BOILERPLATE_PATHS.i18n = [
|
||||
BOILERPLATE_PATHS.elements = [
|
||||
...cliRelativePath,
|
||||
'angular.json',
|
||||
'package.json'
|
||||
'tsconfig.json'
|
||||
];
|
||||
|
||||
BOILERPLATE_PATHS.universal = [
|
||||
BOILERPLATE_PATHS.i18n = [
|
||||
...cliRelativePath,
|
||||
'angular.json',
|
||||
'package.json'
|
||||
@ -67,6 +66,12 @@ BOILERPLATE_PATHS.testing = [
|
||||
'angular.json'
|
||||
];
|
||||
|
||||
BOILERPLATE_PATHS.universal = [
|
||||
...cliRelativePath,
|
||||
'angular.json',
|
||||
'package.json'
|
||||
];
|
||||
|
||||
const EXAMPLE_CONFIG_FILENAME = 'example-config.json';
|
||||
|
||||
class ExampleBoilerPlate {
|
||||
|
Reference in New Issue
Block a user