You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in the expected behavior (1), sourceMappingURL for *.mjs files could point to the corresponding *.module.js.map files.
It seems also that import.mjs points to an "existing" sourcmaps when it's copied from module.js only because the regex pattern doesn't match sourceMappingURL=module.js.map but matches sourceMappingURL=*.module.js.map files:
Provide a general summary of the issue here
Since v3.5.3, most of
*.mjs
files (perhaps all exceptimport.mjs
), point to non-existing source maps.π€ Expected Behavior?
utils.mjs
should contain asourceMappingURL
pointing toutils.module.js.map
file:dist/utils.main.js dist/utils.main.js.map dist/utils.mjs //# sourceMappingURL=utils.module.js.map dist/utils.module.js dist/utils.module.js.map
utils.mjs.map
to be generated during build:dist/utils.main.js dist/utils.main.js.map dist/utils.mjs //# sourceMappingURL=utils.mjs.map dist/utils.mjs.map // β dist/utils.module.js dist/utils.module.js.map
π― Current Behavior
As an example,
utils.mjs
contains asourceMappingURL
pointing to a non-existing fileutils.mjs.map
dist/utils.main.js dist/utils.main.js.map dist/utils.mjs //# sourceMappingURL=utils.mjs.map dist/utils.module.js dist/utils.module.js.map
π Possible Solution
As mentioned in the expected behavior (1),
sourceMappingURL
for*.mjs
files could point to the corresponding*.module.js.map
files.It seems also that
import.mjs
points to an "existing" sourcmaps when it's copied frommodule.js
only because theregex
pattern doesn't matchsourceMappingURL=module.js.map
but matchessourceMappingURL=*.module.js.map
files:react-spectrum/scripts/buildEsm.js
Lines 5 to 16 in 45a8728
If that's a possible solution, the regex can be updated to exclude
.map
matches to preserve thesourceMappingURL
:Update: PR with this change #6368
π¦ Context
No response
π₯οΈ Steps to Reproduce
N/A
Version
@internationalized/date@3.5.3
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
macOS
π§’ Your Company/Team
No response
π· Tracking Issue
No response
The text was updated successfully, but these errors were encountered: