UNPKG

@epicgames-ps/lib-pixelstreamingfrontend-ue5.4

Version:
37 lines (33 loc) 774 B
// Copyright Epic Games, Inc. All Rights Reserved. const { merge } = require('webpack-merge'); const common = require('./webpack.common.js'); const prodCommon = { mode: 'production', optimization: { usedExports: true, minimize: true }, stats: 'errors-only', }; module.exports = [ merge(common, prodCommon, { output: { filename: 'lib-pixelstreamingfrontend.js', library: { name: 'lib-pixelstreamingfrontend', // exposed variable that will provide access to the library classes type: 'umd' }, }, }), merge(common, prodCommon, { output: { filename: 'lib-pixelstreamingfrontend.esm.js', library: { type: 'module' }, }, experiments: { outputModule: true } }) ];