evanw / evanw/node-source-map-support

Incorrectly resolves absolute source mapping url as relative to file

Aperta
#84 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
2.2k
Fork
223
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The `supportRelativeURL` function always assumes mappings are relative, even when they may be an absolute URI.

Given:
- Build 0.3.2 of source-map-support
- a **file** of `c:\dir\a.min.js`
- a **url** of `file:///C:/dir/a.js`

The result is `C:\dir\file:\C:\dir\a.js` when it should be `C:\dir\a.js`.

The issue stems from the fact node's `path.resolve` function does not interpret file URIs.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.