Socket
Socket
Sign inDemoInstall

@unocss/vite

Package Overview
Dependencies
Maintainers
1
Versions
366
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unocss/vite - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

10

dist/index.js

@@ -1481,3 +1481,4 @@ var __create = Object.create;

},
async load(id) {
async load(id, context) {
const isSSR = context === true || (context == null ? void 0 : context.ssr) === true;
if (id !== VIRTUAL_ENTRY)

@@ -1487,3 +1488,7 @@ return null;

const { css } = await uno.generate(tokens);
return `
if (isSSR) {
return `export default ${JSON.stringify(`/* unocss */
${css}`)}`;
} else {
return `
import { updateStyle, removeStyle } from "/@vite/client";

@@ -1499,2 +1504,3 @@ const id = "${VIRTUAL_ENTRY}"

`;
}
},

@@ -1501,0 +1507,0 @@ transformIndexHtml: {

8

package.json
{
"name": "@unocss/vite",
"version": "0.1.1",
"version": "0.1.2",
"description": "",

@@ -32,5 +32,5 @@ "keywords": [],

"@rollup/pluginutils": "^4.1.1",
"@unocss/config": "0.1.1",
"@unocss/core": "0.1.1",
"@unocss/scope": "0.1.1",
"@unocss/config": "0.1.2",
"@unocss/core": "0.1.2",
"@unocss/scope": "0.1.2",
"nanoevents": "^6.0.2"

@@ -37,0 +37,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc