text: function createOutput(libraryTarget, mode) {
    const libraryName = 'Dragoned';
    return {
      path: `${__dirname}/${libraryTarget === 'umd' ? 'dist' : 'lib'}`,
      filename: mode === 'development' ? `${libraryName}.js` : `${libraryName}.min.js`,
      library: libraryName,
      libraryTarget: libraryTarget || 'umd',
      globalObject: '(typeof self !== \'undefined\' ? self : this)', // TODO Hack (for Webpack 4+) to enable create UMD build which can be required by Node without throwing error for window being undefined (https://github.com/webpack/webpack/issues/6522)
      umdNamedDefine: true
    };
  }
  module.exports = createOutput;
  