MCPcopy
hub / github.com/QwikDev/qwik / importPath

Function importPath

scripts/util.ts:160–171  ·  view source on GitHub ↗
(filter: RegExp, newModulePath: string)

Source from the content-addressed store, hash-verified

158
159/** Esbuild plugin to change an import path, but keep it an external path. */
160export function importPath(filter: RegExp, newModulePath: string) {
161 const plugin: Plugin = {
162 name: 'importPathPlugin',
163 setup(build) {
164 build.onResolve({ filter }, () => ({
165 path: newModulePath,
166 external: true,
167 }));
168 },
169 };
170 return plugin;
171}
172
173/** Standard license banner to place at the top of the generated files. */
174export const getBanner = (moduleName: string, version: string) => {

Callers 5

submoduleTestingFunction · 0.90
resolveRequestHandlerFunction · 0.90
resolveStaticFunction · 0.90
resolveAdapterSharedFunction · 0.90
submoduleServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…