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

Minifications Strips Getters #24

Open
dt665m opened this issue Apr 12, 2024 · 0 comments
Open

Minifications Strips Getters #24

dt665m opened this issue Apr 12, 2024 · 0 comments

Comments

@dt665m
Copy link

dt665m commented Apr 12, 2024

Describe the Bug

Trunk uses this library to do minifcation. It seems to strip getters. In my minimal repro, using a release build will default to using minification in trunk.

Steps to Reproduce

  • wasm-bindgen 0.2.92
  • I'm using OSX Sonoma on Apple Silicon and Chrome 123.x
  • clone this minimal repro
  • install trunk cargo install --locked trunk
  • serve with trunk serve
  • open browser at localhost:8080. Observe console log of "hello world"
  • serve with trunk serve --release
  • open browser at localhost:8080. Observe console log of "function...."

Expected Behavior

Getters should remain

Actual Behavior

Differing results in Debug and Release. See this original issue comment and this issue with trunk

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

1 participant