diff --git a/HISTORY.md b/HISTORY.md index 2428220..6689cda 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,6 +3,12 @@ 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 - Fixed a bug in textmode on IE 11, not loading the editor when diff --git a/src/js/JSONEditor.js b/src/js/JSONEditor.js index ededd81..e455d37 100644 --- a/src/js/JSONEditor.js +++ b/src/js/JSONEditor.js @@ -456,4 +456,7 @@ JSONEditor.ace = ace; JSONEditor.Ajv = Ajv; JSONEditor.VanillaPicker = VanillaPicker; +// default export for TypeScript ES6 projects +JSONEditor.default = JSONEditor; + module.exports = JSONEditor;