Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

squiddy/swc-plugin-glob-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swc-plugin-glob-import

We've been making use of babel plugins to have glob imports, i.e. import images from "cats*.jpg"; in a project of work. We considered moving over to NextJS, which, at that time (end of 2022), was using SWC and didn't have support for this yet.

This never left the experimental stage, but served as a learning experience for me when it came to SWC and Rust.

If you're looking for something usable, head over to jcoon97/swc-import-glob-array-plugin.

About

An experimental SWC plugin allowing glob imports (e.g. `import images from "cats*.jpg";`) for those coming from babel.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published