angular/packages/bazel/test/ng_package/example/package.json
Paul Gschwendtner e0667efa6e feat(bazel): allow for custom conditions to be set in ng_package targets (#43764)
The APF v13 `ng_package` rule will generate the `exports` field if not
set. Currently it allows for additional subpath entries to be configured
manually. The packager does not allow for custom conditions in subpath
exports which are auto-generated.

This is sometimes useful and necessary though. e.g. in Angular Material,
we also need to expose the index Sass file through a `sass` conditional
that the Webpack Sass loader will pick up. For this, the packager needs
to support manual additional conditions (as long as they do not
conflict).

PR Close #43764
2021-10-07 16:50:49 +00:00

9 lines
125 B
JSON

{
"name": "example",
"version": "0.0.0-PLACEHOLDER",
"exports": {
".": {
"sass": "./_index.scss"
}
}
}