remove enableLegacyBabel5ModuleInterop for jsx and tsx files

pull/98/head
dperolio 2 years ago
parent 772f71b58b
commit ec386fab86
No known key found for this signature in database
GPG Key ID: 4191689562D51409

@ -12,7 +12,6 @@ module.exports = class JSX extends Compiler {
const jsx = readFileSync(this.file, 'utf8');
return sucrase.transform(jsx, {
transforms: [ 'jsx', 'imports' ],
enableLegacyBabel5ModuleInterop: true,
filePath: this.file
}).code;
}

@ -12,7 +12,6 @@ module.exports = class TSX extends Compiler {
const tsx = readFileSync(this.file, 'utf8');
return sucrase.transform(tsx, {
transforms: [ 'jsx', 'imports', 'typescript' ],
enableLegacyBabel5ModuleInterop: true,
filePath: this.file
}).code;
}

@ -6,8 +6,7 @@
import { log as _log, warn as _warn, error as _error, deprecate as _deprecate } from '@vizality/util/logger';
import { initialize as initializeWebpackModules, getModule } from '@vizality/webpack';
import { Directories, Developers, Events, Protocols } from '@vizality/constants';
import { sleep } from '@vizality/util/time';
import { Directories, Events, Protocols } from '@vizality/constants';
import { resolveCompiler } from '@vizality/compilers';
import { createElement } from '@vizality/util/dom';
import { toPlural } from '@vizality/util/string';

@ -1,6 +1,6 @@
/**
* Wraps a text or element in a div, which shows a tooltip when the text is truncated
* due to not enough horizontal space. Thanks to 𝕷𝖆𝖛𝖆𝕾𝖖𝖚𝖎𝖉 🦑#9980 [227533573177999361] for this.
* due to not enough horizontal space. Thanks to LavaSquid#9980 for this.
* @component
*/

Loading…
Cancel
Save