File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 "private" : true ,
44 "type" : " module" ,
55 "scripts" : {
6- "build:react" : " vite build --config ./react/vite.config.ts" ,
7- "build:solid" : " vite build --config ./solid/vite.config.ts" ,
8- "build:vue" : " vite build --config ./vue/vite.config.ts" ,
6+ "build:react" : " NODE_ENV=production vite build --config ./react/vite.config.ts" ,
7+ "build:solid" : " NODE_ENV=production vite build --config ./solid/vite.config.ts" ,
8+ "build:vue" : " NODE_ENV=production vite build --config ./vue/vite.config.ts" ,
99 "test:flame:react" : " NODE_ENV=production flame run --md-format=detailed --delay=none --node-options=\" --stack-size=65500\" ./react/speed.flame.ts" ,
1010 "test:flame:solid" : " NODE_ENV=production flame run --md-format=detailed --delay=none --node-options=\" --stack-size=65500\" ./solid/speed.flame.ts" ,
1111 "test:flame:vue" : " NODE_ENV=production flame run --md-format=detailed --delay=none --node-options=\" --stack-size=65500\" ./vue/speed.flame.ts" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import type * as App from './app'
33import { getRequiredLink , waitForRequiredLink } from '../setup-helpers'
44
55const appModulePath = './dist/app.js'
6- const { mountTestApp } = ( await import ( appModulePath ) ) as typeof App
6+ const { mountTestApp } = ( await import (
7+ /* @vite -ignore */ appModulePath
8+ ) ) as typeof App
79
810export function setup ( ) {
911 if ( process . env . NODE_ENV !== 'production' ) {
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ import react from '@vitejs/plugin-react'
33import codspeedPlugin from '@codspeed/vitest-plugin'
44
55export default defineConfig ( {
6+ define : {
7+ 'process.env.NODE_ENV' : JSON . stringify ( 'production' ) ,
8+ } ,
69 plugins : [
710 ! ! ( process . env . VITEST && process . env . WITH_INSTRUMENTATION ) &&
811 codspeedPlugin ( ) ,
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import type * as App from './app'
33import { getRequiredLink , waitForRequiredLink } from '../setup-helpers'
44
55const appModulePath = './dist/app.js'
6- const { mountTestApp } = ( await import ( appModulePath ) ) as typeof App
6+ const { mountTestApp } = ( await import (
7+ /* @vite -ignore */ appModulePath
8+ ) ) as typeof App
79
810export function setup ( ) {
911 if ( process . env . NODE_ENV !== 'production' ) {
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ import solid from 'vite-plugin-solid'
33import codspeedPlugin from '@codspeed/vitest-plugin'
44
55export default defineConfig ( {
6+ define : {
7+ 'process.env.NODE_ENV' : JSON . stringify ( 'production' ) ,
8+ } ,
69 plugins : [
710 ! ! ( process . env . VITEST && process . env . WITH_INSTRUMENTATION ) &&
811 codspeedPlugin ( ) ,
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import type * as App from './app'
33import { getRequiredLink , waitForRequiredLink } from '../setup-helpers'
44
55const appModulePath = './dist/app.js'
6- const { mountTestApp } = ( await import ( appModulePath ) ) as typeof App
6+ const { mountTestApp } = ( await import (
7+ /* @vite -ignore */ appModulePath
8+ ) ) as typeof App
79
810export function setup ( ) {
911 if ( process . env . NODE_ENV !== 'production' ) {
Original file line number Diff line number Diff line change 33 "private" : true ,
44 "type" : " module" ,
55 "scripts" : {
6- "build:react" : " vite build --config ./react/vite.config.ts" ,
7- "build:solid" : " vite build --config ./solid/vite.config.ts" ,
8- "build:vue" : " vite build --config ./vue/vite.config.ts" ,
6+ "build:react" : " NODE_ENV=production vite build --config ./react/vite.config.ts" ,
7+ "build:solid" : " NODE_ENV=production vite build --config ./solid/vite.config.ts" ,
8+ "build:vue" : " NODE_ENV=production vite build --config ./vue/vite.config.ts" ,
99 "test:perf" : " NODE_ENV=production vitest bench" ,
1010 "test:perf:react" : " NODE_ENV=production vitest bench --config ./react/vite.config.ts ./react/speed.bench.ts" ,
1111 "test:perf:solid" : " NODE_ENV=production vitest bench --config ./solid/vite.config.ts ./solid/speed.bench.ts" ,
You can’t perform that action at this time.
0 commit comments