mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
demos: add dependency txt for vite setup
This commit is contained in:
parent
34f40ebfc9
commit
020ddce3df
24
demos/includeDependencies.txt
Normal file
24
demos/includeDependencies.txt
Normal file
@ -0,0 +1,24 @@
|
||||
d3
|
||||
lowlight
|
||||
lowlight/lib/core
|
||||
prosemirror-commands
|
||||
prosemirror-dropcursor
|
||||
prosemirror-gapcursor
|
||||
prosemirror-history
|
||||
prosemirror-inputrules
|
||||
prosemirror-keymap
|
||||
prosemirror-model
|
||||
prosemirror-schema-list
|
||||
prosemirror-state
|
||||
prosemirror-tables
|
||||
prosemirror-transform
|
||||
prosemirror-view
|
||||
shiki
|
||||
simplify-js
|
||||
tippy.js
|
||||
uuid
|
||||
y-indexeddb
|
||||
y-prosemirror
|
||||
y-webrtc
|
||||
y-websocket
|
||||
yjs
|
@ -12,31 +12,15 @@ import vue from '@vitejs/plugin-vue'
|
||||
import reactRefresh from '@vitejs/plugin-react-refresh'
|
||||
// import checker from 'vite-plugin-checker'
|
||||
|
||||
const includeDependencies = fs.readFileSync('./includeDependencies.txt')
|
||||
.toString()
|
||||
.replace(/\r\n/g, '\n')
|
||||
.split('\n')
|
||||
.filter(value => value)
|
||||
|
||||
export default defineConfig({
|
||||
optimizeDeps: {
|
||||
include: [
|
||||
'prosemirror-commands',
|
||||
'prosemirror-inputrules',
|
||||
'prosemirror-keymap',
|
||||
'prosemirror-model',
|
||||
'prosemirror-schema-list',
|
||||
'prosemirror-state',
|
||||
'prosemirror-transform',
|
||||
'prosemirror-view',
|
||||
'prosemirror-history',
|
||||
'prosemirror-dropcursor',
|
||||
'prosemirror-gapcursor',
|
||||
'prosemirror-tables',
|
||||
'tippy.js',
|
||||
'yjs',
|
||||
'y-prosemirror',
|
||||
'y-websocket',
|
||||
'y-indexeddb',
|
||||
'y-webrtc',
|
||||
'lowlight',
|
||||
'lowlight/lib/core',
|
||||
'shiki',
|
||||
],
|
||||
include: includeDependencies,
|
||||
},
|
||||
|
||||
build: {
|
||||
|
Loading…
Reference in New Issue
Block a user