2020-11-06 03:33:14 +01:00
|
|
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
|
|
|
|
|
|
function codeFrame() {
|
|
|
|
return require('@babel/code-frame')
|
|
|
|
}
|
|
|
|
|
|
|
|
function core() {
|
|
|
|
return require('@babel/core')
|
|
|
|
}
|
|
|
|
|
2021-04-08 14:03:02 +02:00
|
|
|
function coreLibConfig() {
|
|
|
|
return require('@babel/core/lib/config')
|
|
|
|
}
|
|
|
|
|
|
|
|
function coreLibNormalizeFile() {
|
|
|
|
return require('@babel/core/lib/transformation/normalize-file')
|
|
|
|
}
|
|
|
|
|
|
|
|
function coreLibNormalizeOpts() {
|
|
|
|
return require('@babel/core/lib/transformation/normalize-opts')
|
|
|
|
}
|
|
|
|
|
|
|
|
function coreLibBlockHoistPlugin() {
|
|
|
|
return require('@babel/core/lib/transformation/block-hoist-plugin')
|
|
|
|
}
|
|
|
|
|
|
|
|
function coreLibPluginPass() {
|
|
|
|
return require('@babel/core/lib/transformation/plugin-pass')
|
|
|
|
}
|
|
|
|
|
2021-04-30 13:09:07 +02:00
|
|
|
function eslintParser() {
|
|
|
|
return require('@babel/eslint-parser')
|
|
|
|
}
|
|
|
|
|
2021-04-08 14:03:02 +02:00
|
|
|
function traverse() {
|
|
|
|
return require('@babel/traverse')
|
|
|
|
}
|
|
|
|
|
|
|
|
function generator() {
|
|
|
|
return require('@babel/generator')
|
|
|
|
}
|
|
|
|
|
2020-11-06 03:33:14 +01:00
|
|
|
function pluginProposalClassProperties() {
|
|
|
|
return require('@babel/plugin-proposal-class-properties')
|
|
|
|
}
|
|
|
|
|
|
|
|
function pluginProposalExportNamespaceFrom() {
|
|
|
|
return require('@babel/plugin-proposal-export-namespace-from')
|
|
|
|
}
|
|
|
|
|
|
|
|
function pluginProposalNumericSeparator() {
|
|
|
|
return require('@babel/plugin-proposal-numeric-separator')
|
|
|
|
}
|
|
|
|
|
|
|
|
function pluginProposalObjectRestSpread() {
|
|
|
|
return require('@babel/plugin-proposal-object-rest-spread')
|
|
|
|
}
|
|
|
|
|
|
|
|
function pluginSyntaxBigint() {
|
|
|
|
return require('@babel/plugin-syntax-bigint')
|
|
|
|
}
|
|
|
|
|
|
|
|
function pluginSyntaxDynamicImport() {
|
|
|
|
return require('@babel/plugin-syntax-dynamic-import')
|
|
|
|
}
|
|
|
|
|
|
|
|
function pluginSyntaxJsx() {
|
|
|
|
return require('@babel/plugin-syntax-jsx')
|
|
|
|
}
|
|
|
|
|
2021-01-15 02:51:45 +01:00
|
|
|
function pluginTransformDefine() {
|
|
|
|
return require('babel-plugin-transform-define')
|
|
|
|
}
|
|
|
|
|
2020-11-06 03:33:14 +01:00
|
|
|
function pluginTransformModulesCommonjs() {
|
|
|
|
return require('@babel/plugin-transform-modules-commonjs')
|
|
|
|
}
|
|
|
|
|
2021-01-15 02:51:45 +01:00
|
|
|
function pluginTransformReactRemovePropTypes() {
|
|
|
|
return require('babel-plugin-transform-react-remove-prop-types')
|
|
|
|
}
|
|
|
|
|
2020-11-06 03:33:14 +01:00
|
|
|
function pluginTransformRuntime() {
|
|
|
|
return require('@babel/plugin-transform-runtime')
|
|
|
|
}
|
|
|
|
|
|
|
|
function presetEnv() {
|
|
|
|
return require('@babel/preset-env')
|
|
|
|
}
|
|
|
|
|
|
|
|
function presetReact() {
|
|
|
|
return require('@babel/preset-react')
|
|
|
|
}
|
|
|
|
|
|
|
|
function presetTypescript() {
|
|
|
|
return require('@babel/preset-typescript')
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
codeFrame,
|
|
|
|
core,
|
2021-04-08 14:03:02 +02:00
|
|
|
coreLibConfig,
|
|
|
|
coreLibNormalizeFile,
|
|
|
|
coreLibNormalizeOpts,
|
|
|
|
coreLibBlockHoistPlugin,
|
|
|
|
coreLibPluginPass,
|
2021-04-30 13:09:07 +02:00
|
|
|
eslintParser,
|
2021-04-08 14:03:02 +02:00
|
|
|
generator,
|
2020-11-06 03:33:14 +01:00
|
|
|
pluginProposalClassProperties,
|
|
|
|
pluginProposalExportNamespaceFrom,
|
|
|
|
pluginProposalNumericSeparator,
|
|
|
|
pluginProposalObjectRestSpread,
|
|
|
|
pluginSyntaxBigint,
|
|
|
|
pluginSyntaxDynamicImport,
|
|
|
|
pluginSyntaxJsx,
|
2021-01-15 02:51:45 +01:00
|
|
|
pluginTransformDefine,
|
2020-11-06 03:33:14 +01:00
|
|
|
pluginTransformModulesCommonjs,
|
2021-01-15 02:51:45 +01:00
|
|
|
pluginTransformReactRemovePropTypes,
|
2020-11-06 03:33:14 +01:00
|
|
|
pluginTransformRuntime,
|
|
|
|
presetEnv,
|
|
|
|
presetReact,
|
|
|
|
presetTypescript,
|
2021-04-08 14:03:02 +02:00
|
|
|
traverse,
|
2020-11-06 03:33:14 +01:00
|
|
|
}
|