1.0.3 • Published 6 years ago

babel-plugin-add-imports v1.0.3

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

babel-plugin-add-imports

npm Linux Build Status Windows Build Status Code Coverage

Add imports to the top of files.

Installation

npm install --save-dev babel-plugin-add-imports

Usage

'use strict';

const babelConfig = {
    plugins: [
        /**
         * Add the following to the top of each file
         *
         * import 'source-map-support/register';
         * import 'babel-polyfill';
         */
        ['add-imports', ['source-map-support/register', 'babel-polyfill']],
    ],
};

module.exports = babelConfig;

Thanks To

This package was created with the great work / lessons learned from: