You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating the library using angular 5. I use the ngc-webpack 4.1.2 . When i run the aot build, I dont see the individual metadata, .js, .d.ts files generated to the outDir. I would like my dist folder to be AOT and JIT compatible.
I am creating the library using angular 5. I use the ngc-webpack 4.1.2 . When i run the aot build, I dont see the individual metadata, .js, .d.ts files generated to the outDir. I would like my dist folder to be AOT and JIT compatible.
Here is the tsconfg file.
"angularCompilerOptions": {
"genDir": "./compiled",
"strictMetadataEmit": true,
"skipTemplateCodegen": true
},
"compilerOptions": {
"moduleResolution": "node",
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"outDir": "./dist/lib",
"rootDir": "./src/lib",
"lib": [ "es2015", "dom" ],
"target": "es5",
"types": ["node"],
"module": "es2015",
"sourceMap": true,
"stripInternal": true
},
"files": [
"./src/lib/index.ts"
],
This is how i call the plugin in webpack configuration.
{
test: /(?:.ngfactory.js|.ngstyle.js|.ts)$/,
use: [ '@ngtools/webpack' ]
},
new ngcWebpack.NgcWebpackPlugin({
AOT: true, // alias for skipCodeGeneration: false
tsConfigPath: 'tsconfig.ngc.json',
sourceMap: true
}),
The text was updated successfully, but these errors were encountered: