@astrojs/lit
Advanced tools
Comparing version 0.1.1 to 0.1.2
# @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 @@ } |
{ | ||
"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'); | ||
} | ||
} | ||
}, | ||
}, | ||
}; | ||
} |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
22832
295