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

Set sideEffects to true if #[wasm_bindgen(start)] is present #920

Open
Flashs opened this issue Oct 2, 2020 · 0 comments
Open

Set sideEffects to true if #[wasm_bindgen(start)] is present #920

Flashs opened this issue Oct 2, 2020 · 0 comments

Comments

@Flashs
Copy link

Flashs commented Oct 2, 2020

💡 Feature description

I'm currently working on a project using yew + webpack for the frontend.

I ran into a small issue where i have specified the start function with #[wasm_bindgen(start)] but the import got excluded from the bundled javascript file by webpack. This is because the package.json contains sideEffets : false and the library not being used otherwise. This isn't really a huge issue for me though and I'm not sure how easy or compicated it is to implement.

I just wanted to point it out, in case someone else faces the same issue.

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

No branches or pull requests

2 participants