Skip to content

Commit f1048c2

Browse files
committed
fix: vite build
1 parent 4793154 commit f1048c2

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

public/js/extra.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import Prism from 'prismjs'
55
import hljs from 'highlight.js'
6-
import PDFObject from 'pdfobject'
6+
import * as PDFObject from 'pdfobject'
77
import { saveAs } from 'file-saver'
88

99
import escapeHTML from 'lodash/escape'

public/js/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ import '@hackmd/ot/lib/undo-manager'
102102
// import '@hackmd/ot/lib/client'
103103
import '@hackmd/ot/lib/editor-client'
104104

105-
import mousewhell from 'jquery-mousewheel'
105+
import * as mousewhell from 'jquery-mousewheel'
106106
import '@vendor/jquery-textcomplete/jquery.textcomplete'
107107
import '@vendor/jquery-ui/jquery-ui.min.js'
108108
import '@vendor/bootstrap/tooltip.min.js'

vite.config.js

-5
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ export default defineConfig({
159159
'list.js',
160160
'@hackmd/idle-js',
161161
'spin.js'
162-
// Explicitly include the OT files being imported
163-
// '@hackmd/ot/lib/client.js',
164-
// '@hackmd/ot/lib/editor-client.js',
165-
// '@hackmd/ot/lib/socketio-adapter.js',
166-
// '@hackmd/ot/lib/codemirror-adapter.js'
167162
]
168163
},
169164
server: {

0 commit comments

Comments
 (0)