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

Cannot use import statement outside a module #320

Open
jakobrosenberg opened this issue Dec 20, 2021 · 5 comments · May be fixed by #1705
Open

Cannot use import statement outside a module #320

jakobrosenberg opened this issue Dec 20, 2021 · 5 comments · May be fixed by #1705
Assignees
Labels
enhancement New feature or request

Comments

@jakobrosenberg
Copy link

Am I required to bundle dependencies or is there a way to support dynamic imports with happy-dom?

@capricorn86
Copy link
Owner

Hi @jakobrosenberg! 🙂

Yes this is a feature I have been thinking about adding as I also have a need for it. Not sure exactly when I will get the time to add it, but I will do it as soon as possible.

@jakobrosenberg
Copy link
Author

That sounds amazing!

If there's anything I can do to help, let me know. 🙂

@capricorn86 capricorn86 added the enhancement New feature or request label Jan 25, 2022
@jakobrosenberg
Copy link
Author

Any news on this? Still happy to help.

@capricorn86
Copy link
Owner

@jakobrosenberg sorry for a late answer. It has been a lot in my private and working life.

This is not that easy to implement, but definitely something I want to do when the major bugs has been cleared up.

@denniseffing
Copy link

We just ran into this issue as well. Due to this issue, we are not able to write unit tests using vitest and @testing-library/dom. Not even jsdom supports this jsdom/jsdom#2475 😢 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants