1c533c913d
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
21 lines
450 B
JSON
21 lines
450 B
JSON
{
|
|
"compileOnSave": false,
|
|
"compilerOptions": {
|
|
"outDir": "./dist/out-tsc",
|
|
"sourceMap": true,
|
|
"declaration": false,
|
|
"moduleResolution": "node",
|
|
"emitDecoratorMetadata": true,
|
|
"experimentalDecorators": true,
|
|
"target": "es2015", // Custom Elements require ES2015 classes (or polyfill).
|
|
"skipLibCheck": true,
|
|
"typeRoots": [
|
|
"node_modules/@types"
|
|
],
|
|
"lib": [
|
|
"es2017",
|
|
"dom"
|
|
]
|
|
}
|
|
}
|