Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/core/GraphicsSystem.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'pixi.js/unsafe-eval';
import * as PIXI from 'pixi.js';
Comment on lines +1 to 2

Copilot AI Mar 2, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pixi.js/unsafe-eval needs to be loaded before Pixi generates any new Function()-based sync functions. In this codebase, several modules import from pixi.js (e.g. modules/core/AbstractSystem.js, modules/Context.js) before GraphicsSystem.js is reached, so this import may not reliably run first. Consider moving the side-effect import to the earliest application entry module (or a dedicated Pixi bootstrap module that all Pixi imports depend on) to guarantee it executes before any pixi.js import/evaluation.

Copilot uses AI. Check for mistakes.
import { TAU, Viewport, numWrap, vecEqual, vecLength, vecRotate, vecScale, vecSubtract } from '@rapid-sdk/math';

Expand Down
Loading