Skip to content

Commit

Permalink
🐛 Fix improper formatting of sucrase-related code in the exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Oct 3, 2022
1 parent c07bcf1 commit daed484
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/node_requires/exporter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,10 @@ const exportCtProject = async (
}));

/* TypeScript */
buffer = require("sucrase").transform(buffer, {transforms: ["typescript" ]}).code;

buffer = require('sucrase').transform(buffer, {
transforms: ['typescript']
}).code;

/* HTML & CSS */
const {substituteHtmlVars} = require('./html');
const html = substituteHtmlVars(await sources['index.html'], project, injections);
Expand Down

0 comments on commit daed484

Please sign in to comment.