##// END OF EJS Templates
bump dependencies, bump ts to 5.2...
bump dependencies, bump ts to 5.2 moved observables logic to ObservableImpl fixed while/until bug with complete handler multiple call

File last commit:

r109:4a375b9c654a default
r155:6acbe6efbe20 v1.10.2 default
Show More
css.ts
18 lines | 463 B | video/mp2t | TypeScriptLexer
import inject from "./dom-inject";
interface OnLoad {
(result?: unknown): void;
error(err: unknown): 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;