question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import PixiJS as ESM without bundlers

See original GitHub issue

I’m trying to import Pixi in a Snowpack application, but, although the Pixi package on NPM contains a esm file (/lib/pixi.es.js), it can’t be loaded directly in browser, as it uses node’s native libs (e.g.: url).

Is it possible to import PixiJS as an ES Module, without the use of Rollup, Webpack or any other bundler?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
bigtimebuddycommented, Aug 22, 2020

Okay, I hear you all. We will work on a browser-based ESM bundle.

11reactions
SagnikPradhancommented, Aug 8, 2020

Quite a bummer you guys don’t have an es module version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import PixiJS as ESM without bundlers · Issue #6734 - GitHub
I'm trying to import Pixi in a Snowpack application, but, although the Pixi package on NPM contains a esm file ( /lib/pixi.es.js ),...
Read more >
PIXI import not working: Cannot find module pixi.js
If you only use typescript, without a bundler you can continue using the require option and in your tsconfig.json make sure you have...
Read more >
Compiling and bundling TypeScript libraries with Webpack
What about the users that do not rely on a module bundler (such as Webpack and Rollup)? ... This will compile every import...
Read more >
How To Set Up PixiJS v5 Project With NPM and Webpack
PixiJS v5 has taken a big step forward in optimizing our bundles and now ... App of course you can import it without...
Read more >
Bundling monorepos the right way - JavaScript in Plain English
If you want to not build some packages, similarly, you can pass their names in ... Also, the module field should be added...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found