diff options
author | 2021-12-30 00:26:01 +0100 | |
---|---|---|
committer | 2021-12-30 02:24:28 +0100 | |
commit | 61fd13c55f5e69a9d8b32dd0d74b08870783bcce (patch) | |
tree | 4f3f97b1629f3c262bea076b596bc7245ccbc0bd /packages/renderer/src/devTools.ts | |
parent | Revert "refactor: Switch back to consola for prettyness" (diff) | |
download | sophie-61fd13c55f5e69a9d8b32dd0d74b08870783bcce.tar.gz sophie-61fd13c55f5e69a9d8b32dd0d74b08870783bcce.tar.zst sophie-61fd13c55f5e69a9d8b32dd0d74b08870783bcce.zip |
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).
Diffstat (limited to 'packages/renderer/src/devTools.ts')
-rw-r--r-- | packages/renderer/src/devTools.ts | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/packages/renderer/src/devTools.ts b/packages/renderer/src/devTools.ts index 7c44559..3ec66aa 100644 --- a/packages/renderer/src/devTools.ts +++ b/packages/renderer/src/devTools.ts | |||
@@ -61,12 +61,9 @@ export function exposeToReduxDevtools(model: IAnyStateTreeNode): void { | |||
61 | * `build/watch.js` sends a reload event on bundle write. | 61 | * `build/watch.js` sends a reload event on bundle write. |
62 | */ | 62 | */ |
63 | export function hotReloadServices(): void { | 63 | export function hotReloadServices(): void { |
64 | import.meta.hot?.on( | 64 | import.meta.hot?.on('sophie:reload-services', () => { |
65 | 'sophie:reload-services', | 65 | window.sophieRenderer.dispatchAction({ |
66 | () => { | 66 | action: 'reload-all-services', |
67 | window.sophieRenderer.dispatchAction({ | 67 | }); |
68 | action: 'reload-all-services', | 68 | }); |
69 | }); | ||
70 | }, | ||
71 | ); | ||
72 | } | 69 | } |