-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add dom.js to allow custom document object #165
Conversation
Thanksss! this basically LGTM if the test failures can be fixed. lmk if you need a hand there. |
@goto-bus-stop Currently Edit: I think it's some kind of browserify problem. |
Removed |
the node.js version of the |
(This is what i mean lol: Lines 11 to 18 in 6d0dc18
So the problem with the browserify transform test is that the transform looks for a i know you don't like mutating the global, but i think the easiest way to address this would be to create the JSDOM object in e; sorry this is spiraling into something much more complex than anticipated! |
Understood, but doing so won't really test the new dom.js, no? Wouldn't it just run as if it's on a browser with global |
Hmm, |
Went a bit different way as your suggestion somehow didn't work (because of conflicts between browser and server tests). It now works 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!!
Oops, I think the aliasing is now redundant 👀 |
The tests were ok either way, but aliasing both paths ensures that the main nanohtml code doesn't end up in the bundle, which makes the tests a little stronger. We should also add checks to the transform and babel plugin tests to make sure that we are not accidentally including the entire nanohtml module anyway because that would defeat the purpose :D |
📦 1.9.0 🎉 |
Closes #158
👍