Skip to content

Public Class attributes in preload script #1490

Answered by nklayman
Dragony asked this question in Q&A
Discussion options

You must be logged in to vote

This is because the preload.js file isn't transpiled with babel by default. You need to enable it for the main process, see #204 (comment) for details. It's for class properties specifically but it should be simple to get it to work for your usecase.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nklayman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants