@pixi/unsafe-eval
TypeScript icon, indicating that this package has built-in type declarations

7.4.2 • Public • Published

@pixi/unsafe-eval

Adds support for environments that disallow support of new Function, such as WeChat.

Installation

npm install @pixi/unsafe-eval

Usage

Import @pixi/unsafe-eval before you create Application or Renderer.

import { Renderer } from '@pixi/core';

// Apply the patch to PIXI
import '@pixi/unsafe-eval';

// Create the renderer with patch applied
const renderer = new Renderer();

CDN Install

Via jsDelivr:

<!-- This script tag should be placed after pixi.min.js -->
<script src="https://cdn.jsdelivr.net/npm/@pixi/unsafe-eval@7.x/dist/unsafe-eval.min.js"></script>

Or via unpkg:

<!-- This script tag should be placed after pixi.min.js -->
<script src="https://unpkg.com/@pixi/unsafe-eval@7.x/dist/unsafe-eval.min.js"></script>

/@pixi/unsafe-eval/

    Package Sidebar

    Install

    npm i @pixi/unsafe-eval

    Homepage

    pixijs.com/

    Weekly Downloads

    10,989

    Version

    7.4.2

    License

    MIT

    Unpacked Size

    91.9 kB

    Total Files

    22

    Last publish

    Collaborators

    • zyie
    • bigtimebuddy