-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 33bc438 Author: kanno <812137533@qq.com> Date: Tue May 14 16:25:33 2024 +0800 chore: make test happy commit 9295f02 Author: kanno <812137533@qq.com> Date: Tue May 14 16:21:48 2024 +0800 feat(server): setup fullpath commit 8a2dcb6 Author: kanno <812137533@qq.com> Date: Sat May 11 10:31:38 2024 +0800 chore: bump deps commit 81b4809 Author: kanno <812137533@qq.com> Date: Thu May 9 14:03:04 2024 +0800 chore: pass ci commit c2d06aa Author: kanno <812137533@qq.com> Date: Thu May 9 14:00:32 2024 +0800 chore: update lock commit 4a161d7 Author: kanno <812137533@qq.com> Date: Thu May 9 13:59:14 2024 +0800 chore: add new workflow commit 1805e4a Author: kanno <812137533@qq.com> Date: Thu May 9 09:34:45 2024 +0800 chore: switch swc minify commit d356f60 Author: kanno <812137533@qq.com> Date: Thu May 9 00:14:41 2024 +0800 chore: update workflow commit dd4ae58 Author: kanno <812137533@qq.com> Date: Wed May 8 23:10:39 2024 +0800 style: migrate to inline commit c91ed04 Author: kanno <812137533@qq.com> Date: Sun May 5 23:33:56 2024 +0800 fix: layout
- Loading branch information
Showing
34 changed files
with
7,189 additions
and
7,552 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
.yarn/patches/@rollup-plugin-esm-shim-npm-0.1.6-d8e3018c76.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/dist/cjs/index.js b/dist/cjs/index.js | ||
index abf5597a5fa4f0c0fab637b5259f1474715bbb18..84f0b11ae8c2a45caac5e113230d68385f37835a 100644 | ||
--- a/dist/cjs/index.js | ||
+++ b/dist/cjs/index.js | ||
@@ -7,9 +7,9 @@ var MagicString = require('magic-string'); | ||
const CJSyntaxRegex = /__filename|__dirname|require\(|require\.resolve\(/; | ||
const ESMShim = ` | ||
// -- Shims -- | ||
-import cjsUrl from 'node:url'; | ||
-import cjsPath from 'node:path'; | ||
-import cjsModule from 'node:module'; | ||
+import cjsUrl from 'url'; | ||
+import cjsPath from 'path'; | ||
+import cjsModule from 'module'; | ||
const __filename = cjsUrl.fileURLToPath(import.meta.url); | ||
const __dirname = cjsPath.dirname(__filename); | ||
const require = cjsModule.createRequire(import.meta.url); | ||
diff --git a/dist/es/index.js b/dist/es/index.js | ||
index 05fa7900c116d3ca3c4fe341bb4c2d95a6075ed2..6baeb2d3766d565aee7caea7a97024737f8c97bc 100644 | ||
--- a/dist/es/index.js | ||
+++ b/dist/es/index.js | ||
@@ -3,9 +3,9 @@ import MagicString from 'magic-string'; | ||
const CJSyntaxRegex = /__filename|__dirname|require\(|require\.resolve\(/; | ||
const ESMShim = ` | ||
// -- Shims -- | ||
-import cjsUrl from 'node:url'; | ||
-import cjsPath from 'node:path'; | ||
-import cjsModule from 'node:module'; | ||
+import cjsUrl from 'url'; | ||
+import cjsPath from 'path'; | ||
+import cjsModule from 'module'; | ||
const __filename = cjsUrl.fileURLToPath(import.meta.url); | ||
const __dirname = cjsPath.dirname(__filename); | ||
const require = cjsModule.createRequire(import.meta.url); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
client-analyze: | ||
@echo "Analyzing client code..." | ||
@yarn run vite build src/client --config analyze.config.ts | ||
awk '{ print }' dist/client/stats.json > src/client/data.json | ||
|
||
build-all:cleanup build-server build-client | ||
|
||
cleanup: | ||
-rm -rf dist | ||
|
||
build-client: | ||
@echo "Building client code..." | ||
@yarn run vite build src/client | ||
|
||
build-server: | ||
@echo "Building server code..." | ||
@yarn run rollup --config rollup.config.ts --configPlugin swc3 | ||
|
||
dev-server: | ||
@echo "Starting server in development mode..." | ||
@yarn run rollup --config rollup.config.ts --configPlugin swc3 --watch | ||
|
||
dev-client: | ||
@echo "Starting client in development mode..." | ||
@yarn run vite src/client | ||
|
||
test: | ||
@echo "Running tests..." | ||
@yarn run test | ||
|
||
lint: | ||
@echo "Linting code..." | ||
@yarn run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { defineConfig, mergeConfig } from 'vite' | ||
import { analyzer } from './src/server' | ||
import conf from './src/client/vite.config' | ||
|
||
const c = conf({ command: 'build', mode: 'production' }) | ||
export default mergeConfig(c, defineConfig({ | ||
plugins: [...c.plugins!, analyzer({ analyzerMode: 'json' })] | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.