mirror of
https://github.com/meteor/meteor.git
synced 2026-01-10 08:08:24 -05:00
fix syntax
This commit is contained in:
@@ -45,7 +45,7 @@ function compileWithSwc(source, swcOptions, { inputFilePath, features, arch }) {
|
||||
const isLegacyWebArch = arch.includes('legacy');
|
||||
const baseSwcConfig = {
|
||||
jsc: {
|
||||
...!isLegacyWebArch && { target: 'es2015' },
|
||||
...(!isLegacyWebArch && { target: 'es2015' }),
|
||||
parser: {
|
||||
syntax: isTypescriptSyntax ? 'typescript' : 'ecmascript',
|
||||
jsx: hasJSXSupport,
|
||||
@@ -55,9 +55,9 @@ function compileWithSwc(source, swcOptions, { inputFilePath, features, arch }) {
|
||||
module: { type: 'es6' },
|
||||
minify: false,
|
||||
sourceMaps: true,
|
||||
...isLegacyWebArch && {
|
||||
...(isLegacyWebArch && {
|
||||
env: { targets: lastModifiedSwcLegacyConfig || {} },
|
||||
},
|
||||
}),
|
||||
};
|
||||
const nextSwcConfig =
|
||||
Object.keys(swcOptions)?.length > 0
|
||||
|
||||
Reference in New Issue
Block a user