Skip to content

Commit f08c936

Browse files
committed
revert: remove nodePolyfills from UMD build
Reverts the vite.config.umd.js changes from 13fa579. Buffer usage will be replaced with browser-native APIs instead of polyfilling.
1 parent d67c9ca commit f08c936

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/superdoc/vite.config.umd.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import vue from '@vitejs/plugin-vue';
2-
import { nodePolyfills } from 'vite-plugin-node-polyfills';
32
import { defineConfig } from 'vite';
43
import { version } from './package.json';
54
import { getAliases } from './vite.config.js';
65

76
export 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
},

0 commit comments

Comments
 (0)