mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge branch 'modern-config' into modern-watcher-config
# Conflicts: # tools/cli/commands.js
This commit is contained in:
@@ -296,9 +296,7 @@ BCp.processOneFileForTarget = function (inputFile, source) {
|
||||
const isLegacyWebArch = arch.includes('legacy');
|
||||
|
||||
const config = lastModifiedMeteorConfig?.modern?.transpiler;
|
||||
const hasModernTranspiler =
|
||||
lastModifiedMeteorConfig?.modern?.transpiler !== false ||
|
||||
lastModifiedMeteorConfig?.modern === true;
|
||||
const hasModernTranspiler = lastModifiedMeteorConfig?.modern?.transpiler !== false;
|
||||
const shouldSkipSwc =
|
||||
!hasModernTranspiler ||
|
||||
(isAppCode && config?.excludeApp === true) ||
|
||||
|
||||
@@ -296,12 +296,12 @@ function getMeteorConfig(appDir) {
|
||||
|
||||
function isModernArchsOnlyEnabled(appDir) {
|
||||
const meteorConfig = getMeteorConfig(appDir);
|
||||
return normalizeModern(meteorConfig?.modern).webArchOnly === true;
|
||||
return normalizeModern(meteorConfig?.modern).webArchOnly !== false;
|
||||
}
|
||||
|
||||
export function isModernWatcherEnabled(appDir) {
|
||||
const meteorConfig = getMeteorConfig(appDir);
|
||||
return normalizeModern(meteorConfig?.modern).watcher === true;
|
||||
return normalizeModern(meteorConfig?.modern).watcher !== false;
|
||||
}
|
||||
|
||||
function filterWebArchs(webArchs, excludeArchsOption, appDir, options) {
|
||||
|
||||
Reference in New Issue
Block a user