Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/medfreeman/swc-plugin-add-import-extension
SWC plugin to add extensions to esm import and export module names
https://github.com/medfreeman/swc-plugin-add-import-extension
export extension import swc-plugin
Last synced: about 2 months ago
JSON representation
SWC plugin to add extensions to esm import and export module names
- Host: GitHub
- URL: https://github.com/medfreeman/swc-plugin-add-import-extension
- Owner: medfreeman
- License: mit
- Created: 2022-05-01T20:00:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T19:46:15.000Z (9 months ago)
- Last Synced: 2024-04-14T09:56:59.796Z (9 months ago)
- Topics: export, extension, import, swc-plugin
- Language: Rust
- Homepage:
- Size: 344 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# swc-plugin-add-import-extension
> [`SWC`](https://swc.rs) plugin to add extensions to [`esm`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) import and export module names
## 📄 Notes
Need to detect:
- local imports/exports (not possible w/o node resolver)
- alias imports/exports (shall we read ts paths?/perhaps better to provide regex in plugin cfg)
- *baseUrl imports/exports (not possible w/o node resolver + swc still does not support this atm)## 🎉 Contributing
Contributions are welcome! Whether it is a small documentation change or a breaking feature, we welcome it!
_Please note: All contributions are taken under the MIT license_
## ⚙️ Development
> :information_source:
> This project depends on [fnm](https://github.com/Schniz/fnm) & [vscode](https://code.visualstudio.com/) for a unified development environment.```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update
rustup showfnm use --install-if-missing
corepack enable
pnpm install
code ./swc-plugin-add-import-extension.code-workspace
```## 👥 Contributors