mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00

* 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
12 lines
199 B
TypeScript
12 lines
199 B
TypeScript
|
|
let callback: (args: any) => void;
|
|
export function test(args: any) {
|
|
if (callback) {
|
|
callback(args);
|
|
}
|
|
}
|
|
|
|
export function setCallback(cb: (args: any) => void) {
|
|
callback = cb;
|
|
}
|