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
Hey, I tried using the plugin, but I get the following:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'project/node_modules/unplugin-tdewolff-minify-html-literals/dist/esbuild.js' imported from project/scripts/build.js
at new NodeError (node:internal/errors:405:5)
at finalizeResolution (node:internal/modules/esm/resolve:224:11)
at moduleResolve (node:internal/modules/esm/resolve:836:10)
at defaultResolve (node:internal/modules/esm/resolve:1034:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:375:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:344:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:220:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36) {
url: URL {},
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js v20.7.0
Yeah, i fixed this manually in my node modules folder to see I was getting parsing issues as well 😅
I was looking for some ootb plugin to minify literals used for lit element. I guess you mean to just inline an unplugin call in my esbuild then, I will try that, thanks for the quick reply.
I'll keep an eye on your second attempt 😄 Have a nice day
Hey, I tried using the plugin, but I get the following:
using the import line from the readme:
After installation, the strucutre in my node_modules looks like this:
Installation done via npm:
Am i missing something?
To me it looks like the entry is missing: https://github.com/importantimport/unplugin-tdewolff-minify-html-literals/blob/main/vite.config.ts#L10
The text was updated successfully, but these errors were encountered: