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

create-solid

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-solid - npm Package Compare versions

Comparing version 0.1.0-alpha.4 to 0.1.0-alpha.5

templates/app/jsconfig.json

4

package.json
{
"name": "create-solid",
"version": "0.1.0-alpha.4",
"version": "0.1.0-alpha.5",
"description": "Create Solid apps with low configuration",

@@ -21,3 +21,3 @@ "author": "Ryan Carniato",

],
"gitHead": "69131fa03372e0448077fa333eedf464e1045fac"
"gitHead": "e25acd78511263c229c931fb850ecbe1e23efec9"
}

@@ -10,4 +10,7 @@ {

"jsx": "preserve",
"types": ["vite/client"]
"types": ["vite/client"],
"paths": {
"~/*": ["./src/*"]
}
}
}
import { defineConfig } from "vite";
import solid from "vite-plugin-solid";
import manifest from "rollup-route-manifest";
import path from "path";
import solid from "solid-start";
export default defineConfig({
resolve: {
alias: [{
find: "~",
replacement: path.join(process.cwd(), "src")
}, {
find: "@solid-start",
replacement: path.join(process.cwd(), "node_modules", "solid-start", "runtime")
}]
},
ssr: {
noExternal: ["solid-app-router"]
},
plugins: [
solid({ ssr: true }),
{
name: "html-async",
enforce: "post",
transformIndexHtml(html) {
return html.replace('type="module"', 'type="module" async');
}
},
manifest({
inline: false,
merge: false,
publicPath: "/",
routes: (file) => {
file = file.replace(path.join(__dirname, "src"), "").replace(/\.[tj]sx?$/, "");
if (!file.includes("/pages/")) return "*"; // commons
return "/" + file.replace("/pages/", "").toLowerCase();
}
})
],

@@ -39,0 +8,0 @@ build: {

import { defineConfig } from "vite";
import solid from "vite-plugin-solid";
import manifest from "rollup-route-manifest";
import path from "path";
import solid from "solid-start";
export default defineConfig({
resolve: {
alias: [{
find: "~",
replacement: path.join(process.cwd(), "src")
}, {
find: "@solid-start",
replacement: path.join(process.cwd(), "node_modules", "solid-start", "runtime")
}]
},
ssr: {
noExternal: ["solid-app-router"]
},
plugins: [
solid({ ssr: true }),
{
name: "html-async",
enforce: "post",
transformIndexHtml(html) {
return html.replace('type="module"', 'type="module" async');
}
},
manifest({
inline: false,
merge: false,
publicPath: "/",
routes: (file) => {
file = file.replace(path.join(__dirname, "src"), "").replace(/\.[tj]sx?$/, "");
if (!file.includes("/pages/")) return "*"; // commons
return "/" + file.replace("/pages/", "").toLowerCase();
}
})
],

@@ -39,0 +8,0 @@ build: {

Sorry, the diff of this file is not supported yet

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