6.2.1-beta.9 • Published 2 years ago
@tbminiapp/pixi-unsafe-eval v6.2.1-beta.9
@tbminiapp/pixi-unsafe-eval
Adds support for environments that disallow support of new Function
, such as WeChat.
Installation
npm install @tbminiapp/pixi-unsafe-eval
Usage
If you are using a bundler, you need to pass the core bundle into the install
method. This function takes one arguments, either the global PIXI
object, or the core.
import { ShaderSystem, Renderer } from '@tbminiapp/pixi-core';
import { install } from '@tbminiapp/pixi-unsafe-eval';
// Apply the patch to PIXI
install({ ShaderSystem });
// Create the renderer with patch applied
const renderer = new Renderer();
If you are including unsafe-eval.js direct, you do not need to do anything else:
<script src="pixi.min.js"></script>
<script src="unsafe-eval.min.js"></script>
6.2.1-beta.8
2 years ago
6.2.1-beta.9
2 years ago
6.2.1-beta.6
2 years ago
6.2.1-beta.7
2 years ago
6.2.1-beta.3
2 years ago
6.2.1-beta.4
2 years ago
6.2.1-beta.5
2 years ago
6.2.1-beta.1
2 years ago