@unocss/svelte-scoped 0.58.0 → 0.58.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg)](https://stackblitz.com/fork/github/unocss/unocss/tree/main/examples/sveltekit-scoped)
4
4
 
5
- Place generated CSS for each Svelte component's utility styles directly into the component's `<style>` block instead of in a global CSS file.
5
+ Place generated CSS for each Svelte component's utility styles directly into the component's `<style>` block instead of in a global CSS file.
6
6
 
7
7
  ## Documentation
8
8
 
@@ -1,491 +1,13 @@
1
1
  'use strict';
2
2
 
3
- const process = require('node:process');
4
- const core = require('@unocss/core');
5
- const presetUno = require('@unocss/preset-uno');
6
- const config = require('@unocss/config');
7
- const MagicString = require('magic-string');
8
- const cssTree = require('css-tree');
3
+ const index = require('./shared/svelte-scoped.OxZwtPTQ.cjs');
4
+ require('node:process');
5
+ require('@unocss/core');
6
+ require('@unocss/preset-uno');
7
+ require('@unocss/config');
8
+ require('magic-string');
9
+ require('css-tree');
9
10
 
10
- function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
11
11
 
12
- const process__default = /*#__PURE__*/_interopDefaultCompat(process);
13
- const presetUno__default = /*#__PURE__*/_interopDefaultCompat(presetUno);
14
- const MagicString__default = /*#__PURE__*/_interopDefaultCompat(MagicString);
15
12
 
16
- const NOT_PRECEEDED_BY_DIGIT_OR_OPEN_PARENTHESIS_RE = /(?<![\d(])/;
17
- const SELECTOR_STARTING_WITH_BRACKET_OR_PERIOD_RE = /([[\.][\S\s]+?)/;
18
- const STYLES_RE = /({[\S\s]+?})/;
19
- const EXTRACT_SELECTOR_RE = new RegExp(NOT_PRECEEDED_BY_DIGIT_OR_OPEN_PARENTHESIS_RE.source + SELECTOR_STARTING_WITH_BRACKET_OR_PERIOD_RE.source + STYLES_RE.source, "g");
20
- function wrapSelectorsWithGlobal(css) {
21
- return css.replace(EXTRACT_SELECTOR_RE, ":global($1)$2");
22
- }
23
-
24
- const classesRE$1 = /class=(["'\`])([\S\s]*?)\1/g;
25
- const classDirectivesRE = /class:([\S]+?)="?{/g;
26
- const classDirectivesShorthandRE = /class:([^=>\s/]+)[{>\s/]/g;
27
- function findClasses(code) {
28
- const matchedClasses = [...code.matchAll(classesRE$1)];
29
- const matchedClassDirectives = [...code.matchAll(classDirectivesRE)];
30
- const matchedClassDirectivesShorthand = [...code.matchAll(classDirectivesShorthandRE)];
31
- const classes = parseMatches(matchedClasses, "regular", 'class="'.length);
32
- const classDirectives = parseMatches(matchedClassDirectives, "directive", "class:".length);
33
- const classDirectivesShorthand = parseMatches(matchedClassDirectivesShorthand, "directiveShorthand", "class:".length);
34
- return [...classes, ...classDirectives, ...classDirectivesShorthand];
35
- }
36
- function parseMatches(matches, type, prefixLength) {
37
- return matches.map((match) => {
38
- const body = match[type === "regular" ? 2 : 1];
39
- const start = match.index + prefixLength;
40
- return {
41
- body: body.trim(),
42
- start,
43
- end: start + body.length,
44
- type
45
- };
46
- }).filter(hasBody);
47
- }
48
- function hasBody(foundClass) {
49
- return foundClass.body;
50
- }
51
-
52
- const notInCommentRE = /(?<!<!--\s*)/;
53
- const stylesTagWithCapturedDirectivesRE = /<style([^>]*)>[\s\S]*?<\/style\s*>/;
54
- const actualStylesTagWithCapturedDirectivesRE = new RegExp(notInCommentRE.source + stylesTagWithCapturedDirectivesRE.source, "g");
55
- const captureOpeningStyleTagWithAttributesRE = /(<style[^>]*>)/;
56
- function addGeneratedStylesIntoStyleBlock(code, styles) {
57
- const preExistingStylesTag = code.match(actualStylesTagWithCapturedDirectivesRE);
58
- if (preExistingStylesTag)
59
- return code.replace(captureOpeningStyleTagWithAttributesRE, `$1${styles}`);
60
- return `${code}
61
- <style>${styles}</style>`;
62
- }
63
-
64
- async function needsGenerated(token, uno) {
65
- const inSafelist = uno.config.safelist.includes(token);
66
- if (inSafelist)
67
- return false;
68
- const result = await uno.parseToken(token);
69
- return !!result;
70
- }
71
-
72
- function hash(str) {
73
- let i;
74
- let l;
75
- let hval = 2166136261;
76
- for (i = 0, l = str.length; i < l; i++) {
77
- hval ^= str.charCodeAt(i);
78
- hval += (hval << 1) + (hval << 4) + (hval << 7) + (hval << 8) + (hval << 24);
79
- }
80
- return `00000${(hval >>> 0).toString(36)}`.slice(-6);
81
- }
82
-
83
- function generateClassName(body, options, filename) {
84
- const {
85
- classPrefix = "uno-",
86
- combine = true,
87
- hashFn = hash
88
- } = options;
89
- if (combine) {
90
- const classPlusFilenameHash = hashFn(body + filename);
91
- return `${classPrefix}${classPlusFilenameHash}`;
92
- } else {
93
- const filenameHash = hashFn(filename);
94
- return `_${body}_${filenameHash}`;
95
- }
96
- }
97
-
98
- function isShortcut(token, shortcuts) {
99
- return shortcuts.some((s) => s[0] === token);
100
- }
101
-
102
- async function processDirective({ body: token, start, end, type }, options, uno, filename) {
103
- const isShortcutOrUtility = isShortcut(token, uno.config.shortcuts) || await needsGenerated(token, uno);
104
- if (!isShortcutOrUtility)
105
- return;
106
- const generatedClassName = generateClassName(token, options, filename);
107
- const content = type === "directiveShorthand" ? `${generatedClassName}={${token}}` : generatedClassName;
108
- return {
109
- rulesToGenerate: { [generatedClassName]: [token] },
110
- codeUpdate: { content, start, end }
111
- };
112
- }
113
-
114
- async function sortClassesIntoCategories(body, options, uno, filename) {
115
- const { combine = true } = options;
116
- const rulesToGenerate = {};
117
- const ignore = [];
118
- const classes = body.trim().split(/\s+/);
119
- const knownClassesToCombine = [];
120
- for (const token of classes) {
121
- const isShortcutOrUtility = isShortcut(token, uno.config.shortcuts) || await needsGenerated(token, uno);
122
- if (!isShortcutOrUtility) {
123
- ignore.push(token);
124
- continue;
125
- }
126
- if (combine) {
127
- knownClassesToCombine.push(token);
128
- } else {
129
- const generatedClassName = generateClassName(token, options, filename);
130
- rulesToGenerate[generatedClassName] = [token];
131
- }
132
- }
133
- if (knownClassesToCombine.length) {
134
- const generatedClassName = generateClassName(knownClassesToCombine.join(" "), options, filename);
135
- rulesToGenerate[generatedClassName] = knownClassesToCombine;
136
- }
137
- return { rulesToGenerate, ignore };
138
- }
139
-
140
- const expressionsRE = /\S*{[^{}]+?}\S*/g;
141
- const classesRE = /(["'\`])([\S\s]*?)\1/g;
142
- async function processExpressions(body, options, uno, filename) {
143
- const rulesToGenerate = {};
144
- const updatedExpressions = [];
145
- let restOfBody = body;
146
- const expressions = [...body.matchAll(expressionsRE)];
147
- for (let [expression] of expressions) {
148
- restOfBody = restOfBody.replace(expression, "").trim();
149
- const classes = [...expression.matchAll(classesRE)];
150
- for (const [withQuotes, quoteMark, withoutQuotes] of classes) {
151
- const { rulesToGenerate: rulesFromExpression, ignore } = await sortClassesIntoCategories(withoutQuotes, options, uno, filename);
152
- Object.assign(rulesToGenerate, rulesFromExpression);
153
- const updatedClasses = Object.keys(rulesFromExpression).concat(ignore).join(" ");
154
- expression = expression.replace(withQuotes, quoteMark + updatedClasses + quoteMark);
155
- }
156
- updatedExpressions.push(expression);
157
- }
158
- return { rulesToGenerate, updatedExpressions, restOfBody };
159
- }
160
-
161
- async function processClassBody({ body, start, end }, options, uno, filename) {
162
- const expandedBody = core.expandVariantGroup(body);
163
- const { rulesToGenerate: rulesFromExpressions, restOfBody, updatedExpressions } = await processExpressions(expandedBody, options, uno, filename);
164
- const { rulesToGenerate: rulesFromRegularClasses, ignore } = await sortClassesIntoCategories(restOfBody, options, uno, filename);
165
- const rulesToGenerate = { ...rulesFromExpressions, ...rulesFromRegularClasses };
166
- if (!Object.keys(rulesToGenerate).length)
167
- return {};
168
- const content = Object.keys(rulesFromRegularClasses).concat(ignore).concat(updatedExpressions).join(" ");
169
- const codeUpdate = {
170
- content,
171
- start,
172
- end
173
- };
174
- return { rulesToGenerate, codeUpdate };
175
- }
176
-
177
- async function processClasses(classes, options, uno, filename) {
178
- const result = {
179
- rulesToGenerate: {},
180
- codeUpdates: []
181
- };
182
- for (const foundClass of classes) {
183
- if (foundClass.type === "regular") {
184
- const { rulesToGenerate, codeUpdate } = await processClassBody(foundClass, options, uno, filename);
185
- if (rulesToGenerate)
186
- Object.assign(result.rulesToGenerate, rulesToGenerate);
187
- if (codeUpdate)
188
- result.codeUpdates.push(codeUpdate);
189
- } else {
190
- const { rulesToGenerate, codeUpdate } = await processDirective(foundClass, options, uno, filename) || {};
191
- if (rulesToGenerate)
192
- Object.assign(result.rulesToGenerate, rulesToGenerate);
193
- if (codeUpdate)
194
- result.codeUpdates.push(codeUpdate);
195
- }
196
- }
197
- return result;
198
- }
199
-
200
- async function transformClasses({ content, filename, uno, options }) {
201
- const classesToProcess = findClasses(content);
202
- if (!classesToProcess.length)
203
- return;
204
- const { rulesToGenerate, codeUpdates } = await processClasses(classesToProcess, options, uno, filename);
205
- if (!Object.keys(rulesToGenerate).length)
206
- return;
207
- const { map, code } = updateTemplateCodeIfNeeded(codeUpdates, content, filename);
208
- const generatedStyles = await generateStyles(rulesToGenerate, uno);
209
- const codeWithGeneratedStyles = addGeneratedStylesIntoStyleBlock(code, generatedStyles);
210
- return {
211
- code: codeWithGeneratedStyles,
212
- map
213
- };
214
- }
215
- function updateTemplateCodeIfNeeded(codeUpdates, source, filename) {
216
- if (!codeUpdates.length)
217
- return { code: source, map: void 0 };
218
- const s = new MagicString__default(source);
219
- for (const { start, end, content } of codeUpdates)
220
- s.overwrite(start, end, content);
221
- return {
222
- code: s.toString(),
223
- map: s.generateMap({ hires: true, source: filename })
224
- };
225
- }
226
- const REMOVE_COMMENTS_TO_MAKE_GLOBAL_WRAPPING_EASY = true;
227
- async function generateStyles(rulesToGenerate, uno) {
228
- const shortcutsForThisComponent = Object.entries(rulesToGenerate);
229
- uno.config.shortcuts.push(...shortcutsForThisComponent);
230
- const selectorsToGenerate = Object.keys(rulesToGenerate);
231
- const { css } = await uno.generate(selectorsToGenerate, {
232
- preflights: false,
233
- safelist: false,
234
- minify: REMOVE_COMMENTS_TO_MAKE_GLOBAL_WRAPPING_EASY
235
- });
236
- const cssPreparedForSvelteCompiler = wrapSelectorsWithGlobal(css);
237
- return cssPreparedForSvelteCompiler;
238
- }
239
-
240
- function removeOuterQuotes(input) {
241
- if (!input)
242
- return "";
243
- return /^(['"]).*\1$/.test(input) ? input.slice(1, -1) : input;
244
- }
245
-
246
- function writeUtilStyles([, selector, body, parent], s, node, childNode) {
247
- if (!selector)
248
- return;
249
- const selectorChanged = selector !== ".\\-";
250
- if (!parent && !selectorChanged)
251
- return s.appendRight(childNode.loc.end.offset, body);
252
- const originalSelector = cssTree.generate(node.prelude);
253
- if (parent && !selectorChanged) {
254
- const css2 = `${parent}{${originalSelector}{${body}}}`;
255
- return s.appendLeft(node.loc.end.offset, css2);
256
- }
257
- const utilSelector = selector.replace(core.regexScopePlaceholder, " ");
258
- const updatedSelector = generateUpdatedSelector(utilSelector, node.prelude);
259
- const svelteCompilerReadySelector = surroundAllButOriginalSelectorWithGlobal(originalSelector, updatedSelector);
260
- const rule = `${svelteCompilerReadySelector}{${body}}`;
261
- const css = parent ? `${parent}{${rule}}` : rule;
262
- s.appendLeft(node.loc.end.offset, css);
263
- }
264
- function generateUpdatedSelector(selector, _prelude) {
265
- const selectorAST = cssTree.parse(selector, {
266
- context: "selector"
267
- });
268
- const prelude = cssTree.clone(_prelude);
269
- prelude.children.forEach((child) => {
270
- const parentSelectorAst = cssTree.clone(selectorAST);
271
- parentSelectorAst.children.forEach((i) => {
272
- if (i.type === "ClassSelector" && i.name === "\\-")
273
- Object.assign(i, cssTree.clone(child));
274
- });
275
- Object.assign(child, parentSelectorAst);
276
- });
277
- return cssTree.generate(prelude);
278
- }
279
- function surroundAllButOriginalSelectorWithGlobal(originalSelector, updatedSelector) {
280
- const wrapWithGlobal = (str) => `:global(${str})`;
281
- const originalSelectors = originalSelector.split(",").map((s) => s.trim());
282
- const updatedSelectors = updatedSelector.split(",").map((s) => s.trim());
283
- const resultSelectors = originalSelectors.map((original, index) => {
284
- const updated = updatedSelectors[index];
285
- const [prefix, suffix] = updated.split(original).map((s) => s.trim());
286
- const wrappedPrefix = prefix ? wrapWithGlobal(prefix) : "";
287
- if (!suffix)
288
- return `${wrappedPrefix} ${original}`.trim();
289
- const indexOfFirstCombinator = findFirstCombinatorIndex(suffix);
290
- if (indexOfFirstCombinator === -1)
291
- return `${wrappedPrefix} ${original}${suffix}`.trim();
292
- const pseudo = suffix.substring(0, indexOfFirstCombinator).trim();
293
- const siblingsOrDescendants = suffix.substring(indexOfFirstCombinator).trim();
294
- return `${wrappedPrefix} ${original}${pseudo} ${wrapWithGlobal(siblingsOrDescendants)}`.trim();
295
- });
296
- return resultSelectors.join(", ");
297
- }
298
- function findFirstCombinatorIndex(input) {
299
- const combinators = [" ", ">", "~", "+"];
300
- for (const c of combinators) {
301
- const indexOfFirstCombinator = input.indexOf(c);
302
- if (indexOfFirstCombinator !== -1)
303
- return indexOfFirstCombinator;
304
- }
305
- return -1;
306
- }
307
-
308
- async function getUtils(body, uno) {
309
- const classNames = core.expandVariantGroup(body).split(/\s+/g).map((className) => className.trim().replace(/\\/, ""));
310
- const utils = await parseUtils(classNames, uno);
311
- const sortedByRankIndex = utils.sort(([aIndex], [bIndex]) => aIndex - bIndex);
312
- const sortedByParentOrders = sortedByRankIndex.sort(([, , , aParent], [, , , bParent]) => (aParent ? uno.parentOrders.get(aParent) ?? 0 : 0) - (bParent ? uno.parentOrders.get(bParent) ?? 0 : 0));
313
- return sortedByParentOrders.reduce((acc, item) => {
314
- const [, selector, body2, parent] = item;
315
- const sibling = acc.find(([, targetSelector, , targetParent]) => targetSelector === selector && targetParent === parent);
316
- if (sibling)
317
- sibling[2] += body2;
318
- else
319
- acc.push([...item]);
320
- return acc;
321
- }, []);
322
- }
323
- async function parseUtils(classNames, uno) {
324
- const foundUtils = [];
325
- for (const token of classNames) {
326
- const util = await uno.parseToken(token, "-");
327
- if (util)
328
- foundUtils.push(util);
329
- else
330
- core.warnOnce(`'${token}' not found. You have a typo or need to add a preset.`);
331
- }
332
- return foundUtils.flat();
333
- }
334
-
335
- async function transformApply(ctx) {
336
- const ast = cssTree.parse(ctx.s.original, {
337
- parseAtrulePrelude: false,
338
- positions: true
339
- });
340
- if (ast.type !== "StyleSheet")
341
- return ctx.s;
342
- const stack = [];
343
- cssTree.walk(ast, (node) => {
344
- if (node.type === "Rule")
345
- stack.push(handleApply(ctx, node));
346
- });
347
- await Promise.all(stack);
348
- return ctx.s;
349
- }
350
- async function handleApply(ctx, node) {
351
- const parsePromises = node.block.children.map(async (childNode) => {
352
- await parseApply(ctx, node, childNode);
353
- });
354
- await Promise.all(parsePromises);
355
- }
356
- async function parseApply({ s, uno, applyVariables }, node, childNode) {
357
- const body = getChildNodeValue(childNode, applyVariables);
358
- if (!body)
359
- return;
360
- const utils = await getUtils(body, uno);
361
- if (!utils.length)
362
- return;
363
- for (const util of utils)
364
- writeUtilStyles(util, s, node, childNode);
365
- s.remove(childNode.loc.start.offset, childNode.loc.end.offset);
366
- }
367
- function getChildNodeValue(childNode, applyVariables) {
368
- if (childNode.type === "Atrule" && childNode.name === "apply" && childNode.prelude && childNode.prelude.type === "Raw")
369
- return childNode.prelude.value.trim();
370
- if (childNode.type === "Declaration" && applyVariables.includes(childNode.property) && childNode.value.type === "Raw")
371
- return removeOuterQuotes(childNode.value.value.trim());
372
- }
373
-
374
- const themeRE = /theme\((.+?)\)/g;
375
- function transformTheme(s, theme) {
376
- return s.replace(themeRE, (_, match) => {
377
- const argumentsWithoutQuotes = match.slice(1, -1);
378
- return getThemeValue(argumentsWithoutQuotes, theme);
379
- });
380
- }
381
- function getThemeValue(rawArguments, theme) {
382
- const keys = rawArguments.split(".");
383
- let current = theme;
384
- for (const key of keys) {
385
- if (current[key] === void 0)
386
- throw new Error(`"${rawArguments}" is not found in your theme`);
387
- else
388
- current = current[key];
389
- }
390
- return current;
391
- }
392
-
393
- const DEFAULT_APPLY_VARIABLES = ["--at-apply"];
394
- function checkForApply(content, _applyVariables) {
395
- if (_applyVariables === false)
396
- return { hasApply: false, applyVariables: [] };
397
- const applyVariables = core.toArray(_applyVariables || DEFAULT_APPLY_VARIABLES);
398
- return {
399
- hasApply: content.includes("@apply") || applyVariables.some((v) => content.includes(v)),
400
- applyVariables
401
- };
402
- }
403
- async function transformStyle({
404
- content,
405
- uno,
406
- prepend,
407
- filename,
408
- applyVariables,
409
- hasThemeFn
410
- }) {
411
- const s = new MagicString__default(content);
412
- if (applyVariables?.length)
413
- await transformApply({ s, uno, applyVariables });
414
- if (hasThemeFn)
415
- transformTheme(s, uno.config.theme);
416
- if (!s.hasChanged())
417
- return;
418
- if (prepend)
419
- s.prepend(prepend);
420
- return {
421
- code: s.toString(),
422
- map: s.generateMap({ hires: true, source: filename || "" })
423
- };
424
- }
425
-
426
- function UnocssSveltePreprocess(options = {}, unoContextFromVite, isViteBuild) {
427
- if (!options.classPrefix)
428
- options.classPrefix = "usp-";
429
- let uno;
430
- return {
431
- markup: async ({ content, filename }) => {
432
- if (!uno)
433
- uno = await getGenerator(options.configOrPath, unoContextFromVite);
434
- if (isViteBuild && options.combine === void 0)
435
- options.combine = isViteBuild();
436
- return await transformClasses({ content, filename: filename || "", uno, options });
437
- },
438
- style: async ({ content, attributes, filename }) => {
439
- const svelte3AddPreflights = attributes["uno:preflights"];
440
- const svelte3AddSafelist = attributes["uno:safelist"];
441
- const svelte4DeprecatedAddPreflights = attributes.uno && attributes.preflights;
442
- const svelte4DeprecatedAddSafelist = attributes.uno && attributes.safelist;
443
- let addPreflights = attributes["uno-preflights"] || svelte3AddPreflights || svelte4DeprecatedAddPreflights;
444
- let addSafelist = attributes["uno-safelist"] || svelte3AddSafelist || svelte4DeprecatedAddSafelist;
445
- if (unoContextFromVite && (addPreflights || addSafelist)) {
446
- addPreflights = false;
447
- addSafelist = false;
448
- core.warnOnce("Notice for those transitioning to @unocss/svelte-scoped/vite: uno-preflights and uno-safelist are only for use in component libraries. Please see the documentation for how to add preflights and safelist into your head tag. If you are consuming a component library built by @unocss/svelte-scoped/preprocess, you can ignore this upgrade notice.");
449
- }
450
- const { hasApply, applyVariables } = checkForApply(content, options.applyVariables);
451
- const hasThemeFn = !!content.match(themeRE);
452
- const changeNeeded = addPreflights || addSafelist || hasApply || hasThemeFn;
453
- if (!changeNeeded)
454
- return;
455
- if (!uno)
456
- uno = await getGenerator(options.configOrPath);
457
- let preflightsSafelistCss = "";
458
- if (addPreflights || addSafelist) {
459
- const { css } = await uno.generate([], { preflights: !!addPreflights, safelist: !!addSafelist, minify: true });
460
- preflightsSafelistCss = wrapSelectorsWithGlobal(css);
461
- }
462
- if (hasApply || hasThemeFn) {
463
- return await transformStyle({
464
- content,
465
- uno,
466
- filename,
467
- prepend: preflightsSafelistCss,
468
- applyVariables,
469
- hasThemeFn
470
- });
471
- }
472
- if (preflightsSafelistCss)
473
- return { code: preflightsSafelistCss + content };
474
- }
475
- };
476
- }
477
- async function getGenerator(configOrPath, unoContextFromVite) {
478
- if (unoContextFromVite) {
479
- await unoContextFromVite.ready;
480
- return unoContextFromVite.uno;
481
- }
482
- const defaults = {
483
- presets: [
484
- presetUno__default()
485
- ]
486
- };
487
- const { config: config$1 } = await config.loadConfig(process__default.cwd(), configOrPath);
488
- return core.createGenerator(config$1, defaults);
489
- }
490
-
491
- module.exports = UnocssSveltePreprocess;
13
+ module.exports = index.UnocssSveltePreprocess;
@@ -1,6 +1,6 @@
1
1
  import { PreprocessorGroup } from 'svelte/types/compiler/preprocess';
2
- import { U as UnocssSveltePreprocessOptions, S as SvelteScopedContext } from './shared/svelte-scoped.Km2ZHs7-.cjs';
3
- export { a as TransformApplyOptions, T as TransformClassesOptions } from './shared/svelte-scoped.Km2ZHs7-.cjs';
2
+ import { U as UnocssSveltePreprocessOptions, S as SvelteScopedContext } from './shared/svelte-scoped.cOm3woA9.cjs';
3
+ export { a as TransformApplyOptions, T as TransformClassesOptions } from './shared/svelte-scoped.cOm3woA9.cjs';
4
4
  import '@unocss/core';
5
5
  import '@unocss/config';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { PreprocessorGroup } from 'svelte/types/compiler/preprocess';
2
- import { U as UnocssSveltePreprocessOptions, S as SvelteScopedContext } from './shared/svelte-scoped.Km2ZHs7-.mjs';
3
- export { a as TransformApplyOptions, T as TransformClassesOptions } from './shared/svelte-scoped.Km2ZHs7-.mjs';
2
+ import { U as UnocssSveltePreprocessOptions, S as SvelteScopedContext } from './shared/svelte-scoped.cOm3woA9.mjs';
3
+ export { a as TransformApplyOptions, T as TransformClassesOptions } from './shared/svelte-scoped.cOm3woA9.mjs';
4
4
  import '@unocss/core';
5
5
  import '@unocss/config';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { PreprocessorGroup } from 'svelte/types/compiler/preprocess';
2
- import { U as UnocssSveltePreprocessOptions, S as SvelteScopedContext } from './shared/svelte-scoped.Km2ZHs7-.js';
3
- export { a as TransformApplyOptions, T as TransformClassesOptions } from './shared/svelte-scoped.Km2ZHs7-.js';
2
+ import { U as UnocssSveltePreprocessOptions, S as SvelteScopedContext } from './shared/svelte-scoped.cOm3woA9.js';
3
+ export { a as TransformApplyOptions, T as TransformClassesOptions } from './shared/svelte-scoped.cOm3woA9.js';
4
4
  import '@unocss/core';
5
5
  import '@unocss/config';
6
6