JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.67k stars 308 forks source link

Hi. good bro vite to build fail [commonjs--resolver] Expected ';', '}' #1367

Closed xiaomao996688 closed 4 months ago

xiaomao996688 commented 4 months ago

i use vite to build the project but find commonjs--resolver] Expected ';', '}' or <eof> in /Users/zhoulonglong/Desktop/workspace/Builder/node_modules/suneditor/src/lib/core.js file: /Users/zhoulonglong/Desktop/workspace/Builder/node_modules/suneditor/src/lib/core.js:1165:82 1163: */ 1164: getSelectionNode: function () { 1165: if (!context.element.wysiwyg.contains(this._variable._selectionNode)) this._editorRange(); ^ 1166: if (!this._variable._selectionNode) { 1167: const selectionNode = util.getChildElement(context.element.wysiwyg.firstChild, function (

To Solution if (!context.element.wysiwyg.contains(this._variable._selectionNode)) {this._editorRange();} Hope it can be solved

Anishadahal commented 3 months ago

Could you please inform when this fix will be released?