Skip to content

Commit

Permalink
fix(demo): no more errors in production
Browse files Browse the repository at this point in the history
  • Loading branch information
topheman committed Mar 31, 2022
1 parent f85721f commit e831930
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions demo/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ const react = require("@vitejs/plugin-react");
const vue = require("@vitejs/plugin-vue");

module.exports = defineConfig({
// necessary for production build with monorepo - vue will use the wrong instance
// in the node_modules of @webrtc-remote-control/vue and throw errors about:
// `provide() can only be used inside setup()` / `inject() can only be used inside setup()`
// https://github.com/vitejs/vite/issues/7454
resolve: {
dedupe: ["vue"],
},
build: {
rollupOptions: {
// https://vitejs.dev/guide/build.html#multi-page-app
Expand Down

0 comments on commit e831930

Please # to comment.