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

rename breaks imports #9

Open
milahu opened this issue Mar 3, 2024 · 0 comments
Open

rename breaks imports #9

milahu opened this issue Mar 3, 2024 · 0 comments

Comments

@milahu
Copy link

milahu commented Mar 3, 2024

Versions

Plugin Version: v2.2.0

input

import { someName } from "./some-where.js";

import fs from 'fs';
fs.readFileSync("some-where.txt", "utf8");

expected output

import { someName as some_name } from "./some-where.js";

import fs from 'fs';
fs.readFileSync("some-where.txt", "utf8");

actual output

import { some_name } from "./some-where.js";

import fs from 'fs';
fs.read_file_sync("some-where.txt", "utf8");
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