-
Notifications
You must be signed in to change notification settings - Fork 18
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
Avoid dependency on global document. #15
base: master
Are you sure you want to change the base?
Conversation
do you have a problem if |
@neonstalwart as I have pointed out I can not add Also what's the problem with making different package that exposes convenient API, that way users desiring convenience could use it & users who can't use it will use more lower level API. I'm also fine with doing it other way round, meaning factoring out all of this into separate package say |
does |
Such module does not exists in the environment I'm trying to use this, there for loading it will cause an error. I also won't be able to get a green light on landing fake |
i see - that sounds like the real showstopper for you. |
This still isn't making sense to me, let me try again to understand your problem. Currently, you can always specify the document that you wish to use, correct? We have
I think you currently can do this, as it was designed for the ifame/node case. I still don't understand why
I do think it is important to set the defaults.
Can we fix |
Ok so inclusion of vdom + vtree to our project is already a hard sell that involves convincing team members. Now selling this with all the extra burden (like dependencies that don't really make any logical sense to our environment) is likely impossible, because both memory footprint and overall product size are constraints for the project. Given present constraints my attempt to use vdom + vtree will either be rejected or at best I'll have on option to make fork that strips out all the extra burden. Neither of these options is ideal & I would much rather have shared subset that everyone could collaborate on. |
@Gozala I can fix the global module to not load The fact it does that is a bug. In an ideal world when you browserify |
Well we don't actually use browserify. I don't know what do you consider fix to be, but the fact that we would have to add |
I would like to use this library in the context where there is no single global or document (It is a browser code that has access to every document loaded, but there is not a single one that we could pick) there for it isn't possible to provide something like
require("global/document")
.As far as I see
createElement
without document, is just for a convenience of the API, if it's really crucial maybe some other package could wrap thiscreateElement
to do that.