Fix #548: `import JSONEditor from 'jsoneditor'` not working in TypeScript projects

This commit is contained in:
jos 2018-09-12 09:41:07 +02:00
parent f27bd97d9d
commit 655990c2a7
2 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,12 @@
https://github.com/josdejong/jsoneditor https://github.com/josdejong/jsoneditor
## 2018-09-12, version 5.24.6
- Fix #548: `import JSONEditor from 'jsoneditor'` not working in
TypeScript projects (gave a constructor is undefined error).
## 2018-09-06, version 5.24.5 ## 2018-09-06, version 5.24.5
- Fixed a bug in textmode on IE 11, not loading the editor when - Fixed a bug in textmode on IE 11, not loading the editor when

View File

@ -456,4 +456,7 @@ JSONEditor.ace = ace;
JSONEditor.Ajv = Ajv; JSONEditor.Ajv = Ajv;
JSONEditor.VanillaPicker = VanillaPicker; JSONEditor.VanillaPicker = VanillaPicker;
// default export for TypeScript ES6 projects
JSONEditor.default = JSONEditor;
module.exports = JSONEditor; module.exports = JSONEditor;