rolldown-plugin-dts 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -870,6 +870,10 @@ function createDtsResolvePlugin({ tsconfig, resolve }) {
|
|
|
870
870
|
}
|
|
871
871
|
let resolution = await this.resolve(id, importer, options);
|
|
872
872
|
if (!resolution && !id.endsWith(".d")) resolution = await this.resolve(`${id}.d`, importer, options);
|
|
873
|
+
if (resolution?.id.startsWith("\0")) return {
|
|
874
|
+
...resolution,
|
|
875
|
+
meta
|
|
876
|
+
};
|
|
873
877
|
if (RE_NODE_MODULES.test(resolution?.id || id) || !isRelative(resolution?.id || id)) {
|
|
874
878
|
let shouldResolve;
|
|
875
879
|
if (typeof resolve === "boolean") shouldResolve = resolve;
|
|
@@ -891,7 +895,7 @@ function createDtsResolvePlugin({ tsconfig, resolve }) {
|
|
|
891
895
|
resolution = await this.resolve(filename_js_to_dts(resolution.id), importer, options);
|
|
892
896
|
if (!resolution) return;
|
|
893
897
|
} else if (RE_TS.test(resolution.id) && !RE_DTS.test(resolution.id)) {
|
|
894
|
-
|
|
898
|
+
await Promise.any([this.load(resolution), new Promise((resolve$1) => setTimeout(resolve$1, 200))]);
|
|
895
899
|
resolution.id = filename_ts_to_dts(resolution.id);
|
|
896
900
|
}
|
|
897
901
|
if (RE_DTS.test(resolution.id)) return {
|