File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import vue from '@vitejs/plugin-vue' ;
2- import { nodePolyfills } from 'vite-plugin-node-polyfills' ;
32import { defineConfig } from 'vite' ;
43import { version } from './package.json' ;
54import { getAliases } from './vite.config.js' ;
65
76export default defineConfig ( ( { command } ) => {
8- const plugins = [ vue ( ) , nodePolyfills ( ) ] ;
7+ const plugins = [ vue ( ) ] ;
98 const isDev = command === 'serve' ;
109
1110 return {
@@ -36,6 +35,7 @@ export default defineConfig(({ command }) => {
3635 external : [
3736 'yjs' ,
3837 '@hocuspocus/provider' ,
38+ 'vite-plugin-node-polyfills' ,
3939 'pdfjs-dist' ,
4040 'pdfjs-dist/build/pdf.mjs' ,
4141 'pdfjs-dist/legacy/build/pdf.mjs' ,
@@ -46,6 +46,7 @@ export default defineConfig(({ command }) => {
4646 yjs : 'Yjs' ,
4747 '@hocuspocus/provider' : 'HocuspocusProvider' ,
4848 'pdfjs-dist' : 'PDFJS' ,
49+ 'vite-plugin-node-polyfills' : 'NodePolyfills' ,
4950 } ,
5051 } ,
5152 } ,
You can’t perform that action at this time.
0 commit comments