Closed binury closed 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.
package.json
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.
By adding an entry point to
package.json
(main property) this package can then be imported into projects with ECMAScript modules and requireJS.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.