Skip to content

Commit

Permalink
2.2.0 Snowpack3, optimized ngcc, package detection for ngcc
Browse files Browse the repository at this point in the history
- Snowpack 3 support (accept both config.buildOptions.sourcemap and config.buildOptions.sourceMaps)
- Now calls `ngcc` function from `@angular/compiler-cli/ngcc` instead of using execa which is slower to start up
- Now uses typescript to scan all node_modules import, and feed to ngcc
  • Loading branch information
SilverMira committed Jan 15, 2021
1 parent 678fffe commit 31642aa
Show file tree
Hide file tree
Showing 6 changed files with 227 additions and 2,236 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ npm i --save-dev angular-snowpack-plugin
| ---------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `angularJson` | `string` | Relative path to `angular.json` of your Angular project. | `angular.json` |
| `angularProject` | `string` | Target project of the build as according to `angular.json` | default project defined in `angular.json` |
| `ngccTargets` | `string[]` | `ngcc` targets that the plugin will attempt to run `ngcc` with on each startup, values here will be extending the default value. | `['@angular/core', '@angular/common', '@angular/platform-browser-dynamic']` |
| `ngccTargets` | `string[]` | Explicit `ngcc` targets that the plugin will attempt to run `ngcc` with on each startup, values here will be extending the default value. | Detected `node_modules` packages imported in source files |
| `errorToBrowser` | `boolean` | Determines whether a type-check error will be pushed to the browser as a build error, note that this only applies to dev mode, build and first compilation will push error to browser regardless, `false` will mimic the behavior of `ng serve` | `true` |
| `useHmr` | `boolean` | Enables hot-module replacement\(HMR\) based on Angular 11 HMR code, tested to work on Angular >= 9 with ivy enabled | `false` |

Expand Down
Loading

0 comments on commit 31642aa

Please sign in to comment.