1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-07 11:25:31 +02:00

Update build/ts/transform-ts.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: mr. m  <91018726+mauro-balades@users.noreply.github.com>
This commit is contained in:
mr. m 2025-04-22 14:11:39 +02:00 committed by GitHub
parent 3933f77968
commit 3fbe8c0b6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,9 @@
const fs = require('fs');
const MJS_FILES = ['src/zen/split-view/ZenViewSplitter.ts'];
for (const file of MJS_FILES) {
require('@babel/core').transformSync('code', {
const code = fs.readFileSync(file, 'utf8');
require('@babel/core').transformSync(code, {
presets: ['@babel/preset-typescript'],
filename: file,
});