babel-plugin-add-imports
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' ; moduleexports = babelConfig;
Thanks To
This package was created with the great work / lessons learned from: