yaru22 / angular-json-human

Angular Json Formatting for Human Beings (inspired by https://github.com/marianoguerra/json.human.js)
MIT License
46 stars 16 forks source link

Add entry point property to package.json #11

Closed binury closed 6 years ago

binury commented 6 years ago

By adding an entry point to package.json (main property) this package can then be imported into projects with ECMAScript modules and requireJS.

import 'angular-json-human';

Without this property, however, the parser does not know which file to use and will throw an error about being unable to resolve the import statement.