#build-tool #import #swc #farm #glob #vite #meta

nightly build farmfe_swc_transformer_import_glob

farm swc tranformer for vite-style import.meta.glob

12 releases

new 0.0.12 Nov 6, 2024
0.0.11 Jul 26, 2024
0.0.6 May 9, 2024
0.0.5 Apr 14, 2024
0.0.2 Mar 24, 2024

#534 in Build Utils

Download history 298/week @ 2024-07-15 142/week @ 2024-07-22 55/week @ 2024-07-29 13/week @ 2024-08-19 15/week @ 2024-08-26 31/week @ 2024-09-02 9/week @ 2024-09-09 50/week @ 2024-09-16 32/week @ 2024-09-23 15/week @ 2024-09-30 22/week @ 2024-10-07 8/week @ 2024-10-14 47/week @ 2024-10-21 24/week @ 2024-10-28

101 downloads per month
Used in 3 crates (via farmfe_plugin_script)

MIT license

325KB
9K SLoC

Transform import.meta.glob like Vite. See https://vitejs.dev/guide/features.html#glob-import for example:

const modules = import.meta.glob('./dir/*.js', { eager: true })

will be transformed to:

Dependencies

~53MB
~1M SLoC