swc_plugin_add_import_extension

Crates.ioswc_plugin_add_import_extension
lib.rsswc_plugin_add_import_extension
version0.0.0
sourcesrc
created_at2022-08-28 23:52:28.049605
updated_at2022-08-28 23:52:28.049605
descriptionSWC plugin to add extensions to esm import and export specifiers
homepagehttps://github.com/medfreeman/swc-plugin-add-import-extension
repositoryhttps://github.com/medfreeman/swc-plugin-add-import-extension.git
max_upload_size
id654094
size9,462
Mehdi Lahlou (medfreeman)

documentation

https://github.com/medfreeman/swc-plugin-add-import-extension/README.md

README

swc-plugin-add-import-extension

SWC plugin to add extensions to esm import and export specifiers

📄 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

👥 Contributors

medfreeman
medfreeman
Commit count: 138

cargo fmt