Skip to content

Commit

Permalink
esbuild dev command for web
Browse files Browse the repository at this point in the history
  • Loading branch information
kayaba committed Apr 5, 2023
1 parent f13f39b commit d717d2f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.web.js",
"scripts": {
"dev": "metacraft",
"dev:es": "ESBUILD=true metacraft",
"build": "metacraft bundle && node scripts/bundler",
"build:es": "ESBUILD=true && yarn build",
"lint": "eslint . --max-warnings=0 --ext .ts,.tsx"
Expand Down
7 changes: 4 additions & 3 deletions apps/web/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"extends": "@walless/tsconfig/application.json",
"include": [
"index*.js",
"src"
"index.web.js",
"src",
"scripts"
],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["DOM", "ES2015"],
"types": ["chrome"],
"typeRoots": ["./src/types"],
"typeRoots": ["./src/types"]
}
}
5 changes: 4 additions & 1 deletion tool/webpack/tamagui.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ const tamaguiBuild = (config, internal) => {
loader: original.loader,
options: original.options,
},
{
loader: 'tamagui-loader',
options: tamaguiOptions,
}
],
};

config.plugins.push(new webpack.EnvironmentPlugin({ JEST_WORKER_ID: null }));
config.plugins.push(new TamaguiPlugin(tamaguiOptions));

return config;
};
Expand Down

0 comments on commit d717d2f

Please sign in to comment.