babel-plugin-add-imports

1.0.3 • Public • Published

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:

Package Sidebar

Install

npm i babel-plugin-add-imports

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

11.2 kB

Total Files

5

Last publish

Collaborators

  • chrisblossom