Fix es6 syntax for export (export default ...). Add resolve function to loader. Fix package.json syntax