Import PixiJS as ESM without bundlers
See original GitHub issueI’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:
- Created 3 years ago
- Reactions:6
- Comments:15 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, I hear you all. We will work on a browser-based ESM bundle.
Quite a bummer you guys don’t have an es module version.