@unocss/vite 0.12.2 → 0.12.7

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/dist/index.js CHANGED
@@ -517,10 +517,9 @@ function defineConfig(config) {
517
517
  return config;
518
518
  }
519
519
  function UnocssPlugin(configOrPath, defaults = {}) {
520
- var _a;
521
520
  const ctx = createContext(configOrPath, defaults);
522
521
  const { config } = ctx;
523
- const mode = (_a = config.mode) != null ? _a : "global";
522
+ const mode = config.mode ?? "global";
524
523
  const plugins = [
525
524
  ConfigHMRPlugin(ctx)
526
525
  ];
package/dist/index.mjs CHANGED
@@ -483,10 +483,9 @@ function defineConfig(config) {
483
483
  return config;
484
484
  }
485
485
  function UnocssPlugin(configOrPath, defaults = {}) {
486
- var _a;
487
486
  const ctx = createContext(configOrPath, defaults);
488
487
  const { config } = ctx;
489
- const mode = (_a = config.mode) != null ? _a : "global";
488
+ const mode = config.mode ?? "global";
490
489
  const plugins = [
491
490
  ConfigHMRPlugin(ctx)
492
491
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
- "version": "0.12.2",
3
+ "version": "0.12.7",
4
4
  "description": "The Vite plugin for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -23,7 +23,8 @@
23
23
  "exports": {
24
24
  ".": {
25
25
  "require": "./dist/index.js",
26
- "import": "./dist/index.mjs"
26
+ "import": "./dist/index.mjs",
27
+ "types": "./dist/index.d.ts"
27
28
  }
28
29
  },
29
30
  "main": "dist/index.js",
@@ -34,13 +35,13 @@
34
35
  ],
35
36
  "dependencies": {
36
37
  "@rollup/pluginutils": "^4.1.1",
37
- "@unocss/config": "0.12.2",
38
- "@unocss/core": "0.12.2",
39
- "@unocss/scope": "0.12.2",
40
- "@unocss/inspector": "0.12.2"
38
+ "@unocss/config": "0.12.7",
39
+ "@unocss/core": "0.12.7",
40
+ "@unocss/inspector": "0.12.7",
41
+ "@unocss/scope": "0.12.7"
41
42
  },
42
43
  "devDependencies": {
43
- "vite": "^2.6.13"
44
+ "vite": "^2.6.14"
44
45
  },
45
46
  "scripts": {
46
47
  "build": "tsup",