UNPKG

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

Version:
36 lines (32 loc) 756 B
// Copyright Epic Games, Inc. All Rights Reserved. const { merge } = require('webpack-merge'); const common = require('./webpack.common.js'); const devCommon = { mode: 'development', devtool: 'inline-source-map', devServer: { static: './dist', } }; module.exports = [ merge(common, devCommon, { output: { filename: 'lib-pixelstreamingfrontend.js', library: { name: 'lib-pixelstreamingfrontend', // exposed variable that will provide access to the library classes type: 'umd' }, }, }), merge(common, devCommon, { output: { filename: 'lib-pixelstreamingfrontend.esm.js', library: { type: 'module' }, }, experiments: { outputModule: true } }) ];