Skip to content

Commit

Permalink
replace require with import for main for standardproject (#6061)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewsterrenburg authored Oct 20, 2020
1 parent bdadbe6 commit 1353a05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project/standard/templates/js/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ const appConfig = require('@mapstore/product/appConfig');
*/
const plugins = require('@mapstore/product/plugins');

require('@mapstore/product/main')(appConfig, plugins);
import main from '@mapstore/product/main';

main(appConfig, plugins);

0 comments on commit 1353a05

Please sign in to comment.