fix(es): Fix resolving of symlinks (#5222)

This commit is contained in:
Calvin Huang 2022-07-16 20:43:02 -07:00 committed by GitHub
parent 2920c62efe
commit 27cc45d50f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -1672,7 +1672,7 @@ fn build_resolver(base_url: PathBuf, paths: CompiledPaths) -> Box<SwcImportResol
let r = {
let r = TsConfigResolver::new(
NodeModulesResolver::default(),
NodeModulesResolver::new(Default::default(), Default::default(), true),
base_url.clone(),
paths.clone(),
);

View File

@ -2,7 +2,7 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
const _interopRequireWildcard = require("../../../../../../../../../packages/swc-helpers/src/_interop_require_wildcard.mjs").default;
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
(async function() {
const { displayA } = await Promise.resolve().then(()=>/*#__PURE__*/ _interopRequireWildcard(require("../packages/a/src/index")));
console.log(displayA());

View File

@ -2,6 +2,6 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
const _interopRequireDefault = require("../../../../../../../packages/swc-helpers/src/_interop_require_default.mjs").default;
const _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
const _a = /*#__PURE__*/ _interopRequireDefault(require("./subfolder/A"));
console.log(_a.default);

View File

@ -2,6 +2,6 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
var _interopRequireDefault = require("../../../../../../../../packages/swc-helpers/src/_interop_require_default.mjs").default;
var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
var _handlebars = /*#__PURE__*/ _interopRequireDefault(require("handlebars"));
console.log(_handlebars.default);