nx
nx copied to clipboard
feat(react): improve babel preset options
Improved the @nrwl/react/babel preset to allow for customisation of all options provided by
the @nrwl/web/babel preset.
Current Behavior
Only the useBuiltIns option of the @nrwl/web/babel preset can be configured when using the @nrwl/react/babel preset:
{
"presets": [
[
"@nrwl/react/babel",
{
"runtime": "automatic",
"importSource": "react",
"useBuiltIns": "usage"
}
]
],
"plugins": []
}
Expected Behavior
All options provided by the @nrwl/web/babel preset should be configurable when using the @nrwl/react/babel preset:
{
"presets": [
[
"@nrwl/react/babel",
{
"runtime": "automatic",
"importSource": "react",
"useBuiltIns": "usage",
"decorators": {
"decoratorsBeforeExport": true,
"legacy": false
},
"classProperties": {
"loose": false
}
}
]
],
"plugins": []
}
Related Issue(s)
Fixes #10939
☁️ Nx Cloud Report
CI is running/has finished running commands for commit 644a9e3ccf04dd171ca1967e346b10e59f2e31dc. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this branch
✅ Successfully ran 12 targets
nx affected --target=build --base=f9bb54db88d33e41c31381f62e7abdf30f36e30c --head=644a9e3ccf04dd171ca1967e346b10e59f2e31dc --parallel=3nx affected --target=e2e --base=f9bb54db88d33e41c31381f62e7abdf30f36e30c --head=644a9e3ccf04dd171ca1967e346b10e59f2e31dc --exclude=e2e-detox,e2e-js,e2e-next,e2e-workspace-create,e2e-nx-run,e2e-nx-misc,e2e-react,e2e-web,e2e-angular-extensions,e2e-angular-core,e2e-nx-plugin,e2e-cypress,e2e-node,e2e-linter,e2e-jest,e2e-add-nx-to-monorepo,nx-dev-e2e,e2...nx affected --target=e2e --base=f9bb54db88d33e41c31381f62e7abdf30f36e30c --head=644a9e3ccf04dd171ca1967e346b10e59f2e31dc --exclude=e2e-storybook,e2e-storybook-angular,e2e-react-native,e2e-detox --parallel=1nx affected --target=lint --base=f9bb54db88d33e41c31381f62e7abdf30f36e30c --head=644a9e3ccf04dd171ca1967e346b10e59f2e31dc --parallel=3nx affected --target=test --base=f9bb54db88d33e41c31381f62e7abdf30f36e30c --head=644a9e3ccf04dd171ca1967e346b10e59f2e31dc --parallel=1nx build typedoc-themenx-cloud record -- yarn check-commitnx-cloud record -- yarn check-importsnx-cloud record -- yarn depchecknx-cloud record -- yarn documentationnx-cloud record -- yarn nx format:check --base=f9bb54db88d33e41c31381f62e7abdf30f36e30c --head=644a9e3ccf04dd171ca1967e346b10e59f2e31dcnx-cloud record -- yarn nx workspace-lint
Sent with 💌 from NxCloud.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
| Name | Status | Preview | Updated |
|---|---|---|---|
| nx-dev | ⬜️ Ignored (Inspect) | Jun 28, 2022 at 11:45PM (UTC) |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.