@pixi/unsafe-eval
Adds support for environments that disallow support of new Function
Last updated 4 years ago by bigtimebuddy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @pixi/unsafe-eval 
SYNC missed versions from official npm registry.

@pixi/unsafe-eval

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

Installation

npm install @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 '@pixi/core';
import { install } from '@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>

Current Tags

  • 6.2.2                                ...           latest (4 years ago)
  • 5.1.6                                ...           latest-5.1.x (6 years ago)
  • 5.2.5                                ...           latest-5.2.x (5 years ago)
  • 5.3.11                                ...           latest-5.3.x (4 years ago)
  • 6.1.0-rc.6                                ...           prerelease (5 years ago)

46 Versions

  • 6.2.2                                ...           4 years ago
  • 6.2.1                                ...           4 years ago
  • 6.2.0                                ...           4 years ago
  • 5.3.11                                ...           4 years ago
  • 6.1.3                                ...           5 years ago
  • 6.1.2                                ...           5 years ago
  • 6.1.1                                ...           5 years ago
  • 6.1.0                                ...           5 years ago
  • 6.1.0-rc.6                                ...           5 years ago
  • 6.1.0-rc.5                                ...           5 years ago
  • 6.1.0-rc.4                                ...           5 years ago
  • 6.1.0-rc.3                                ...           5 years ago
  • 6.1.0-rc.2                                ...           5 years ago
  • 6.1.0-rc                                ...           5 years ago
  • 5.3.10                                ...           5 years ago
  • 6.0.4                                ...           5 years ago
  • 6.0.3                                ...           5 years ago
  • 6.0.2                                ...           5 years ago
  • 6.0.1                                ...           5 years ago
  • 5.3.9                                ...           5 years ago
  • 6.0.0                                ...           5 years ago
  • 6.0.0-rc.3                                ...           5 years ago
  • 5.3.8                                ...           5 years ago
  • 6.0.0-rc.2                                ...           5 years ago
  • 6.0.0-rc                                ...           5 years ago
  • 5.3.7                                ...           5 years ago
  • 5.3.6                                ...           5 years ago
  • 5.3.5                                ...           5 years ago
  • 5.3.4                                ...           5 years ago
  • 5.2.5                                ...           5 years ago
  • 5.4.0-rc.3                                ...           5 years ago
  • 5.4.0-rc.2                                ...           5 years ago
  • 5.4.0-rc.1                                ...           5 years ago
  • 5.4.0-rc                                ...           5 years ago
  • 5.3.3                                ...           6 years ago
  • 5.3.2                                ...           6 years ago
  • 5.3.1                                ...           6 years ago
  • 5.3.0                                ...           6 years ago
  • 5.2.4                                ...           6 years ago
  • 5.2.3                                ...           6 years ago
  • 5.2.2                                ...           6 years ago
  • 5.1.6                                ...           6 years ago
  • 5.2.1                                ...           6 years ago
  • 5.0.4                                ...           7 years ago
  • 5.0.3                                ...           7 years ago
  • 5.0.0-rc.3                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 5
Last Day 0
Last Week 3
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |