New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@astrojs/solid-js

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrojs/solid-js - npm Package Compare versions

Comparing version 4.4.4 to 5.0.0-beta.1

31

dist/index.js

@@ -15,33 +15,8 @@ import solid, {} from "vite-plugin-solid";

}
async function getViteConfiguration(isDev, { include, exclude }, devtoolsPlugin) {
const nestedDeps = ["solid-js", "solid-js/web", "solid-js/store", "solid-js/html", "solid-js/h"];
function getViteConfiguration({ include, exclude }, devtoolsPlugin) {
const config = {
resolve: {
conditions: ["solid", ...isDev ? ["development"] : []],
dedupe: nestedDeps,
alias: [{ find: /^solid-refresh$/, replacement: "/@solid-refresh" }]
},
optimizeDeps: {
include: [...nestedDeps],
exclude: ["@astrojs/solid-js/server.js"]
},
plugins: [
solid({ include, exclude, dev: isDev, ssr: true }),
{
name: "@astrojs/solid:config-overrides",
enforce: "post",
config() {
return {
esbuild: {
// To support using alongside other JSX frameworks, still let
// esbuild compile stuff. Solid goes first anyways.
include: /\.(m?ts|[jt]sx)$/
}
};
}
}
],
ssr: {
external: ["babel-preset-solid"]
}
plugins: [solid({ include, exclude, ssr: true })]
};

@@ -83,3 +58,3 @@ if (devtoolsPlugin) {

updateConfig({
vite: await getViteConfiguration(command === "dev", options, devtoolsPlugin)
vite: getViteConfiguration(options, devtoolsPlugin)
});

@@ -86,0 +61,0 @@ if (devtoolsPlugin) {

10

package.json
{
"name": "@astrojs/solid-js",
"version": "4.4.4",
"version": "5.0.0-beta.1",
"description": "Use Solid components within Astro",

@@ -33,8 +33,8 @@ "type": "module",

"dependencies": {
"vite-plugin-solid": "^2.10.2",
"vite": "^5.4.10"
"vite-plugin-solid": "^2.11.0",
"vite": "^6.0.1"
},
"devDependencies": {
"solid-js": "^1.9.3",
"astro": "4.16.14",
"astro": "5.0.0-beta.12",
"astro-scripts": "0.0.14"

@@ -52,3 +52,3 @@ },

"engines": {
"node": "^18.17.1 || ^20.3.0 || >=21.0.0"
"node": "^18.17.1 || ^20.3.0 || >=22.0.0"
},

@@ -55,0 +55,0 @@ "publishConfig": {

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