版博士V2.0程序
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

chunk-B5FY4E7C.mjs 624 B

123456789101112131415161718192021222324252627282930
  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. };