File tree 6 files changed +281
-1
lines changed
6 files changed +281
-1
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 " />
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6
+ < title > Example (Solid)</ title >
7
+ </ head >
8
+ < body >
9
+ < div id ="solid-app "> </ div >
10
+ < script type ="module " src ="/src/main.ts "> </ script >
11
+ </ body >
12
+ </ html >
Original file line number Diff line number Diff line change
1
+ {
2
+ "type" : " module" ,
3
+ "private" : true ,
4
+ "scripts" : {
5
+ "dev" : " vite" ,
6
+ "build" : " vite build" ,
7
+ "preview" : " vite preview"
8
+ },
9
+ "dependencies" : {
10
+ "solid-js" : " ^1.8.7"
11
+ },
12
+ "devDependencies" : {
13
+ "vite" : " ^5.0.2" ,
14
+ "vite-plugin-node-polyfills" : " workspace:*" ,
15
+ "vite-plugin-solid" : " ^2.8.0"
16
+ }
17
+ }
Original file line number Diff line number Diff line change
1
+ // eslint-disable-next-line unicorn/prefer-node-protocol
2
+ import { join } from 'path/posix'
3
+
4
+ document . querySelector ( '#solid-app' ) ! . textContent = join ( 'foo' , 'bar' )
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from 'vite'
2
+ import { nodePolyfills } from 'vite-plugin-node-polyfills'
3
+ import solid from 'vite-plugin-solid'
4
+
5
+ export default defineConfig ( {
6
+ optimizeDeps : {
7
+ force : true ,
8
+ } ,
9
+ plugins : [
10
+ nodePolyfills ( {
11
+ overrides : {
12
+ 'path/posix' : 'path-browserify' ,
13
+ } ,
14
+ } ) ,
15
+ // comment/uncomment it:
16
+ solid ( ) ,
17
+ ] ,
18
+ } )
Original file line number Diff line number Diff line change 69
69
"test" : " run-s test:build" ,
70
70
"test:build" : " run-p test:build:*" ,
71
71
"test:build:react" : " pnpm -C ./examples/react run build" ,
72
+ "test:build:solid" : " pnpm -C ./examples/solid run build" ,
72
73
"test:build:vanilla" : " pnpm -C ./examples/vanilla run build" ,
73
74
"test:build:vue" : " pnpm -C ./examples/vue run build" ,
74
75
"test:dev:react" : " pnpm -C ./examples/react run dev" ,
76
+ "test:dev:solid" : " pnpm -C ./examples/solid run dev" ,
75
77
"test:dev:vanilla" : " pnpm -C ./examples/vanilla run dev" ,
76
78
"test:dev:vue" : " pnpm -C ./examples/vue run dev" ,
77
79
"typecheck" : " run-p typecheck:*" ,
You can’t perform that action at this time.
0 commit comments