Information
- Speed-highlight.js version:
1.1.11
- Browser version: n/a
Description
Unable to import language either dynamically or directly when bundled by Vite.
Example
import asm from "@speed-highlight/core/dist/langauges/asm.js";
const lang = await import(`./languages/${lang}.js`);
Expected behavior
Able to import without error.
Actual Behavior
Either, this when directly importing:
Missing "./dist/languages/log" specifier in "@speed-highlight/core" package
Or, this in the console when dynamically importing (which is done by tokenize when lang is of type string):
Loading module from “http://localhost:5173/node_modules/.vite/deps/languages/log.js” was blocked because of a disallowed MIME type (“”).
Information
1.1.11Description
Unable to import language either dynamically or directly when bundled by Vite.
Example
Expected behavior
Able to import without error.
Actual Behavior
Either, this when directly importing:
Or, this in the console when dynamically importing (which is done by
tokenizewhenlangis of type string):