Skip to content

Commit 7badacd

Browse files
Fix not building peerjs for web runtime (#6758)
1 parent 11ab92f commit 7badacd

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Extensions/PhysicsBehavior/box2djs/* linguist-vendored
55
Extensions/Physics2Behavior/box2d.js linguist-vendored
66
Extensions/BBText/pixi-multistyle-text/* linguist-vendored
77
Extensions/P2P/A_peer.js linguist-vendored
8+
Extensions/Multiplayer/peer.js linguist-vendored
89
Extensions/Shopify/shopify-buy.umd.polyfilled.min.js linguist-vendored
910
Extensions/TileMap/pako/* linguist-vendored
1011
Extensions/TileMap/pixi-tilemap/* linguist-vendored

GDJS/scripts/lib/runtime-files-list.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@ const extensionsRuntimePath = path.join(gdevelopRootPath, 'Extensions');
99
const gdjsRuntimePath = path.join(gdjsRootPath, 'Runtime');
1010

1111
// The extensions to be included in the bundled Runtime (will be built with esbuild or copied).
12-
const allowedExtensions = ['.js', '.ts', '.tsx', '.html', '.json', '.xml', '.map', '.wasm', '.txt'];
12+
const allowedExtensions = [
13+
'.js',
14+
'.ts',
15+
'.tsx',
16+
'.html',
17+
'.json',
18+
'.xml',
19+
'.map',
20+
'.wasm',
21+
'.txt',
22+
];
1323

1424
// These extensions will be built with esbuild (the other will be copied).
1525
const transformIncludedExtensions = ['.js', '.ts', '.tsx'];
@@ -40,6 +50,7 @@ const untransformedPaths = [
4050
'Extensions/DialogueTree/bondage.js/dist',
4151
'Extensions/Effects/pixi-filters',
4252
'Extensions/P2P/A_peer.js',
53+
'Extensions/Multiplayer/peer.js',
4354
'Extensions/ParticleSystem/pixi-particles-pixi-renderer.min.js',
4455
'Extensions/Physics2Behavior/box2d.js',
4556
'Extensions/PhysicsBehavior/box2djs',

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"Extensions/Effects/pixi-filters/filter-alpha.js",
5050
"SharedLibs/TileMapHelper/**/*",
5151
"Extensions/Spine/pixi-spine/pixi-spine.js",
52-
"Extensions/P2P/A_peer.js"
52+
"Extensions/P2P/A_peer.js",
53+
"Extensions/Multiplayer/peer.js"
5354
]
5455
}

0 commit comments

Comments
 (0)