Befor generating
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import { addSideEffect } from '@babel/helper-module-imports';
|
||||
|
||||
const IMPORT = 'source-map-support/register';
|
||||
|
||||
function babelPluginSourceMapSupport () {
|
||||
return {
|
||||
visitor: {
|
||||
Program (path) {
|
||||
addSideEffect(path, IMPORT);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { babelPluginSourceMapSupport as default };
|
||||
Reference in New Issue
Block a user