Installation
Install transpiler and babel plugin:
Add the babel plugin to your babel.config.js
:
#
NodeJSIf you use require
instead of import
you need to pass modules: 'require'
property to your plugin configuration in babel.config.js
like this:
Add una
extension to cli properties of babel
and babel-node
scripts in package.json
like this:
In case of problems check out our Node example
#
ReactI assume that you use create-react-app
.
You need to use react-app-rewired
with customize-cra
to make Una work
Install the tools:
Add the file config-overrides.js
with the following content:
In case of problems check out our React example
#
React NativeAdd una
file extension to metro.config.js
like this:
In case of problems check out our React Native example