Files
Alexander Vakrilov 9fcc1ddf94 feat(bundle): support for file qualifiers + builder refactor (#7386)
* feat(bundle): support for file qualifiers in builder

* chore: add qualifiers test app

* chore: add @Deprecated for file-name-resolver

* fix(hmr): hmr not working for scss files

* chore: globals clean-up

* shore: fix tslint

* tests: uncomment test fixed by ns-dev-webpack

* chore: move qualifiers app to e2e

* chore: update webpack config

* chore: tslint errors

* test: fix wrong css import
2019-06-26 18:40:18 +03:00

21 lines
674 B
TypeScript

/**
* Provides ModuleNameResolver class used for loading files based on device capabilities.
* @module "module-name-resolver"
*/ /** */
import { PlatformContext } from "./qualifier-matcher";
export { PlatformContext } from "./qualifier-matcher";
export type ModuleListProvider = () => string[];
export class ModuleNameResolver {
constructor(context: PlatformContext, moduleListProvider?: ModuleListProvider);
resolveModuleName(path: string, ext: string): string;
clearCache(): void;
}
export function resolveModuleName(path: string, ext: string): string;
export function clearCache(): void;
export function _setResolver(resolver: ModuleNameResolver);