diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-08 21:36:43 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 19:53:03 +0100 |
commit | d07e7b834831230b53860d0919a68edc2d36193d (patch) | |
tree | a1f2a021563ddff54f33341c475fc6c6eb787388 /config/jestEsbuildTransform.js | |
parent | New configurations based on review comments (WIP) (diff) | |
download | sophie-d07e7b834831230b53860d0919a68edc2d36193d.tar.gz sophie-d07e7b834831230b53860d0919a68edc2d36193d.tar.zst sophie-d07e7b834831230b53860d0919a68edc2d36193d.zip |
build: Eslint fixes for multi-module project
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'config/jestEsbuildTransform.js')
-rw-r--r-- | config/jestEsbuildTransform.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/config/jestEsbuildTransform.js b/config/jestEsbuildTransform.js deleted file mode 100644 index 4bf49e6..0000000 --- a/config/jestEsbuildTransform.js +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | import { transform } from 'esbuild'; | ||
2 | |||
3 | import { node } from './buildConstants.js'; | ||
4 | |||
5 | /** @type {import('@jest/transform').AsyncTransformer<undefined>} */ | ||
6 | const transformer = { | ||
7 | canInstrument: false, | ||
8 | async processAsync(source, filePath) { | ||
9 | const { code, map } = await transform(source, { | ||
10 | loader: filePath.endsWith('tsx') ? 'tsx' : 'ts', | ||
11 | sourcefile: filePath, | ||
12 | format: 'esm', | ||
13 | target: node, | ||
14 | sourcemap: true, | ||
15 | }); | ||
16 | return { | ||
17 | code, | ||
18 | map, | ||
19 | }; | ||
20 | }, | ||
21 | }; | ||
22 | |||
23 | export default transformer; | ||