mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Testing esm build
This commit is contained in:
parent
376107b25f
commit
b175ae1778
1 changed files with 18 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
const webpack = require('webpack');
|
||||
const exec = require('child_process').exec;
|
||||
|
||||
// https://webpack.js.org/configuration/configuration-types/#exporting-multiple-configurations
|
||||
|
||||
module.exports = {
|
||||
mode: 'development',
|
||||
|
||||
|
@ -26,6 +28,22 @@ module.exports = {
|
|||
globalObject: 'this'
|
||||
},
|
||||
|
||||
/*
|
||||
output: {
|
||||
path: `${__dirname}/../build/`,
|
||||
globalObject: 'this',
|
||||
sourceMapFilename: '[file].map',
|
||||
devtoolModuleFilenameTemplate: 'webpack:///[resource-path]', // string
|
||||
devtoolFallbackModuleFilenameTemplate: 'webpack:///[resource-path]?[hash]', // string
|
||||
filename: '[name].js',
|
||||
library: {
|
||||
name: 'Phaser',
|
||||
type: 'umd',
|
||||
umdNamedDefine: true,
|
||||
}
|
||||
},
|
||||
*/
|
||||
|
||||
performance: { hints: false },
|
||||
|
||||
plugins: [
|
||||
|
|
Loading…
Add table
Reference in a new issue