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

regex ,dont update path if already has .js extension #56

Closed
wants to merge 1 commit into from

Conversation

stevensanborn
Copy link

address issue by changing the regex to ignore anything already ending .js in post build

@heyAyushh
Copy link
Member

heyAyushh commented Sep 24, 2024

@stevensanborn

Your changes didn't work, here's a script for example

content = "import {x} from 'y'";
content = content.replace(/from\s'"+['"]$/g, "from '$1.js'");
console.log(content)

same with the export change.
Meanwhile I was looking into this and have fixed this issue here #58

Thanks for your contribution 🥇

@heyAyushh heyAyushh closed this Sep 24, 2024
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

Successfully merging this pull request may close these issues.

2 participants