feat: expose plugins and presets on SwaggerUI global symbol (#9189)
Part of this commit is also: - complete plugins consolidation - complete presets consolidation - build system consolidation Refs #9188
This commit is contained in:
178
babel.config.js
178
babel.config.js
@@ -1,74 +1,14 @@
|
||||
module.exports = {
|
||||
"env": {
|
||||
"commonjs": {
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"debug": false,
|
||||
"modules": "commonjs",
|
||||
"targets": {
|
||||
"node": "8"
|
||||
},
|
||||
"forceAllTransforms": false,
|
||||
"ignoreBrowserslistConfig": true
|
||||
}
|
||||
],
|
||||
"@babel/preset-react",
|
||||
],
|
||||
"plugins": [
|
||||
[
|
||||
"@babel/plugin-transform-modules-commonjs",
|
||||
{
|
||||
"loose": true
|
||||
}
|
||||
],
|
||||
"@babel/proposal-class-properties",
|
||||
"@babel/proposal-object-rest-spread",
|
||||
"@babel/plugin-proposal-optional-chaining",
|
||||
]
|
||||
},
|
||||
"es": {
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"debug": false,
|
||||
"modules": false
|
||||
}
|
||||
],
|
||||
"@babel/preset-react",
|
||||
],
|
||||
"plugins": [
|
||||
[
|
||||
"@babel/plugin-transform-runtime",
|
||||
{
|
||||
"absoluteRuntime": false,
|
||||
"corejs": 3,
|
||||
"version": "^7.11.2"
|
||||
}
|
||||
],
|
||||
"@babel/proposal-class-properties",
|
||||
"@babel/proposal-object-rest-spread",
|
||||
"@babel/plugin-proposal-optional-chaining",
|
||||
]
|
||||
},
|
||||
"development": {
|
||||
"esm": {
|
||||
"presets": [
|
||||
[
|
||||
"@babel/env",
|
||||
{
|
||||
"targets": {
|
||||
"browsers": [
|
||||
/* benefit of C/S/FF/Edge only? */
|
||||
"> 1%",
|
||||
"last 2 versions",
|
||||
"Firefox ESR",
|
||||
"not dead"
|
||||
]
|
||||
},
|
||||
"debug": true,
|
||||
"modules": false,
|
||||
"ignoreBrowserslistConfig": false,
|
||||
"useBuiltIns": false,
|
||||
"corejs": { version: 3 },
|
||||
"include": [
|
||||
"@babel/plugin-proposal-logical-assignment-operators"
|
||||
]
|
||||
@@ -85,8 +25,6 @@ module.exports = {
|
||||
"version": "^7.11.2"
|
||||
}
|
||||
],
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
"@babel/plugin-proposal-optional-chaining",
|
||||
[
|
||||
"transform-react-remove-prop-types",
|
||||
{
|
||||
@@ -100,13 +38,7 @@ module.exports = {
|
||||
{
|
||||
"alias": {
|
||||
"root": ".",
|
||||
"components": "./src/core/components",
|
||||
"containers": "./src/core/containers",
|
||||
"core": "./src/core",
|
||||
"plugins": "./src/plugins",
|
||||
"img": "./src/img",
|
||||
"corePlugins": "./src/core/plugins",
|
||||
"less": "./src/less"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -118,10 +50,10 @@ module.exports = {
|
||||
"@babel/env",
|
||||
{
|
||||
"targets": {
|
||||
"node": "10"
|
||||
"node": "16.13.2"
|
||||
},
|
||||
"ignoreBrowserslistConfig": true,
|
||||
"useBuiltIns": false,
|
||||
"corejs": { version: 3 }
|
||||
}
|
||||
],
|
||||
"@babel/preset-react"
|
||||
@@ -135,8 +67,6 @@ module.exports = {
|
||||
"version": "^7.11.2"
|
||||
}
|
||||
],
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
"@babel/plugin-proposal-optional-chaining",
|
||||
[
|
||||
"transform-react-remove-prop-types",
|
||||
{
|
||||
@@ -150,18 +80,100 @@ module.exports = {
|
||||
{
|
||||
"alias": {
|
||||
"root": ".",
|
||||
"components": "./src/core/components",
|
||||
"containers": "./src/core/containers",
|
||||
"core": "./src/core",
|
||||
"plugins": "./src/plugins",
|
||||
"img": "./src/img",
|
||||
"corePlugins": "./src/core/plugins",
|
||||
"less": "./src/less"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"development": {
|
||||
"presets": [
|
||||
[
|
||||
"@babel/env",
|
||||
{
|
||||
"ignoreBrowserslistConfig": false,
|
||||
"useBuiltIns": false,
|
||||
"include": [
|
||||
"@babel/plugin-proposal-logical-assignment-operators"
|
||||
]
|
||||
}
|
||||
],
|
||||
"@babel/preset-react"
|
||||
],
|
||||
"plugins": [
|
||||
[
|
||||
"@babel/plugin-transform-runtime",
|
||||
{
|
||||
"corejs": 3,
|
||||
"absoluteRuntime": false,
|
||||
"version": "^7.11.2"
|
||||
}
|
||||
],
|
||||
[
|
||||
"transform-react-remove-prop-types",
|
||||
{
|
||||
"additionalLibraries": [
|
||||
"react-immutable-proptypes"
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
"babel-plugin-module-resolver",
|
||||
{
|
||||
"alias": {
|
||||
"root": ".",
|
||||
"core": "./src/core",
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"production": {
|
||||
"presets": [
|
||||
[
|
||||
"@babel/env",
|
||||
{
|
||||
"ignoreBrowserslistConfig": false,
|
||||
"useBuiltIns": false,
|
||||
"include": [
|
||||
"@babel/plugin-proposal-logical-assignment-operators"
|
||||
]
|
||||
}
|
||||
],
|
||||
"@babel/preset-react"
|
||||
],
|
||||
"plugins": [
|
||||
"@babel/plugin-transform-class-properties",
|
||||
"@babel/plugin-transform-nullish-coalescing-operator",
|
||||
"@babel/plugin-transform-object-rest-spread",
|
||||
"@babel/plugin-transform-optional-chaining",
|
||||
[
|
||||
"@babel/plugin-transform-runtime",
|
||||
{
|
||||
"corejs": 3,
|
||||
"absoluteRuntime": false,
|
||||
"version": "^7.11.2"
|
||||
}
|
||||
],
|
||||
[
|
||||
"transform-react-remove-prop-types",
|
||||
{
|
||||
"additionalLibraries": [
|
||||
"react-immutable-proptypes"
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
"babel-plugin-module-resolver",
|
||||
{
|
||||
"alias": {
|
||||
"root": ".",
|
||||
"core": "./src/core",
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user