diff --git a/examples/react_demo/src/App.js b/examples/react_demo/src/App.js index b500ef1..aad5dce 100755 --- a/examples/react_demo/src/App.js +++ b/examples/react_demo/src/App.js @@ -7,7 +7,7 @@ import './App.css' // // import JSONEditor from 'jsoneditor/react' // -import JSONEditor from '../../../react' +import JSONEditor from '../../../dist/jsoneditor-react' const json = { diff --git a/gulpfile.js b/gulpfile.js index 66eda9e..5516bd8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -131,6 +131,8 @@ const compilerReact = webpack({ cache: true, bail: true, output: { + library: 'JSONEditor', + libraryTarget: 'umd', path: DIST, filename: NAME_REACT },