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
Would be nice to allow hooking into this via the plugin API.
Alternative
Support subdir functionality in Quokka's hook.
Allow specifying the context.parentURL to use in the Loader.resolve hook from a plugin API.
module.exports={before: async(config,setProjectDir)=>{const{pkgDir, pkg}=config// Also, allow user to locate the `pkgDir` from the package name (`pkg`) themselves.setProjectDir(pkgDir)}}
({
pkg: '@foo/bar',
})
// quokka scratch file
When I add my own experimental loader, Quokka adds theirs to the end:
Issue description or question
Related: #696 (comment)
Plugins like https://github.com/Nodman/quokka-plugin-subdir are not possible in ESM environments without access to it.
Would be nice to allow hooking into this via the plugin API.
Alternative
Support
subdir
functionality in Quokka's hook.Allow specifying the
context.parentURL
to use in theLoader.resolve
hook from a plugin API.When I add my own experimental loader, Quokka adds theirs to the end:
Otherwise, you could just add your loader and import Quokka's loader.
Chaining hooks is coming to Node.js soon - still in development which would solve this.
FYI, the hook api was recently changed too.
The text was updated successfully, but these errors were encountered: