Skip to content

Commit

Permalink
WIP remove foundql from vite-dev-server
Browse files Browse the repository at this point in the history
not needed

blind commit, needs to be checked
+ figure out missing service worker on docs
  • Loading branch information
wmertens committed Aug 1, 2024
1 parent 433438c commit 00b1473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
12 changes: 2 additions & 10 deletions packages/qwik/src/optimizer/src/plugins/vite-dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const encode = (url: string) =>
function createSymbolMapper(
base: string,
opts: NormalizedQwikPluginOptions,
foundQrls: Map<string, string>,
path: Path,
sys: OptimizerSystem
): SymbolMapperFn {
Expand All @@ -55,13 +54,7 @@ function createSymbolMapper(
const hash = getSymbolHash(symbolName);
if (!parent) {
console.warn(
`qwik vite-dev-server symbolMapper: parent not provided for ${symbolName}, falling back to foundQrls.`
);
parent = foundQrls.get(hash);
}
if (!parent) {
console.warn(
`qwik vite-dev-server symbolMapper: ${symbolName} not in foundQrls, falling back to mapper.`
`qwik vite-dev-server symbolMapper: parent not provided for ${symbolName}, falling back to mapper.`
);
const chunk = mapper && mapper[hash];
if (chunk) {
Expand Down Expand Up @@ -110,10 +103,9 @@ export async function configureDevServer(
path: Path,
isClientDevOnly: boolean,
clientDevInput: string | undefined,
foundQrls: Map<string, string>,
devSsrServer: boolean
) {
symbolMapper = lazySymbolMapper = createSymbolMapper(base, opts, foundQrls, path, sys);
symbolMapper = lazySymbolMapper = createSymbolMapper(base, opts, path, sys);
if (!devSsrServer) {
// we just needed the symbolMapper
return;
Expand Down
1 change: 0 additions & 1 deletion packages/qwik/src/optimizer/src/plugins/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ export function qwikVite(qwikViteOpts: QwikVitePluginOptions = {}): any {
path,
isClientDevOnly,
clientDevInput,
qwikPlugin.foundQrls,
devSsrServer
);
};
Expand Down

0 comments on commit 00b1473

Please sign in to comment.