support webpack externals configuration in karma