Skip to content

Commit

Permalink
fix(core): resolve core/internal
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Nov 22, 2024
1 parent 2905b5c commit 098beac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/qwik/src/optimizer/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,12 @@ export function createPlugin(optimizerOptions: OptimizerOptions = {}) {
id: QWIK_CLIENT_MANIFEST_ID,
moduleSideEffects: false,
};
} else if (pathId.endsWith(QWIK_CORE_INTERNAL_ID)) {
debug(`resolveId(${count})`, 'Resolved', QWIK_CORE_INTERNAL_ID);
result = {
id: QWIK_CORE_ID,
moduleSideEffects: false,
};
} else {
const qrlMatch = /^(?<parent>.*\.[mc]?[jt]sx?)_(?<name>[^/]+)\.js(?<query>$|\?.*$)/.exec(id)
?.groups as { parent: string; name: string; query: string } | undefined;
Expand Down

0 comments on commit 098beac

Please sign in to comment.