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

fix: relative base code generation (previously generated as ./) #7905

Closed
wants to merge 2 commits into from

Conversation

iacore
Copy link

@iacore iacore commented Apr 25, 2022

fix a bug in #7644

@@ -80,6 +80,7 @@
"acorn": "^8.7.0",
"cac": "6.7.9",
"chokidar": "^3.5.3",
"colorette": "^2.0.16",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

@patak-dev
Copy link
Member

Would you explain what is the bug? The best would be to add a test case that this PR is fixing.

@iacore
Copy link
Author

iacore commented Apr 26, 2022

I don't know how to write the test case.

The bug is that the generated code contains

let a = ./

instead of

let a = "./"

You can find this in preload-helper.xxxxx.js in projects built with vite with base as ./.

@patak-dev
Copy link
Member

I see, thanks for the fix! Apply it only that line in the PR.

@patak-dev patak-dev closed this Apr 29, 2022
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.

None yet

2 participants