spassvogel Posted March 14, 2021 Share Posted March 14, 2021 I'm wondering how to use Pixi v6 (using npm + webpack) togeher with gsap. I used to be able to do import { PixiPlugin } from 'gsap/all'; import { gsap } from 'gsap'; PixiPlugin.registerPIXI(PIXI); gsap.registerPlugin(PixiPlugin); But since V6 a global Pixi is no longer defined. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 14, 2021 Share Posted March 14, 2021 (edited) the usual, like in v5 plugins: import * as PIXI from 'pixi.js'; window.PIXI = PIXI; require('gsap'); require('gsap/all'); that makes sure gsap is loaded after PIXI made global. I havent tested it, im vanilla user, i despise webpacks Edited March 14, 2021 by ivan.popelyshev Quote Link to comment Share on other sites More sharing options...
spassvogel Posted March 14, 2021 Author Share Posted March 14, 2021 Indeed! Great. I thought this stopped working for some reason ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.