You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Unable to import language when bundled by Vite. #31
functionb(e){switch(e){case"./languages/asm":
case"./languages/asm.js":
returnimport("./asm-c2d0ef48.js");case"./languages/bash":
case"./languages/bash.js":
returnimport("./bash-c3851741.js");case"./languages/bf":
case"./languages/bf.js":
// And many more
And all the mentioned files are also present automatically.
Activity
BearToCode commentedon May 7, 2023
I managed to fix it using vite-plugin-dynamic-import with this config:
this way this:
is converted into this in the generated bundle:
And all the mentioned files are also present automatically.
fix: export the language files #31
chore(release): 1.2.22 [skip ci]
matubu commentedon Oct 20, 2026
Thanks guys! Should now be fixed since 2.0