#angular-cli
Вопрос:
предупреждения, такие как
WARNING: "FormControl" and "FormBuilder" are imported from external module "@angular/forms" but never used in **esm2015lib**
WARNING: "Router" is imported from external module "@angular/router" but never used in **esm2015lib**
WARNING: "NgZone", "ComponentFactoryResolver", "ViewContainerRef" and "Renderer2" are imported from external module "@angular/core" but never used in **esm2015lib**
на этапе связывания с FESM2015
угловая версия 12.2.13
tsconfig
{
"compileOnSave": false,
"compilerOptions": {
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"module": "es2020",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"importHelpers": true,
"target": "es2017",
"typeRoots": ["node_modules/@types"],
"lib": ["es2020", "dom"]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
}
}
tsconfig.lib.json
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": "./src",
"outDir": "../../out-tsc/lib"
},
"files": [
"./src/public-api.ts"
]
}
для библиотеки сборки используйте «конструктор»: «@angular-devkit/build-angular:ng-packagr»,