From 61fd13c55f5e69a9d8b32dd0d74b08870783bcce Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 30 Dec 2021 00:26:01 +0100 Subject: build: Switch to esbuild We will build all packages except the frontend (where vite remains in use) with esbuild. For some reason, the @yarnpkg/esbuild-plugin-pnp doesn't allow esbuild to load esm modules and we fall back to commonjs for dependencies. Hence we had to switch back to node_modules (but still rely on yarn hardlinking for a more efficient install). --- packages/main/package.json | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'packages/main/package.json') diff --git a/packages/main/package.json b/packages/main/package.json index c4670a8..76eff8e 100644 --- a/packages/main/package.json +++ b/packages/main/package.json @@ -6,7 +6,6 @@ "types": "dist-types/index.d.ts", "scripts": { "clean": "rimraf dist", - "build": "vite build", "typecheck": "tsc" }, "dependencies": { @@ -14,7 +13,7 @@ "@sophie/shared": "workspace:*", "electron": "16.0.5", "json5": "^2.2.0", - "lodash": "^4.17.21", + "lodash-es": "^4.17.21", "loglevel": "^1.8.0", "loglevel-plugin-prefix": "^0.8.4", "mobx": "^6.3.10", @@ -22,14 +21,13 @@ "ms": "^2.1.3" }, "devDependencies": { - "@types/debug": "^4", "@types/electron-devtools-installer": "^2.2.1", - "@types/lodash": "^4.14.178", + "@types/lodash-es": "^4.17.5", "@types/ms": "^0.7.31", "@types/node": "^17.0.5", "electron-devtools-installer": "^3.2.0", + "esbuild": "^0.14.9", "rimraf": "^3.0.2", - "typescript": "^4.5.4", - "vite": "^2.7.7" + "typescript": "^4.5.4" } } -- cgit v1.2.3-54-g00ecf