resolveScript.d.ts 651 B

1234567891011
  1. import webpack = require('webpack');
  2. import type { SFCDescriptor, SFCScriptBlock } from '@vue/compiler-sfc';
  3. import type { VueLoaderOptions } from 'src';
  4. /**
  5. * inline template mode can only be enabled if:
  6. * - is production (separate compilation needed for HMR during dev)
  7. * - template has no pre-processor (separate loader chain required)
  8. * - template is not using src
  9. */
  10. export declare function canInlineTemplate(descriptor: SFCDescriptor, isProd: boolean): boolean;
  11. export declare function resolveScript(descriptor: SFCDescriptor, scopeId: string, options: VueLoaderOptions, loaderContext: webpack.loader.LoaderContext): SFCScriptBlock | null;