Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with electron vite and v5 building #401

Open
philjones88 opened this issue Feb 6, 2024 · 1 comment
Open

Issues with electron vite and v5 building #401

philjones88 opened this issue Feb 6, 2024 · 1 comment

Comments

@philjones88
Copy link

I tried bumping from v4.4.8 to v5.1.0 but have come across this when trying to use this library with electron vite:

SyntaxError: unknown file: Unable to transform arrow inside class property
  1513 | 	  formatters = {
  1514 | 	    app: {
> 1515 | 	      'certificate-error': ({ args }) => {
       | 	                           ^
  1516 | 	        return this.arrayToObject(args.slice(1, 4), [
  1517 | 	          'url',
  1518 | 	          'error',
at File.buildCodeFrameError (/Users/philjones/Documents/work/foo/electron/node_modules/.pnpm/@[email protected]/node_modules/@babel/core/lib/transformation/file/file.js:205:12)

electron vite has a bytecode plugin that has restriction on input code that it runs through babel.

related: alex8088/electron-vite#156
see: https://electron-vite.org/guide/source-code-protection

@megahertz
Copy link
Owner

Sorry, but I can't help with that. I have no plans to transpile the library at least until version 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants