module.exports = {
  mode: 'production',
  entry: {
    files: [
      '@babel/polyfill',
      './src/index.js'
    ]
  },
  output: {
    filename: 'owncloud.js',
    libraryTarget: 'umd'
  },
  module: {
    rules: [{
      test: /\.js?$/,
      exclude: /node_modules/,
      loader: 'babel-loader'
    }, {
      enforce: 'pre',
      test: /\.(js|vue)$/,
      exclude: /node_modules/,
      loader: 'eslint-loader'
    }]
  }
}

module.exports = {
  mode: 'production',
  entry: {
    files: [
      '@babel/polyfill',
      './src/index.js'
    ]
  },
  output: {
    filename: 'owncloud.js',
    libraryTarget: 'umd',
    globalObject: 'this'
  },
  module: {
    rules: [{
      test: /\.js?$/,
      exclude: /node_modules/,
      loader: 'babel-loader'
    }, {
      enforce: 'pre',
      test: /\.(js|vue)$/,
      exclude: /node_modules/,
      loader: 'eslint-loader'
    }]
  }
}

Allow owncloud-sdk to be used in a web worker ....
Allow owncloud-sdk to be used in a web worker ....

refs https://github.com/webpack/webpack/issues/6642