-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: add support for q:base
#93
Conversation
LGTM but, I had a good next proposal for multiple bases in a single app. IE, multiple qwik apps. Like the idea of I could even propose to make it: |
url?: URL | ||
element: Element | null, | ||
eventUrl?: string | null, | ||
_url?: string, |
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.
Not important, but why the _
here?
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.
because it is cut and paste from a bootloader where they are parameters to save bytes and I wanted to make it clear that they are not to be used.
doc.baseURI | ||
); | ||
url.pathname += '.js'; | ||
if (eventUrl === undefined) { |
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.
if (eventUrl)
won't do, can we use if (eventUrl == null)
?
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.
NO, it specifically is looking for undefined
@@ -35,9 +33,9 @@ export function qImport<T>(node: Node | Document, url: string | QRL<T> | URL): T | |||
return Promise.resolve<T>(testSymbol); | |||
} | |||
} | |||
const doc: QDocument = node.ownerDocument || (node as Document); | |||
const doc: QDocument = element.ownerDocument!; |
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.
Not possible for document
to be an element?
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.
not any more.
* feat: add support for `q:base` * fixup! feat: add support for `q:base` Co-authored-by: Misko Hevery <>
No description provided.