Skip to content

Latest commit

 

History

History

craco-plugin-babel-include

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

craco-plugin-babel-include

Current npm version

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[] npm-package name or directory to include.

Example

License

Apache-2.0 - see LICENSE for details.