UNPKG

@omnia/tooling-vue

Version:

Used to bundle and serve manifests web component that build on Vue framework.

38 lines (37 loc) 1.69 kB
interface OmniaUrl { fromWorker: boolean; } interface OmniaBundleUrl extends OmniaUrl { resourceId: string; bundleFileExtension: string; } interface OmniaEsmUrl extends OmniaUrl { resourceId: string; } interface OmniaPhysicalPath extends OmniaUrl { pathname: string; } export declare const OMNIA_BUNDLE_REQUEST = "/omnia/bundles"; export declare const HMR_ESM_REQUEST = "/hmr/esm"; export declare const HMR_DYNAMIC_BUNDLE_REQUEST = "/hmr/dynamicbundles"; export declare const WORKER_IDENTIFIER = "omniaworker"; export declare function isBundlePath(value: string): boolean; export declare function isEsmPath(value: string): boolean; export declare function isSourceCodePath(value: string): boolean; export declare function isJavaScriptSuperset(value: string): boolean; export declare function isTsPath(importPath: string): boolean; export declare function isNodeModulePath(value: string): boolean; export declare function isPublicDirPath(value: string): boolean; export declare function isImageFilePath(value: string): boolean; export declare function parseOmniaBundlePath(value: string): OmniaBundleUrl; export declare function parseHmrEsmPath(value: string): OmniaEsmUrl; export declare function parseHmrDynamicBundlePath(value: string): OmniaEsmUrl; export declare function parsePhysicalPath(value: string): OmniaPhysicalPath; export declare function modify(value: string): { appendWorkerIdentifier(checker: boolean): any; appendTimestamp(timestamp: number): any; getValue(): string; }; export declare function resolveModulePath(modulePath: string, external?: boolean): string; export declare function resolveTsPath(importPath: string): string; export {};