Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dario-piotrowicz/react-router-dom-resolveid-issue


https://github.com/dario-piotrowicz/react-router-dom-resolveid-issue

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# `react-router-dom` `resolveId` issue

## Reproduction steps
```sh
$ pnpm i
$ pnpm start
```

In the terminal output you will see:
```
'react-router-dom' resolves to /<...>/react-router-dom/dist/index.js?v=<...>
```

would it be possible to get the following instead?
```
'react-router-dom' resolves to /<...>/react-router-dom/dist/main.js?v=<...>
```

(basically `react-router-dom` gets resolved to this entrypoint: [index.js](https://github.com/remix-run/react-router/blob/7759e8e2912eb69f6dd63b2906490831a2154cfd/packages/react-router-dom/package.json#L23) whilst I'd like it to instead resolve to: [main.js](https://github.com/remix-run/react-router/blob/7759e8e2912eb69f6dd63b2906490831a2154cfd/packages/react-router-dom/package.json#L21))