-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Describe the bug
Building a module with Vite fails when the final product is built (vite build). But it works in developer preview (vite).
Reproduction
- Create a Vue3+TS module as described in https://vitejs.dev/guide/build.html#library-mode
- Build for distribution with
npm run build - Use it in another Vite+Vue3+TS project
Sample project:
sample.zip
How to use:
- Go into
/liband call:npm install && npm run build - Go into
/mainand call:npm install && npm run build && npm run serve
Expected: See output from lib component.
Actual: No output, but console output from same component shows up. Also works in dev mode, try npm run dev.
System Info
viteversion: 2.0.5- Operating System: macOS M1 11.2.3
- Node version: v15.11.0 (brew)
- Package manager (npm/yarn/pnpm) and version: 7.6.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation