• Robert Knight's avatar
    Replace babel-plugin-angularjs-annotate with babel-plugin-inject-args · cacdd635
    Robert Knight authored
    It is confusing to have a Babel plugin with an Angular-related name and
    Angular-sounding annotations (`@ngInject`) in the code, even though
    we're not using AngularJS. Although we're not using AngularJS any more,
    we still have services that are instantiated by a dependency injection
    container.  The container reads dependency names from a `$inject`
    property on service functions/classes. This `$inject` property is added
    by `babel-plugin-angularjs-annotate`.
    
    This commit replaces the `angularjs-annotate` Babel plugin with one
    maintained by us [1]. The new plugin provides only the functionality that we
    need (eg. only processes explicitly annotated functions) and uses a more generic
    `@inject` annotation.
    
    [1] https://github.com/hypothesis/babel-plugin-inject-args
    cacdd635
Name
Last commit
Last update
..
components Loading commit data...
services Loading commit data...
store Loading commit data...
test Loading commit data...
util Loading commit data...
cross-origin-rpc.js Loading commit data...
ga.js Loading commit data...
get-api-url.js Loading commit data...
host-config.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
render-markdown.js Loading commit data...
search-client.js Loading commit data...
service-config.js Loading commit data...
ui-constants.js Loading commit data...
websocket.js Loading commit data...