Skip to content

Commit

Permalink
feat(react): add generateExportsField option to @nrwl/web:rollup ex…
Browse files Browse the repository at this point in the history
…ecutor so it is an opt-in feature

- Also adds skipTypeField option in case that is causing issues for users
- Fixes #10741
  • Loading branch information
jaysoo authored and Jack Hsu committed Jun 15, 2022
1 parent 4aa7371 commit da947e1
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 115 deletions.
10 changes: 10 additions & 0 deletions docs/generated/packages/web.json
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,16 @@
"type": "boolean",
"description": "Sets `javascriptEnabled` option for less loader",
"default": false
},
"generateExportsField": {
"type": "boolean",
"description": "Generate package.json with 'exports' field. This field defines entry points in the package and is used by Node and the TypeScript compiler.",
"default": false
},
"skipTypeField": {
"type": "boolean",
"description": "Prevents 'type' field from being added to compiled package.json file. Only use this if you are having an issue with this field.",
"default": false
}
},
"required": ["tsConfig", "project", "entryFile", "outputPath"],
Expand Down

0 comments on commit da947e1

Please sign in to comment.