@rpgjs/vite 5.0.0-beta.10 → 5.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/dist/rpgjs-plugin.d.ts +11 -0
- package/package.json +4 -4
- package/src/rpgjs-plugin.ts +16 -0
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -6809,7 +6809,7 @@ function replaceConfigImport() {
|
|
|
6809
6809
|
};
|
|
6810
6810
|
}
|
|
6811
6811
|
//#endregion
|
|
6812
|
-
//#region ../server/dist/module-
|
|
6812
|
+
//#region ../server/dist/module-BYZ0M4CC.js
|
|
6813
6813
|
/******************************************************************************
|
|
6814
6814
|
Copyright (c) Microsoft Corporation.
|
|
6815
6815
|
|
|
@@ -9204,6 +9204,9 @@ var Hooks = class {
|
|
|
9204
9204
|
}
|
|
9205
9205
|
});
|
|
9206
9206
|
}
|
|
9207
|
+
getHookFunctions(hookId) {
|
|
9208
|
+
return [...this.hookFunctions[hookId] ?? []];
|
|
9209
|
+
}
|
|
9207
9210
|
};
|
|
9208
9211
|
/**
|
|
9209
9212
|
* Provide modules configuration to Angular Dependency Injection
|
|
@@ -10812,6 +10815,11 @@ function mmorpgBuildPlugin({ rpgType, serverEntry, adapterEntries = {} }) {
|
|
|
10812
10815
|
}
|
|
10813
10816
|
//#endregion
|
|
10814
10817
|
//#region src/rpgjs-plugin.ts
|
|
10818
|
+
var runtimeDedupe = [
|
|
10819
|
+
"@canvasengine/presets",
|
|
10820
|
+
"canvasengine",
|
|
10821
|
+
"pixi.js"
|
|
10822
|
+
];
|
|
10815
10823
|
function normalizeMmorpgEntryPoints(entryPoints) {
|
|
10816
10824
|
if (!entryPoints || typeof entryPoints === "string") return {
|
|
10817
10825
|
client: entryPoints ?? "./src/client.ts",
|
|
@@ -10827,6 +10835,18 @@ function normalizeMmorpgEntryPoints(entryPoints) {
|
|
|
10827
10835
|
function rpgjs({ server, entryPoints }) {
|
|
10828
10836
|
const mmorpgEntryPoints = normalizeMmorpgEntryPoints(entryPoints?.mmorpg);
|
|
10829
10837
|
return [
|
|
10838
|
+
{
|
|
10839
|
+
name: "rpgjs:runtime-dedupe",
|
|
10840
|
+
config() {
|
|
10841
|
+
return {
|
|
10842
|
+
resolve: { dedupe: runtimeDedupe },
|
|
10843
|
+
optimizeDeps: {
|
|
10844
|
+
exclude: ["canvasengine"],
|
|
10845
|
+
include: ["pixi.js > eventemitter3"]
|
|
10846
|
+
}
|
|
10847
|
+
};
|
|
10848
|
+
}
|
|
10849
|
+
},
|
|
10830
10850
|
canvasengine(),
|
|
10831
10851
|
replaceConfigImport(),
|
|
10832
10852
|
serverPlugin(server),
|