Sign in to follow this  

ES6 code in pixi bundle causing errors in Safari 9 and IE11

Recommended Posts

Hey guys!

I need to have my site working in Safari 9 and IE11 but I've noticed that there is ES6 code in the pixi.js bundle. Has anybody else encountered this?

Looks like it's coming from the mini-signals dependency.

I have tried adding pixi.js and mini-signals to my include config for babel-loader but it's still not being transpiled.

Any ideas of a solution?

Share this post

Link to post
Share on other sites

In my project I am importing pixi as:

import * as PIXI from 'pixi.js';

Should I be doing it differently to get non ES6?

The only ES6 code is coming from the mini-signals dependency in pixi. There is no ES6 code anywhere else within the pixi.js bundle.

Share this post

Link to post
Share on other sites

How are you bundling? mini-signals exposes ES6 modules. Parcel uses these as standard, Webpack might also use that.

Might want to make sure your bundler is configured correctly, I looked through the link Ivan posted above and it all looks ES5 compliant in there so Pixi's rollup (which usually honours jsnext:main) doesn't look like the culprit. I suspect it could be due to your app bundler pulling mini-signals from node_modules.

Share this post

Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.