This plugin will allow to use CRA inside a Yarn Workspace configuration, it will allow to transpile other code in the same workspace.
- Install the package by running:
yarn add -D rescripts-use-yarn-workspaces"rescripts": [
+ "rescripts-use-yarn-workspaces"
]- Run your app, external code should be transpiled.
Additionally, this could export helpers for storybook, to use it, on .storybook/main.js add the following:
module.exports = {
addons: [
+ 'rescripts-use-yarn-workspaces/storybook'
]
}