@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';
import '@pixi/unsafe-eval';
const renderer = new Renderer();
CDN Install
Via jsDelivr:
<script src="https://cdn.jsdelivr.net/npm/@pixi/unsafe-eval@7.x/dist/unsafe-eval.min.js"></script>
Or via unpkg:
<script src="https://unpkg.com/@pixi/unsafe-eval@7.x/dist/unsafe-eval.min.js"></script>