#18675·jsdelivr

Internal Imports in `.min` Files are Not Rewritten to Use `.min` Variants [esm-raw]

Author: midnight-wondererCreated Dec 10, 2025Updated Jun 28, 2026

Description

Internal import paths within minified (.min) files are not being correctly rewritten by jsDelivr to target the minified version of the imported dependency.

Example

Consider the file: https://cdn.jsdelivr.net/npm/[email protected]/ScrollTrigger.min.js

This file contains an import statement:

javascript
import{Observer,_getTarget,_vertical,_horizontal,_scrollers,_proxies,_getScrollFunc,_getProxyProp,_getVelocityProp}from"./Observer.js"

Observation

The file, ScrollTrigger.min.js, is the minified variant. However, the internal import path incorrectly references the non-minified version, ./Observer.js, instead of the expected ./Observer.min.js.

Affected jsDelivr links

https://cdn.jsdelivr.net/npm/[email protected]/ScrollTrigger.min.js
and many more.

Response headers

N/A

Information

N/A

Requisites

  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.
  • I understand that not filling out this template correctly will lead to the issue being closed.

Additional content

No response