ionic-team / ionic-team/rollup-plugin-node-polyfills
import/require with trailing slash not getting resolved
- Langage dominant
- JavaScript
- Étoiles
- 142
- Forks
- 65
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
https://github.com/ionic-team/rollup-plugin-node-polyfills/blob/9b5fe1a9cafffd4871e6d65613ed224f807ea251/src/modules.ts#L65
I believe the intent was to remove the trailing slash and check in the map if the Polyfill exists
`importee === importee.slice(0, -1);` should have been `importee = importee.slice(0, -1);`
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Open src/modules.ts at line 65 and inspect how an import or require ending in a slash is handled before the polyfill map lookup. Verify the trailing slash is removed and that the resulting module resolves correctly; the issue does not mention a specific test file, so confirm the behavior with the project’s available checks.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, rollup
- Domaine
- build-system, tooling
- Type d'issue
- Bug
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 45/100