fixed external dependencies when using minification