Skip to content

Commit

Permalink
Sync babel preset env function signature
Browse files Browse the repository at this point in the history
Testing out if this helps.
  • Loading branch information
StorytellerCZ committed Aug 30, 2023
1 parent 648c984 commit 1ea4fc0
Show file tree
Hide file tree
Showing 4 changed files with 2,059 additions and 2,018 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To migrate from the original `meteor-desktop`:

## Prerequisites

- Meteor >= `1.4`
- Meteor >= `1.12.1`
- at least basic [Electron](http://electron.atom.io/) framework knowledge
- mobile platform added to project<sup>__*1__</sup>

Expand Down
6 changes: 4 additions & 2 deletions lib/electronApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,6 @@ export default class ElectronApp {
], { force: true });
}


/**
* Runs babel and uglify over .desktop if requested.
*/
Expand All @@ -852,7 +851,10 @@ export default class ElectronApp {

const uglifyingEnabled = 'uglify' in settings && !!settings.uglify;

const preset = presetEnv({ assertVersion: () => { } }, { targets: { node: '12' } });
const preset = presetEnv({
version: '7.22.14',
assertVersion: () => { }
}, { targets: { node: '14' } });

const { data: files } = await this.$.utils.readDir(this.$.env.paths.desktopTmp.root);

Expand Down
Loading

0 comments on commit 1ea4fc0

Please sign in to comment.