Skip to content

Commit 37c1af7

Browse files
committed
fix: ensure modern syntax is used for loading the config file
1 parent 996a47c commit 37c1af7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/load-twind-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const loadConfig = (configFile: string, cwd = process.cwd()): Configurati
3737
entryPoints: [configFile],
3838
format: 'cjs',
3939
platform: 'node',
40-
target: `node${process.versions.node}`,
40+
target: '2018', // `node${process.versions.node}`,
4141
external: Module.builtinModules,
4242
// Follow WMR rules
4343
mainFields: ['esmodules', 'modern', 'module', 'jsnext:main', 'main'],

0 commit comments

Comments
 (0)