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

feat: add support for q:base #93

Merged
merged 2 commits into from
Nov 30, 2021
Merged

Conversation

mhevery
Copy link
Contributor

@mhevery mhevery commented Nov 30, 2021

No description provided.

@mhevery mhevery requested a review from adamdbradley November 30, 2021 04:15
@manucorporat
Copy link
Contributor

LGTM but, I had a good next proposal for multiple bases in a single app. IE, multiple qwik apps. Like the idea of
base:entry#symbol

I could even propose to make it:
:entry#symbol
for the default base

url?: URL
element: Element | null,
eventUrl?: string | null,
_url?: string,
Copy link
Contributor

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?

Copy link
Contributor Author

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) {
Copy link
Contributor

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)?

Copy link
Contributor Author

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!;
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not any more.

@mhevery mhevery merged commit 98eef9c into QwikDev:main Nov 30, 2021
adamdbradley pushed a commit to adamdbradley/qwik that referenced this pull request Dec 13, 2021
* feat: add support for `q:base`

* fixup! feat: add support for `q:base`

Co-authored-by: Misko Hevery <>
@mhevery mhevery deleted the pr-feat-q-base branch July 2, 2022 17:22
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

Successfully merging this pull request may close these issues.

3 participants