mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #13730 from meteor/swc-resolve-swc-baseUrl
SWC resolves custom base url properly
This commit is contained in:
@@ -153,6 +153,11 @@ BCp.initializeMeteorAppSwcrc = function () {
|
||||
lastModifiedSwcConfigTime = currentLastModifiedConfigTime;
|
||||
lastModifiedSwcConfig = getMeteorAppSwcrc();
|
||||
|
||||
// Resolve custom baseUrl to an absolute path pointing to the project root
|
||||
if (lastModifiedSwcConfig.jsc && lastModifiedSwcConfig.jsc.baseUrl) {
|
||||
lastModifiedSwcConfig.jsc.baseUrl = path.resolve(process.cwd(), lastModifiedSwcConfig.jsc.baseUrl);
|
||||
}
|
||||
|
||||
if (lastModifiedMeteorConfig?.modern?.transpiler?.verbose) {
|
||||
logConfigBlock('SWC Config', lastModifiedSwcConfig);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user