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

nightly build farmfe_swc_transformer_import_glob

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

16 releases

new 0.0.16 Jan 9, 2025
0.0.15 Jan 3, 2025
0.0.14 Dec 24, 2024
0.0.12 Nov 6, 2024
0.0.2 Mar 24, 2024

#310 in Build Utils

Download history 30/week @ 2024-09-18 22/week @ 2024-09-25 14/week @ 2024-10-02 22/week @ 2024-10-09 9/week @ 2024-10-16 49/week @ 2024-10-23 21/week @ 2024-10-30 145/week @ 2024-11-06 31/week @ 2024-11-13 33/week @ 2024-11-20 22/week @ 2024-11-27 30/week @ 2024-12-04 122/week @ 2024-12-11 194/week @ 2024-12-18 88/week @ 2024-12-25 172/week @ 2025-01-01

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

MIT license

335KB
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