Skip to content

Commit

Permalink
fix: target electron 11
Browse files Browse the repository at this point in the history
BREAKING CHANGE now the preset-env is configured for Electron 11
  • Loading branch information
aminya committed Jul 2, 2022
1 parent b453d45 commit dc685fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ let presets = [

2. `targets`

To change the target of `preset-env` plugin. By default this is configured for Electron.
To change the target of `preset-env` plugin. By default this is configured for Electron 11.

```json
{
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ function handleOptions(options: Options) {
notStrictCommentTriggers,
} = options

// use Electron 6 targets by default
// use Electron 11 targets by default
if (targets === undefined) {
targets = {
electron: 6,
electron: 11,
}
}

Expand Down

0 comments on commit dc685fb

Please sign in to comment.