Brooooooklyn / Image

Image processing library.

Home Page:https://image.napi.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Can't use `const enum`s when `verbatimModuleSyntax` is enabled

kyranet opened this issue · comments

commented

Search before asking

  • I searched in the issues and found nothing similar.

Image version

1.8.0

System version

Windows 11 23H2 22631.3085

Node.js version

20.7.0

Minimal reproduce step

Set either verbatimModuleSyntax or isolatedModules to true, then use any of the const enums such as ResizeFit.

What did you expect to see?

The code works just fine.

What did you see instead?

Code_blIOzddlfy

Anything else?

I checked the issues in the @napi-rs/napi-rs repository, and I found this issue which may be relevant: napi-rs/napi-rs#1689

However, I'm unsure where would I place the --no-const-enum option, and can't test my local changes because libaom-sys can't find nasm despite being installed.

Are you willing to submit a PR?

  • I'm willing to submit a PR!