-
Notifications
You must be signed in to change notification settings - Fork 484
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
Consider moving to esm and then build for cjs #414
Comments
This runs
|
That's because of how nodejs works. I want use it via URL imports sooo ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting
Issue description
As stated in title; because https://esm.sh can't build it properly as
__dirname
isn't implemented in esm so it makes it impossible for it to properly work. If you don't consider moving to esm, atleast consider putting injection.html as a string, save it to a js file as a string and export it, and then import it. Same for other files. This would fix it :)Software details
live-server
:live-server
version:The text was updated successfully, but these errors were encountered: