@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.
@@ -25,5 +25,16 @@ export declare function rpgjs({ server, entryPoints }: RpgjsPluginOptions): (imp
25
25
  configureServer(server: import('vite').ViteDevServer): Promise<void>;
26
26
  buildStart(): void;
27
27
  buildEnd(): void;
28
+ } | {
29
+ name: string;
30
+ config(): {
31
+ resolve: {
32
+ dedupe: string[];
33
+ };
34
+ optimizeDeps: {
35
+ exclude: string[];
36
+ include: string[];
37
+ };
38
+ };
28
39
  })[];
29
40
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpgjs/vite",
3
- "version": "5.0.0-beta.10",
3
+ "version": "5.0.0-beta.11",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "keywords": [],
@@ -16,11 +16,11 @@
16
16
  "@babel/parser": "^7.29.3",
17
17
  "@babel/traverse": "^7.29.0",
18
18
  "@babel/types": "^7.29.0",
19
- "@canvasengine/compiler": "2.0.0-rc.1",
20
- "@canvasengine/tiled": "2.0.0-rc.1",
19
+ "@canvasengine/compiler": "2.0.0-rc.4",
20
+ "@canvasengine/tiled": "2.0.0-rc.4",
21
21
  "@hono/vite-dev-server": "^0.25.3",
22
22
  "@iarna/toml": "^2.2.5",
23
- "@rpgjs/server": "5.0.0-beta.10",
23
+ "@rpgjs/server": "5.0.0-beta.11",
24
24
  "@types/node": "^25.8.0",
25
25
  "acorn": "^8.16.0",
26
26
  "acorn-walk": "^8.3.5",
@@ -4,6 +4,8 @@ import { serverPlugin } from "./server-plugin";
4
4
  import { entryPointPlugin } from "./entry-point-plugin";
5
5
  import { mmorpgBuildPlugin } from "./mmorpg-build-plugin";
6
6
 
7
+ const runtimeDedupe = ["@canvasengine/presets", "canvasengine", "pixi.js"];
8
+
7
9
  type MmorpgEntryPoints =
8
10
  | string
9
11
  | {
@@ -43,6 +45,20 @@ export function rpgjs({
43
45
  const mmorpgEntryPoints = normalizeMmorpgEntryPoints(entryPoints?.mmorpg);
44
46
 
45
47
  return [
48
+ {
49
+ name: "rpgjs:runtime-dedupe",
50
+ config() {
51
+ return {
52
+ resolve: {
53
+ dedupe: runtimeDedupe,
54
+ },
55
+ optimizeDeps: {
56
+ exclude: ["canvasengine"],
57
+ include: ["pixi.js > eventemitter3"],
58
+ },
59
+ };
60
+ },
61
+ },
46
62
  canvasengine(),
47
63
  replaceConfigImport(),
48
64
  serverPlugin(server),