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
Ahh, yeah, that's a problem... importEntrypoint won't work when called inside the setup function directly... It needs to wait for the config:resolved hook to run before it actually works. It is just incompatible with addEntrypoint :/
Instead, I'd recommend implementing the function yourself and importing the entrypoint inside the hook:
Describe the bug
As entrypointLoader is going to be deparecated or has, by default
vite-node
to import entrypoints as of version0.19.0
using
await wxt.builder.importEntrypoint(entrypointPath)
to import options is breaking.Reproduction
add a file in modules sub-folder of the project
Add this below code
demo.ts
Add a unlisted.ts file inside
entrypoints
sub-folder of the project.unlisted.ts
Try running
Steps to reproduce
No response
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: