Skip to content

Commit 86d6378

Browse files
committed
refactor(dev): remove foundql from vite-dev-server
the parent information from the dev qrl data is sufficient
1 parent 568132c commit 86d6378

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

packages/qwik/src/optimizer/src/plugins/vite-dev-server.ts

+2-10
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ const encode = (url: string) =>
3939
function createSymbolMapper(
4040
base: string,
4141
opts: NormalizedQwikPluginOptions,
42-
foundQrls: Map<string, string>,
4342
path: Path,
4443
sys: OptimizerSystem
4544
): SymbolMapperFn {
@@ -55,13 +54,7 @@ function createSymbolMapper(
5554
const hash = getSymbolHash(symbolName);
5655
if (!parent) {
5756
console.warn(
58-
`qwik vite-dev-server symbolMapper: parent not provided for ${symbolName}, falling back to foundQrls.`
59-
);
60-
parent = foundQrls.get(hash);
61-
}
62-
if (!parent) {
63-
console.warn(
64-
`qwik vite-dev-server symbolMapper: ${symbolName} not in foundQrls, falling back to mapper.`
57+
`qwik vite-dev-server symbolMapper: parent not provided for ${symbolName}, falling back to mapper.`
6558
);
6659
const chunk = mapper && mapper[hash];
6760
if (chunk) {
@@ -110,10 +103,9 @@ export async function configureDevServer(
110103
path: Path,
111104
isClientDevOnly: boolean,
112105
clientDevInput: string | undefined,
113-
foundQrls: Map<string, string>,
114106
devSsrServer: boolean
115107
) {
116-
symbolMapper = lazySymbolMapper = createSymbolMapper(base, opts, foundQrls, path, sys);
108+
symbolMapper = lazySymbolMapper = createSymbolMapper(base, opts, path, sys);
117109
if (!devSsrServer) {
118110
// we just needed the symbolMapper
119111
return;

packages/qwik/src/optimizer/src/plugins/vite.ts

-1
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ export function qwikVite(qwikViteOpts: QwikVitePluginOptions = {}): any {
694694
path,
695695
isClientDevOnly,
696696
clientDevInput,
697-
qwikPlugin.foundQrls,
698697
devSsrServer
699698
);
700699
};

0 commit comments

Comments
 (0)