Skip to content

Commit

Permalink
update babel core to revert old behavior of babel merge
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Oct 11, 2024
1 parent e8294c3 commit 2f910be
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/torus-scripts/helpers/babelMerge.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ function arrayMerge(source = [], overrides = []) {

function mergeArray(source = [], overrides = [], resolve, deepmergeOpts) {
return [...source, ...overrides].reduce((reduction, override) => {
const overrideName = resolve(Array.isArray(override) ? override[0] : override).filepath;
const overrideName = resolve(Array.isArray(override) ? override[0] : override);
const overrideOptions = Array.isArray(override) ? override[1] : {};
const base = reduction.find((base) => {
const baseName = resolve(Array.isArray(base) ? base[0] : base).filepath;
const baseName = resolve(Array.isArray(base) ? base[0] : base);
return baseName === overrideName || baseName.includes(overrideName);
});

const index = reduction.includes(base) ? reduction.indexOf(base) : reduction.length;
const baseName = base ? resolve(Array.isArray(base) ? base[0] : base).filepath : overrideName;
const baseName = base ? resolve(Array.isArray(base) ? base[0] : base) : overrideName;
const baseOptions = Array.isArray(base) ? base[1] : {};
const options = merge(baseOptions, overrideOptions, {
arrayMerge,
Expand Down
2 changes: 1 addition & 1 deletion packages/torus-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"torus-scripts": "./bin/torus-scripts.js"
},
"dependencies": {
"@babel/core": "^7.25.7",
"@babel/core": "^7.25.8",
"@babel/plugin-syntax-bigint": "^7.8.3",
"@babel/plugin-transform-class-properties": "^7.25.7",
"@babel/plugin-transform-numeric-separator": "^7.25.7",
Expand Down

0 comments on commit 2f910be

Please sign in to comment.