##// END OF EJS Templates
DjxFragment converted to functionl component...
DjxFragment converted to functionl component Added support for the widgets, null, undefined, boolean types to BuildContext

File last commit:

r53:deb0ed6fb680 v1.0.7 default
r59:bcdd096122ff default
Show More
css.ts
18 lines | 455 B | video/mp2t | TypeScriptLexer
import inject from "./dom-inject";
interface OnLoad {
(result?: any): void;
error(err: any): void;
}
const plugin = {
load: (id: string, require: Require, cb: OnLoad, config: { isBuild?: boolean }) => {
if (config && config.isBuild) {
cb();
} else {
const url = require.toUrl(id);
inject.injectStylesheet(url).then(() => cb({ url }), e => cb.error(e));
}
}
};
export = plugin;