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

wakaru removes unused imports #112

Closed
milahu opened this issue Feb 15, 2024 · 1 comment
Closed

wakaru removes unused imports #112

milahu opened this issue Feb 15, 2024 · 1 comment

Comments

@milahu
Copy link

milahu commented Feb 15, 2024

Describe the bug

wakaru removes unused imports
but these imports can have side effects which are required

see also Import a module for its side effects only

Input code

import "./x.js"; // FIXME this import is removed
import y from "./y.js"; // FIXME this import is removed
import z from "./z.js";
console.log(z);

Reproduction

No response

Steps to reproduce

No response

Expected behavior

keep all imports

Actual behavior

No response

@pionxzh
Copy link
Owner

pionxzh commented Feb 15, 2024

Fixed. You can verify it on the playground. These will be released this weekend.

@pionxzh pionxzh closed this as completed Feb 15, 2024
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