Skip to content

Commit

Permalink
Update webpack.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed Oct 12, 2023
1 parent 03b9758 commit 353459a
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,61 +55,6 @@ module.exports = [
}
],

devtool: 'source-map'
},
/*
{
experiments: {
outputModule: true,
},
mode: 'development',
context: `${__dirname}/../src/`,
entry: {
phaser: './phaser-esm.js'
},
devtool: 'source-map',
output: {
path: `${__dirname}/../build/`,
sourceMapFilename: 'phaser.esm.js.map',
devtoolModuleFilenameTemplate: 'webpack:///[resource-path]', // string
devtoolFallbackModuleFilenameTemplate: 'webpack:///[resource-path]?[hash]', // string
filename: 'phaser.esm.js',
library: {
type: 'module'
}
},
performance: { hints: false },
plugins: [
new webpack.DefinePlugin({
"typeof CANVAS_RENDERER": JSON.stringify(true),
"typeof WEBGL_RENDERER": JSON.stringify(true),
"typeof WEBGL_DEBUG": JSON.stringify(true),
"typeof EXPERIMENTAL": JSON.stringify(true),
"typeof PLUGIN_3D": JSON.stringify(false),
"typeof PLUGIN_CAMERA3D": JSON.stringify(false),
"typeof PLUGIN_FBINSTANT": JSON.stringify(false),
"typeof FEATURE_SOUND": JSON.stringify(true)
}),
{
apply: (compiler) => {
compiler.hooks.afterEmit.tap('AfterEmitPlugin', (compilation) => {
exec('node scripts/copy-esm-to-examples-watch.js', (err, stdout, stderr) => {
if (stdout) process.stdout.write(stdout);
if (stderr) process.stderr.write(stderr);
});
});
}
}
],
devtool: 'source-map'
}
*/
];

0 comments on commit 353459a

Please sign in to comment.