We have a project (angular) and some unittests for it (jasmine+sinon), which when minified creates some issues. For the actual code, we've solved these problems by injecting using the staticly typed string array, e.g. ['locationService', 'etcService']. Unfortunately for the unittests, the minification has some more problems to solve. As an example:We have a project (angular) and some unittests