Closed satya164 closed 3 months ago
This adds ESM support to the generated project. To do this:
.cjs
.mjs
exports
package.json
moduleResolution
Bundler
tsconfig.json
In addition:
react-native
This is a breaking change for library authors. After upgrading, it's necessary to update the configuration by running the following command:
yarn bob init
Alternatively, they can follow the manual configuration guide.
In addition, typescript consumers would need to change the following fields in tsconfig.json:
"jsx": "react-jsx", "moduleResolution": "Bundler",
If using ESLint, it may also be necessary to disable the "react/react-in-jsx-scope" rule:
"react/react-in-jsx-scope": "off"
This adds ESM support to the generated project. To do this:
.cjs
and.mjs
file extensions for the generated filesexports
field inpackage.json
moduleResolution
config toBundler
intsconfig.json
In addition:
react-native
field frompackage.json
This is a breaking change for library authors. After upgrading, it's necessary to update the configuration by running the following command:
Alternatively, they can follow the manual configuration guide.
In addition, typescript consumers would need to change the following fields in
tsconfig.json
:If using ESLint, it may also be necessary to disable the "react/react-in-jsx-scope" rule: