Befor generating
This commit is contained in:
1 parent
3383f4bf4a
commit
1aa1b5f625
6756 files changed
+649946
-1
No files matched your search
+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 };
|
||||
+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