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
In the browser that translates to an extensionless GET, which fails on naive HTTP servers.
GET /rxjs/_esm2015/internal/Observable
Referer: /rxjs/_esm2015/index.js
404 Not Found
Extensionless imports could work on a less naive server that knows how to resolve modules. I don't know of any HTTP server that does this and honestly I don't expect there to be one because that's terribly inefficient.
GET /rxjs/_esm2015/internal/Observable
Referer: /rxjs/_esm2015/index.js
302 Found
Location: /rxjs/_esm2015/internal/Observable.js
GET /rxjs/_esm2015/internal/Observable.js
Referer: rxjs/_esm2015/index.js
200 OK
So my feature request is to add js extensions to the imports and exports in the ESM build output.
The text was updated successfully, but these errors were encountered:
Feature Request
RxJs is very useful in browser apps but unless you're using a bundler it's kind of hard to use the esm2015 version in the browser.
The reason why it's difficult is that all the import/export statements are extensionless:
In the browser that translates to an extensionless GET, which fails on naive HTTP servers.
Extensionless imports could work on a less naive server that knows how to resolve modules. I don't know of any HTTP server that does this and honestly I don't expect there to be one because that's terribly inefficient.
So my feature request is to add
js
extensions to the imports and exports in the ESM build output.The text was updated successfully, but these errors were encountered: