mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 09:27:19 +08:00
34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
import { ParsedUrlQuery } from 'querystring';
|
|
import { Context } from '../server';
|
|
export declare const resolveFrom: (root: string, id: string) => string;
|
|
export declare const queryRE: RegExp;
|
|
export declare const hashRE: RegExp;
|
|
export declare const cleanUrl: (url: string) => string;
|
|
export declare const parseWithQuery: (id: string) => {
|
|
path: string;
|
|
query: ParsedUrlQuery;
|
|
};
|
|
export declare const bareImportRE: RegExp;
|
|
export declare const isExternalUrl: (url: string) => boolean;
|
|
export declare const isDataUrl: (url: string) => boolean;
|
|
/**
|
|
* Check if a file is a static asset that vite can process.
|
|
*/
|
|
export declare const isStaticAsset: (file: string) => boolean;
|
|
/**
|
|
* Check if a request is an import from js instead of a native resource request
|
|
* i.e. differentiate
|
|
* `import('/style.css')`
|
|
* from
|
|
* `<link rel="stylesheet" href="/style.css">`
|
|
*
|
|
* The ?import query is injected by serverPluginModuleRewrite.
|
|
*/
|
|
export declare const isImportRequest: (ctx: Context) => boolean;
|
|
export declare function parseNodeModuleId(id: string): {
|
|
scope: string;
|
|
name: string;
|
|
inPkgPath: string;
|
|
};
|
|
export declare function removeUnRelatedHmrQuery(url: string): string;
|