@unocss/svelte-scoped 65.4.0 → 65.4.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.
@@ -1,4 +1,4 @@
1
- export { U as default } from './shared/svelte-scoped.Mm5co22N.mjs';
1
+ export { U as default } from './shared/svelte-scoped.BWbPy3K7.mjs';
2
2
  import 'node:process';
3
3
  import '@unocss/config';
4
4
  import '@unocss/core';
@@ -209,7 +209,7 @@ async function transformClasses({ content, filename, uno, options }) {
209
209
  }
210
210
  function updateTemplateCodeIfNeeded(codeUpdates, source, filename) {
211
211
  if (!codeUpdates.length)
212
- return { code: source, map: void 0 };
212
+ return { code: source, map: undefined };
213
213
  const s = new MagicString(source);
214
214
  for (const { start, end, content } of codeUpdates)
215
215
  s.overwrite(start, end, content);
@@ -377,7 +377,7 @@ function getThemeValue(rawArguments, theme) {
377
377
  const keys = rawArguments.split(".");
378
378
  let current = theme;
379
379
  for (const key of keys) {
380
- if (current[key] === void 0)
380
+ if (current[key] === undefined)
381
381
  throw new Error(`"${rawArguments}" is not found in your theme`);
382
382
  else
383
383
  current = current[key];
@@ -427,7 +427,7 @@ function UnocssSveltePreprocess(options = {}, unoContextFromVite, isViteBuild) {
427
427
  markup: async ({ content, filename }) => {
428
428
  if (!uno)
429
429
  uno = await getGenerator((await loadConfig(process.cwd(), options.configOrPath)).config, unoContextFromVite);
430
- if (isViteBuild && options.combine === void 0)
430
+ if (isViteBuild && options.combine === undefined)
431
431
  options.combine = isViteBuild();
432
432
  return await transformClasses({ content, filename: filename || "", uno, options });
433
433
  },
package/dist/vite.mjs CHANGED
@@ -7,7 +7,7 @@ import MagicString from 'magic-string';
7
7
  import { readFileSync, existsSync, statSync } from 'node:fs';
8
8
  import { dirname, resolve } from 'node:path';
9
9
  import { fileURLToPath } from 'node:url';
10
- import { U as UnocssSveltePreprocess } from './shared/svelte-scoped.Mm5co22N.mjs';
10
+ import { U as UnocssSveltePreprocess } from './shared/svelte-scoped.BWbPy3K7.mjs';
11
11
  import 'css-tree';
12
12
 
13
13
  function ConfigHMRPlugin({ ready }) {
@@ -101,7 +101,7 @@ function createCssTransformerPlugins(context, cssTransformers) {
101
101
  const enforces = ["default", "pre", "post"];
102
102
  return enforces.map((enforce) => ({
103
103
  name: `unocss:svelte-scoped-transformers:${enforce}`,
104
- enforce: enforce === "default" ? void 0 : enforce,
104
+ enforce: enforce === "default" ? undefined : enforce,
105
105
  async transform(code, id) {
106
106
  if (!cssIdRE.test(id) || svelteIdRE.test(id))
107
107
  return;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@unocss/svelte-scoped",
3
3
  "type": "module",
4
- "version": "65.4.0",
4
+ "version": "65.4.2",
5
5
  "description": "Use UnoCSS in a modular fashion with styles being stored only in the Svelte component they are used in: Vite plugin for apps, Svelte preprocessor for component libraries",
6
6
  "author": "Jacob Bowdoin",
7
7
  "license": "MIT",
8
- "homepage": "https://github.com/unocss/unocss/tree/main/packages/svelte-scoped#readme",
8
+ "homepage": "https://unocss.dev",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/unocss/unocss.git",
12
- "directory": "packages/svelte-scoped"
11
+ "url": "https://github.com/unocss/unocss",
12
+ "directory": "packages-integrations/svelte-scoped"
13
13
  },
14
14
  "bugs": {
15
15
  "url": "https://github.com/unocss/unocss/issues"
@@ -52,9 +52,9 @@
52
52
  "dependencies": {
53
53
  "css-tree": "^3.1.0",
54
54
  "magic-string": "^0.30.17",
55
- "@unocss/config": "65.4.0",
56
- "@unocss/preset-uno": "65.4.0",
57
- "@unocss/reset": "65.4.0"
55
+ "@unocss/config": "65.4.2",
56
+ "@unocss/preset-uno": "65.4.2",
57
+ "@unocss/reset": "65.4.2"
58
58
  },
59
59
  "devDependencies": {
60
60
  "prettier-plugin-svelte": "^2.10.1",