File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 "name" : " local-react-mini" ,
33 "version" : " 0.1.0" ,
44 "scripts" : {
5- "start" : " wds --root-dir ./src/ --open --app-index ./src/index.html --watch "
5+ "start" : " wds"
66 },
77 "devDependencies" : {
8- "@web/dev-server" : " ^0.1.35"
8+ "@web/dev-server" : " ^0.1.35" ,
9+ "@babel/parser" : " ^7.20.3"
910 }
1011}
Original file line number Diff line number Diff line change 1+ // FIXME: Create custom plugin?
2+ // FIXME: Look at '@web/dev-server-esbuild' package
3+ // FIXME: Example: https://github.com/modernweb-dev/example-projects/blob/a5962ae84165e06b290dfbac5efb3e471a121e55/react-jsx/web-dev-server.config.mjs
4+
5+ // FIXME: Maybe I can use '@babel/parser' to parse the JSX?
6+ // FIXME: Maybe I can use esbuild if I can inject custom generation for JSX?
7+
8+ export default {
9+ rootDir : "./src/" ,
10+ open : true ,
11+ appIndex : "./src/index.html" ,
12+ watch : true ,
13+ plugins : [
14+ // FIXME: JSX plugin
15+ ] ,
16+ } ;
Original file line number Diff line number Diff line change 2323 chalk "^2.0.0"
2424 js-tokens "^4.0.0"
2525
26+ " @babel/parser@^7.20.3 " :
27+ version "7.20.3"
28+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.3.tgz#5358cf62e380cf69efcb87a7bb922ff88bfac6e2"
29+ integrity sha512-OP/s5a94frIPXwjzEcv5S/tpQfc6XhxYUnmWpgdqMWGgYCuErA3SzozaRAMQgSZWKeTJxht9aWAkUY+0UzvOFg==
30+
2631" @rollup/plugin-node-resolve@^13.0.4 " :
2732 version "13.3.0"
2833 resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz#da1c5c5ce8316cef96a2f823d111c1e4e498801c"
You can’t perform that action at this time.
0 commit comments