保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5
PAMapp/node_modules/style-resources-loader/src/utils/inject-resources.ts
@@ -1,15 +1,17 @@
import type {LoaderContext} from '../types';
import type {StyleResources, StyleResourcesLoaderNormalizedOptions} from '..';
import {errorMessage} from './error-message';
export const injectResources = async (
    ctx: LoaderContext,
    options: StyleResourcesLoaderNormalizedOptions,
    source: string,
    resources: StyleResources,
) => {
    const {injector} = options;
    const dist: unknown = injector(source, resources);
    const dist: unknown = injector.call(ctx, source, resources);
    const content = await dist;