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

Some functions cannot be used normally after JSDOM update #1

Open
huaibaoyy1 opened this issue Oct 12, 2022 · 3 comments
Open

Some functions cannot be used normally after JSDOM update #1

huaibaoyy1 opened this issue Oct 12, 2022 · 3 comments

Comments

@huaibaoyy1
Copy link

I'm sorry to bother you. Due to the update of JSDOM, your JS may need to be updated, or can you tell me how to use webpack to package JSDOM? thank you very much

@guest271314
Copy link
Owner

or can you tell me how to use webpack to package JSDOM?

This is a proof of concept. I have not ytied to package JSDOM with webpack.

@huaibaoyy1
Copy link
Author

How do you package JSDOM into a file? This may be needed in my project! I hope you can do the same

@guest271314
Copy link
Owner

See jsdom/jsdom#3315 (comment), jsdom/jsdom#3315 (comment).

I downloaded Node.js source code, adjusted several ahebng lines to point to folder path (because I do not have Node.js installed on the machine via package manager) installed browserify (see jsdom/jsdom#245 (comment)) to the directory and created a bundle of JSDOM, adjusting the bundled code to add an export statement, that runs in the browser.

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

2 participants