Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@astrojs/lit

Package Overview
Dependencies
Maintainers
4
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrojs/lit - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

astrojs-lit-0.1.2.tgz

6

CHANGELOG.md
# @astrojs/lit
## 0.1.2
### Patch Changes
- [#3164](https://github.com/withastro/astro/pull/3164) [`e85b16e2`](https://github.com/withastro/astro/commit/e85b16e2b3d846333f542139c82640de19bfd2f5) Thanks [@matthewp](https://github.com/matthewp)! - Fixes lit when running in SSR
## 0.1.1

@@ -4,0 +10,0 @@

@@ -37,2 +37,15 @@ import { readFileSync } from "node:fs";

});
},
"astro:build:setup": ({ vite, target }) => {
if (target === "server") {
if (!vite.ssr) {
vite.ssr = {};
}
if (!vite.ssr.noExternal) {
vite.ssr.noExternal = [];
}
if (Array.isArray(vite.ssr.noExternal)) {
vite.ssr.noExternal.push("lit");
}
}
}

@@ -39,0 +52,0 @@ }

2

package.json
{
"name": "@astrojs/lit",
"version": "0.1.1",
"version": "0.1.2",
"description": "Use Lit components within Astro",

@@ -5,0 +5,0 @@ "type": "module",

import { readFileSync } from 'node:fs';
import type { AstroIntegration } from 'astro';
import type { AstroConfig, AstroIntegration } from 'astro';

@@ -48,4 +48,17 @@ function getViteConfiguration() {

},
'astro:build:setup': ({ vite, target }) => {
if (target === 'server') {
if (!vite.ssr) {
vite.ssr = {};
}
if (!vite.ssr.noExternal) {
vite.ssr.noExternal = [];
}
if (Array.isArray(vite.ssr.noExternal)) {
vite.ssr.noExternal.push('lit');
}
}
},
},
};
}
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