#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

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

#671 in Build Utils

Download history 12/week @ 2024-08-18 11/week @ 2024-08-25 29/week @ 2024-09-01 14/week @ 2024-09-08 51/week @ 2024-09-15 27/week @ 2024-09-22 21/week @ 2024-09-29 18/week @ 2024-10-06 10/week @ 2024-10-13 32/week @ 2024-10-20 35/week @ 2024-10-27 142/week @ 2024-11-03 24/week @ 2024-11-10 42/week @ 2024-11-17 18/week @ 2024-11-24 26/week @ 2024-12-01

115 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

~52MB
~1M SLoC