1 const chalk = require('chalk');
2 const log = require('./log');
3 const babel = require('babel-core');
5 module.exports = (filePath, callback) => {
7 // Check process.env.NODE_ENV to see if we should create sourcemaps.
11 sourceMaps: process.env.NODE_ENV === 'development' ? 'inline' : false,
14 ['add-header-comment', {
16 `DO NOT EDIT THIS FILE.\nSee the following change record for more information,\nhttps://www.drupal.org/node/2815083\n@preserve`
27 callback(result.code);