mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
prefer more modern syntax on swc compilation
This commit is contained in:
@@ -164,7 +164,7 @@ BCp.processOneFileForTarget = function (inputFile, source) {
|
||||
|
||||
const transformed = SWC.transformSync(source, {
|
||||
jsc: {
|
||||
target: 'es2015',
|
||||
target: 'es2022',
|
||||
parser: {
|
||||
syntax: isTypescriptSyntax ? 'typescript' : 'ecmascript',
|
||||
jsx: hasJSXSupport,
|
||||
|
||||
Reference in New Issue
Block a user