mirror of
https://github.com/swc-project/swc.git
synced 2024-12-11 07:35:15 +03:00
fix(es): Fix resolving of symlinks (#5222)
This commit is contained in:
parent
2920c62efe
commit
27cc45d50f
@ -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(),
|
||||
);
|
||||
|
@ -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());
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user