@pixi/unsafe-eval
v7.4.3
Published
Adds support for environments that disallow support of new Function
Readme
@pixi/unsafe-eval
Adds support for environments that disallow support of new Function, such as WeChat.
Installation
npm install @pixi/unsafe-evalUsage
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/[email protected]/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/[email protected]/dist/unsafe-eval.min.js"></script>