1.0.0 • Published 4 years ago

@dealmore/craco-plugin-babel-include v1.0.0

Weekly downloads
451
License
Apache-2.0
Repository
github
Last release
4 years ago

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

OptionTypeDescription
includestring | string[]npm-package name or directory to include.

Example

License

Apache-2.0 - see LICENSE for details.