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

create-qwik

Package Overview
Dependencies
Maintainers
4
Versions
303
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-qwik - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1-dev20240307073646

2

package.json
{
"name": "create-qwik",
"description": "Interactive CLI for create Qwik projects and adding features.",
"version": "1.5.0",
"version": "1.5.1-dev20240307073646",
"author": "Builder.io Team",

@@ -6,0 +6,0 @@ "bin": "./create-qwik.cjs",

@@ -19,4 +19,4 @@ {

"devDependencies": {
"@builder.io/qwik": "^1.5.0",
"@builder.io/qwik-city": "^1.5.0",
"@builder.io/qwik": "1.5.1-dev20240307073646",
"@builder.io/qwik-city": "1.5.1-dev20240307073646",
"@types/eslint": "^8.56.5",

@@ -27,3 +27,3 @@ "@types/node": "^20.11.24",

"eslint": "^8.57.0",
"eslint-plugin-qwik": "^1.5.0",
"eslint-plugin-qwik": "1.5.1-dev20240307073646",
"prettier": "^3.2.5",

@@ -30,0 +30,0 @@ "typescript": "5.3.3",

@@ -0,1 +1,5 @@

/**
* This is the base config for vite.
* When building, the adapter config is used which loads this file and extends it.
*/
import { defineConfig, type UserConfig } from "vite";

@@ -5,8 +9,39 @@ import { qwikVite } from "@builder.io/qwik/optimizer";

import tsconfigPaths from "vite-tsconfig-paths";
import pkg from "./package.json";
export default defineConfig((): UserConfig => {
const { dependencies = {}, devDependencies = {} } = pkg as any as {
dependencies: Record<string, string>;
devDependencies: Record<string, string>;
[key: string]: unknown;
};
/**
* Note that Vite normally starts from `index.html` but the qwikCity plugin makes start at `src/entry.ssr.tsx` instead.
*/
export default defineConfig(({ command, mode }): UserConfig => {
return {
plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
// This tells Vite which dependencies to pre-build in dev mode.
optimizeDeps: {
// Put problematic deps that break bundling here, mostly those with binaries.
// For example ['better-sqlite3'] if you use that in server functions.
exclude: [],
},
// This tells Vite how to bundle the server code.
ssr:
command === "build" && mode === "production"
? {
// All dev dependencies should be bundled in the server build
noExternal: Object.keys(devDependencies),
// Anything marked as a dependency will not be bundled
// These should only be production binary deps (including deps of deps), CLI deps, and their module graph
// If a dep-of-dep needs to be external, add it here
// For example, if something uses `bcrypt` but you don't have it as a dep, you can write
// external: [...Object.keys(dependencies), 'bcrypt']
external: Object.keys(dependencies),
}
: undefined,
server: {
headers: {
// Don't cache the server response in dev mode
"Cache-Control": "public, max-age=0",

@@ -17,2 +52,3 @@ },

headers: {
// Do cache the server response in preview (non-adapter production build)
"Cache-Control": "public, max-age=600",

@@ -19,0 +55,0 @@ },

@@ -36,3 +36,3 @@ {

"devDependencies": {
"@builder.io/qwik": "1.5.0",
"@builder.io/qwik": "1.5.1",
"@types/eslint": "^8.56.5",

@@ -39,0 +39,0 @@ "@types/node": "^20.11.24",

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