diff options
author | 2021-12-31 14:22:19 +0100 | |
---|---|---|
committer | 2021-12-31 14:22:19 +0100 | |
commit | 89bf55248d368af531691939c768d7bdb09d8834 (patch) | |
tree | 312c8434a888b844fc77f94a648fc47a51a88bd7 /packages/service-shared | |
parent | build: Revert nodenext (diff) | |
download | sophie-89bf55248d368af531691939c768d7bdb09d8834.tar.gz sophie-89bf55248d368af531691939c768d7bdb09d8834.tar.zst sophie-89bf55248d368af531691939c768d7bdb09d8834.zip |
build: Shared packages target both chrome and node
Diffstat (limited to 'packages/service-shared')
-rw-r--r-- | packages/service-shared/esbuild.config.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/service-shared/esbuild.config.js b/packages/service-shared/esbuild.config.js index 071ca7d..08941a4 100644 --- a/packages/service-shared/esbuild.config.js +++ b/packages/service-shared/esbuild.config.js | |||
@@ -1,4 +1,4 @@ | |||
1 | import { chrome } from '../../config/buildConstants.js'; | 1 | import { chrome, node } from '../../config/buildConstants.js'; |
2 | import { getConfig } from '../../config/esbuildConfig.js'; | 2 | import { getConfig } from '../../config/esbuildConfig.js'; |
3 | import { fileURLToDirname } from '../../config/utils.js'; | 3 | import { fileURLToDirname } from '../../config/utils.js'; |
4 | 4 | ||
@@ -13,7 +13,7 @@ export default getConfig({ | |||
13 | // no need to have an additional one here. | 13 | // no need to have an additional one here. |
14 | banner: {}, | 14 | banner: {}, |
15 | platform: 'node', | 15 | platform: 'node', |
16 | target: chrome, | 16 | target: [chrome, node], |
17 | external: [ | 17 | external: [ |
18 | 'zod', | 18 | 'zod', |
19 | ], | 19 | ], |