Skip to content

Commit

Permalink
Merge pull request #25 from Meteor-Community-Packages/fix/preset-env-…
Browse files Browse the repository at this point in the history
…version

Dynamically get preset-env version
  • Loading branch information
StorytellerCZ authored Sep 27, 2023
2 parents 6bf85da + 806feb8 commit 883f3bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/electronApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ export default class ElectronApp {
const uglifyingEnabled = 'uglify' in settings && !!settings.uglify;

const preset = presetEnv({
version: '7.22.14',
version: require('../package.json').dependencies['@babel/preset-env'],
assertVersion: () => { }
}, { targets: { node: '14' } });

Expand Down
3 changes: 1 addition & 2 deletions plugins/bundler/bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,6 @@ class MeteorDesktopBundler {
terser,
md5
} = deps);
console.log(deps);
} catch (e) {
// Look at the declaration of StringPrototypeToOriginal for explanation.
String.prototype.to = StringPrototypeToOriginal; // eslint-disable-line
Expand Down Expand Up @@ -814,7 +813,7 @@ class MeteorDesktopBundler {
babelPresetEnv = babelPresetEnv.default;
}
const preset = babelPresetEnv({
version: '7.22.14',
version: this.getPackageJsonField('dependencies')['@babel/preset-env'],
assertVersion: () => { }
}, { targets: { node: '14' } });

Expand Down

0 comments on commit 883f3bf

Please sign in to comment.