File tree Expand file tree Collapse file tree 5 files changed +4
-6
lines changed
Expand file tree Collapse file tree 5 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 55 "main" : " ./dist/client.cjs.js" ,
66 "module" : " ./dist/client.js" ,
77 "types" : " ./dist/client/src/index.d.ts" ,
8- "author" : " Jungwoo An <o1o9814@naver.com>" ,
98 "repository" : {
109 "type" : " git" ,
1110 "url" : " https://github.com/Jungwoo-An/react-editor-js.git"
Original file line number Diff line number Diff line change 55 "main" : " ./dist/core.cjs.js" ,
66 "module" : " ./dist/core.js" ,
77 "types" : " ./dist/core/src/index.d.ts" ,
8- "author" : " Jungwoo An <o1o9814@naver.com>" ,
98 "repository" : {
109 "type" : " git" ,
1110 "url" : " https://github.com/Jungwoo-An/react-editor-js.git"
Original file line number Diff line number Diff line change 55 "main" : " ./dist/server.cjs.js" ,
66 "module" : " ./dist/server.js" ,
77 "types" : " ./dist/server/src/index.d.ts" ,
8- "author" : " Jungwoo An <o1o9814@naver.com>" ,
98 "repository" : {
109 "type" : " git" ,
1110 "url" : " https://github.com/Jungwoo-An/react-editor-js.git"
Original file line number Diff line number Diff line change 55 "main" : " ./dist/react-editor-js.cjs.js" ,
66 "module" : " ./dist/react-editor-js.js" ,
77 "types" : " ./dist/react-editor-js/src/index.d.ts" ,
8- "author" : " Jungwoo An <o1o9814@naver.com>" ,
98 "repository" : {
109 "type" : " git" ,
1110 "url" : " https://github.com/Jungwoo-An/react-editor-js.git"
Original file line number Diff line number Diff line change 11export function createReactEditorJS ( ) {
22 if ( typeof window !== 'undefined' ) {
3- return require ( '@react-editor-js/client' )
3+ const Component = require ( '@react-editor-js/client' )
4+ return Component . default || Component
45 } else {
5- return require ( '@react-editor-js/server' )
6+ const Component = require ( '@react-editor-js/server' )
7+ return Component . default || Component
68 }
79}
You can’t perform that action at this time.
0 commit comments