private getId()

in packages/build-tools/breezr-plugin-os/src/OSJsonpPlugin.ts [79:93]


  private getId(compiler: Compiler): string {
    const { output } = compiler.options;
    if (!output) {
      return '';
    }
    const { library } = output;
    if (typeof library === 'string') {
      return library;
    }
    if (typeof library === 'object') {
      // @ts-ignore
      return library.name;
    }
    throw new Error('library for os jsonp plugin should be string');
  }