@eik/rollup-plugin 5.0.25 → 5.0.26
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/CHANGELOG.md +7 -0
- package/dist/plugin.cjs +4 -0
- package/package.json +1 -1
- package/src/plugin.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [5.0.26](https://github.com/eik-lib/rollup-plugin/compare/v5.0.25...v5.0.26) (2026-03-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* tsdown with dts-generation enabled throws ([#283](https://github.com/eik-lib/rollup-plugin/issues/283)) ([fbff42d](https://github.com/eik-lib/rollup-plugin/commit/fbff42da12047415b791bf108c640fc81a7b5bcf))
|
|
7
|
+
|
|
1
8
|
## [5.0.25](https://github.com/eik-lib/rollup-plugin/compare/v5.0.24...v5.0.25) (2026-02-23)
|
|
2
9
|
|
|
3
10
|
|
package/dist/plugin.cjs
CHANGED
|
@@ -68,6 +68,10 @@ function esmImportToUrl({
|
|
|
68
68
|
* @param {string} [importee]
|
|
69
69
|
*/
|
|
70
70
|
resolveId(importee) {
|
|
71
|
+
if (!plugin) {
|
|
72
|
+
// tsdown in 'dts' mode won't have started the build yet when it could hit 'resolveId'
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
71
75
|
const resolved = plugin.resolveId(importee);
|
|
72
76
|
if (resolved) {
|
|
73
77
|
this.debug(`Resolved ${importee} to ${resolved.id}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eik/rollup-plugin",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.26",
|
|
4
4
|
"description": "Rollup plugin for loading import maps from a Eik server and applying the mapping to ECMAScript modules in preparation for upload to the same server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/plugin.cjs",
|
package/src/plugin.js
CHANGED
|
@@ -66,6 +66,10 @@ export default function esmImportToUrl({
|
|
|
66
66
|
* @param {string} [importee]
|
|
67
67
|
*/
|
|
68
68
|
resolveId(importee) {
|
|
69
|
+
if (!plugin) {
|
|
70
|
+
// tsdown in 'dts' mode won't have started the build yet when it could hit 'resolveId'
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
69
73
|
const resolved = plugin.resolveId(importee);
|
|
70
74
|
if (resolved) {
|
|
71
75
|
this.debug(`Resolved ${importee} to ${resolved.id}`);
|