@unocss/preset-uno
Advanced tools
Comparing version 0.4.16 to 0.5.0
@@ -5,4 +5,12 @@ import { Preset } from '@unocss/core'; | ||
declare const preset: () => Preset; | ||
interface PresetUnoOptions { | ||
/** | ||
* Enable development only rules | ||
* | ||
* @default false | ||
*/ | ||
dev?: boolean; | ||
} | ||
declare const preset: (options?: PresetUnoOptions) => Preset; | ||
export { preset as default, preset }; | ||
export { PresetUnoOptions, preset as default, preset }; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkTP75IRXUjs = require('./chunk-TP75IRXU.js'); | ||
var _chunk4MK5R7VSjs = require('./chunk-4MK5R7VS.js'); | ||
var _chunk262SCYXBjs = require('./chunk-262SCYXB.js'); | ||
@@ -14,5 +15,8 @@ | ||
// src/index.ts | ||
var preset = () => ({ | ||
var preset = (options = {}) => ({ | ||
theme: _chunk262SCYXBjs.theme, | ||
rules: _chunkTP75IRXUjs.rules, | ||
rules: [ | ||
..._chunk4MK5R7VSjs.rules, | ||
...options.dev ? _chunk4MK5R7VSjs.devRules : [] | ||
], | ||
variants: _chunkY3JRCRGSjs.variants | ||
@@ -19,0 +23,0 @@ }); |
@@ -0,1 +1,2 @@ | ||
import * as unocss from 'unocss'; | ||
import { Rule } from 'unocss'; | ||
@@ -5,2 +6,4 @@ | ||
export { rules }; | ||
declare const devRules: unocss.Rule<{}>[]; | ||
export { devRules, rules }; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkTP75IRXUjs = require('./chunk-TP75IRXU.js'); | ||
var _chunk4MK5R7VSjs = require('./chunk-4MK5R7VS.js'); | ||
require('./chunk-OFR2H3GI.js'); | ||
exports.rules = _chunkTP75IRXUjs.rules; | ||
exports.devRules = _chunk4MK5R7VSjs.devRules; exports.rules = _chunk4MK5R7VSjs.rules; |
{ | ||
"name": "@unocss/preset-uno", | ||
"version": "0.4.16", | ||
"version": "0.5.0", | ||
"description": "", | ||
@@ -44,3 +44,3 @@ "keywords": [], | ||
"dependencies": { | ||
"@unocss/core": "0.4.16" | ||
"@unocss/core": "0.5.0" | ||
}, | ||
@@ -47,0 +47,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
131629
4408
+ Added@unocss/core@0.5.0(transitive)
- Removed@unocss/core@0.4.16(transitive)
Updated@unocss/core@0.5.0