mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
enable experimentalDecorators for esbuild
This commit is contained in:
7 files changed
+9
-5
No files matched your search
@@ -26,6 +26,7 @@ const minor = +process.version.split('.')[1];
|
||||
function transform(filename) {
|
||||
const code = fs.readFileSync(filename, 'utf-8');
|
||||
const result = esbuild.transformSync(code, {
|
||||
tsconfigRaw: '{"compilerOptions":{"experimentalDecorators":true}}',
|
||||
sourcefile: filename,
|
||||
sourcemap: 'both',
|
||||
format: 'cjs',
|
||||
|
||||
Reference in new issue
Block a user