Befor generating
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
var helperModuleImports = require('@babel/helper-module-imports');
|
||||
|
||||
const IMPORT = 'source-map-support/register';
|
||||
|
||||
function babelPluginSourceMapSupport () {
|
||||
return {
|
||||
visitor: {
|
||||
Program (path) {
|
||||
helperModuleImports.addSideEffect(path, IMPORT);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = babelPluginSourceMapSupport;
|
||||
Reference in New Issue
Block a user