@essex/babel-config
Advanced tools
Comparing version 20.1.23 to 21.0.0
@@ -10,6 +10,8 @@ /*! | ||
enumerable: true, | ||
get: ()=>createBabelConfig | ||
get: function() { | ||
return createBabelConfig; | ||
} | ||
}); | ||
const resolve = require.resolve; | ||
function createBabelConfig({ modules , targets , corejs =3 , useBuiltIns ="usage" , presets =[] , plugins =[] }) { | ||
function createBabelConfig({ modules, targets, corejs = 3, useBuiltIns = "usage", presets = [], plugins = [] }) { | ||
return { | ||
@@ -16,0 +18,0 @@ presets: [ |
@@ -10,3 +10,5 @@ /*! | ||
enumerable: true, | ||
get: ()=>getBrowsersList | ||
get: function() { | ||
return getBrowsersList; | ||
} | ||
}); | ||
@@ -13,0 +15,0 @@ function getBrowsersList(env, setting) { |
@@ -15,5 +15,11 @@ /*! | ||
_export(exports, { | ||
getCjsConfiguration: ()=>getCjsConfiguration, | ||
getEsmConfiguration: ()=>getEsmConfiguration, | ||
getNodeConfiguration: ()=>getNodeConfiguration | ||
getCjsConfiguration: function() { | ||
return getCjsConfiguration; | ||
}, | ||
getEsmConfiguration: function() { | ||
return getEsmConfiguration; | ||
}, | ||
getNodeConfiguration: function() { | ||
return getNodeConfiguration; | ||
} | ||
}); | ||
@@ -49,2 +55,3 @@ const _fs = require("fs"); | ||
function getCjsConfiguration(env, spec = {}) { | ||
var _packageJson; | ||
// ALlows users to override default cjs emission | ||
@@ -57,3 +64,3 @@ // during build by defining 'babel.cjs.js' | ||
modules: "cjs", | ||
targets: (0, _getBrowsersList.getBrowsersList)(env, packageJson === null || packageJson === void 0 ? void 0 : packageJson.browserslist), | ||
targets: (0, _getBrowsersList.getBrowsersList)(env, (_packageJson = packageJson) === null || _packageJson === void 0 ? void 0 : _packageJson.browserslist), | ||
useBuiltIns, | ||
@@ -60,0 +67,0 @@ corejs, |
{ | ||
"name": "@essex/babel-config", | ||
"version": "20.1.23", | ||
"version": "21.0.0", | ||
"license": "MIT", | ||
@@ -19,3 +19,3 @@ "author": "Chris Trevino <chtrevin@microsoft.com>", | ||
"dependencies": { | ||
"@babel/core": "^7.21.4", | ||
"@babel/core": "^7.22.11", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
@@ -25,16 +25,16 @@ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", | ||
"@babel/plugin-proposal-optional-chaining": "^7.21.0", | ||
"@babel/preset-env": "^7.21.4", | ||
"@babel/preset-react": "^7.18.6", | ||
"@babel/preset-typescript": "^7.21.4", | ||
"@babel/preset-env": "^7.22.10", | ||
"@babel/preset-react": "^7.22.5", | ||
"@babel/preset-typescript": "^7.22.11", | ||
"babel-plugin-transform-typescript-metadata": "^0.3.2", | ||
"tslib": "^2.5.0" | ||
"tslib": "^2.6.2" | ||
}, | ||
"devDependencies": { | ||
"@essex/tsconfig-node14": "^2.0.0", | ||
"@essex/tsconfig-node18": "^3.0.0", | ||
"@swc/cli": "^0.1.62", | ||
"@swc/core": "1.3.50", | ||
"@types/node": "^18.15.11", | ||
"rimraf": "^5.0.0", | ||
"typescript": "^5.0.4" | ||
"@swc/core": "1.3.80", | ||
"@types/node": "^20.5.6", | ||
"rimraf": "^5.0.1", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
{ | ||
"extends": "@essex/tsconfig-node14", | ||
"extends": "@essex/tsconfig-node18", | ||
"compilerOptions": { | ||
@@ -4,0 +4,0 @@ "module": "commonjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19844
353
Updated@babel/core@^7.22.11
Updated@babel/preset-env@^7.22.10
Updated@babel/preset-react@^7.22.5
Updatedtslib@^2.6.2