版博士V2.0程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

31 righe
624 B

  1. // src/unplugin.ts
  2. import { createFilter as createRollupFilter } from "@rollup/pluginutils";
  3. import {
  4. normalizePath,
  5. attachScopes
  6. } from "@rollup/pluginutils";
  7. function getTransformResult(s, id) {
  8. if (s == null ? void 0 : s.hasChanged()) {
  9. return {
  10. code: s.toString(),
  11. get map() {
  12. return s.generateMap({
  13. source: id,
  14. includeContent: true,
  15. hires: true
  16. });
  17. }
  18. };
  19. }
  20. }
  21. function createFilter(options) {
  22. return createRollupFilter(options.include, options.exclude);
  23. }
  24. export {
  25. getTransformResult,
  26. createFilter,
  27. normalizePath,
  28. attachScopes
  29. };