Skip to content

Commit b809be9

Browse files
committed
build: cleanup build target settings
- node14 supports es2020 Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 53430fe commit b809be9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

build.config.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import { defineBuildConfig, type Config } from '@flex-development/mkbuild'
77
import pkg from './package.json' assert { type: 'json' }
8-
import tsconfig from './tsconfig.build.json' assert { type: 'json' }
98

109
/**
1110
* Build configuration options.
@@ -14,10 +13,7 @@ import tsconfig from './tsconfig.build.json' assert { type: 'json' }
1413
*/
1514
const config: Config = defineBuildConfig({
1615
platform: 'node',
17-
target: [
18-
tsconfig.compilerOptions.target,
19-
'node' + pkg.engines.node.replace(/^\D+/, '')
20-
],
16+
target: 'node' + pkg.engines.node.replace(/^\D+/, ''),
2117
treeShaking: true,
2218
tsconfig: 'tsconfig.build.json'
2319
})

0 commit comments

Comments
 (0)