@antha/web-test-runner-plugin-pixi
v0.4.1
Published
Fixing pixi.js imports for web-test-runner.
Maintainers
Readme
@antha/web-test-runner-plugin-pixi
This package provides a web-test-runner plugin that resolves direct pixi.js imports to PixiJS's browser-compatible bundle. Use it when browser tests that import PixiJS and use web-test-runner.
Install
npm i -D @antha/web-test-runner-plugin-pixiUsage
Make sure all your pixi.js imports are directly from pixi.js (like import {Application} from 'pixi.js'), not from any of its sub paths.
Add the following to your web-test-runner config:
import {pixiPlugin} from '@antha/web-test-runner-plugin-pixi';
export default {
plugins: [
pixiPlugin(),
],
};