Describe the Bug
I would like to use a custom webpack typescript config with the define plugin but cannot import package.json. Which tsconfig is taken by angular-builders for the webpack config compilation? I tried adding that file to every webpack config without success.
webpack.config.ts:7:22 - error TS2732: Cannot find module './package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
7 import * as pkg from './package.json'
Minimal Reproduction
- Create a start
- Include
@angular-builders/custom-webpack:browser
- Create a
webpack.config.ts
- Add package.json as a module
- Run
npm run build
https://github.com/muuvmuuv/angular-builders-issues-816
Expected Behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Libs
- @angular/core version: 10.0.10
- @angular-devkit/build-angular version: 0.1000.6
- @angular-builders/custom-webpack version: 10
For Tooling issues:
- Node version: 12.18.0
- Platform: latest macOS
Others:
Additional Context
Add any other context about the problem here.
Describe the Bug
I would like to use a custom webpack typescript config with the define plugin but cannot import package.json. Which tsconfig is taken by angular-builders for the webpack config compilation? I tried adding that file to every webpack config without success.
Minimal Reproduction
@angular-builders/custom-webpack:browserwebpack.config.tsnpm run buildExpected Behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Additional Context
Add any other context about the problem here.