Package Exports
- @dealmore/craco-plugin-babel-include
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dealmore/craco-plugin-babel-include) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
craco-plugin-babel-include
Craco plugin which allows to import uncompiled modules from outside the src directory.
Usage
npm i --save-dev @dealmore/craco-plugin-babel-include # npm or
yarn add -D @dealmore/craco-plugin-babel-include # yarn// craco.config.js
const babelInclude = require('@dealmore/craco-plugin-babel-include');
module.exports = {
plugins: [
{
plugin: babelInclude,
options: {
include: ['@workspace/shared', '../ui-components'],
},
},
],
};Options
| Option | Type | Description |
|---|---|---|
include |
`string | string[]` |
Example
License
Apache-2.0 - see LICENSE for details.