@eik/rollup-plugin 5.0.25 → 5.0.27

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [5.0.27](https://github.com/eik-lib/rollup-plugin/compare/v5.0.26...v5.0.27) (2026-03-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency undici to v7.24.0 [security] ([#286](https://github.com/eik-lib/rollup-plugin/issues/286)) ([1fd2aea](https://github.com/eik-lib/rollup-plugin/commit/1fd2aeaab042908f659ae8334cd6a5def7dc8082))
7
+
8
+ ## [5.0.26](https://github.com/eik-lib/rollup-plugin/compare/v5.0.25...v5.0.26) (2026-03-13)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * 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))
14
+
1
15
  ## [5.0.25](https://github.com/eik-lib/rollup-plugin/compare/v5.0.24...v5.0.25) (2026-02-23)
2
16
 
3
17
 
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.25",
3
+ "version": "5.0.27",
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",
@@ -58,7 +58,7 @@
58
58
  "npm-run-all2": "8.0.4",
59
59
  "prettier": "3.7.4",
60
60
  "rimraf": "6.1.2",
61
- "rollup": "4.53.3",
61
+ "rollup": "4.59.0",
62
62
  "semantic-release": "25.0.2",
63
63
  "tap": "21.5.0",
64
64
  "typescript": "5.9.3"
@@ -66,7 +66,7 @@
66
66
  "dependencies": {
67
67
  "@eik/common": "5.1.22",
68
68
  "rollup-plugin-import-map": "3.0.0",
69
- "undici": "7.22.0"
69
+ "undici": "7.24.0"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=20"
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}`);