html-inline-script-webpack-plugin icon indicating copy to clipboard operation
html-inline-script-webpack-plugin copied to clipboard

PIXI js v.8

Open jkukuryk opened this issue 3 months ago • 1 comments

Environment and package version

"webpack": "^5.42.1",
"webpack-merge": "^5.8.0",
"html-inline-script-webpack-plugin": "^3.0.0",
"html-webpack-plugin": "^5.3.2",
"esbuild": "^0.12.14",

"pixi.js": "8.0.2",

Reproduction small git repo:

https://github.com/jkukuryk/pixi-version-update

Steps to reproduce

  1. download the repo
  2. run npm run build

What is expected?

code has 4-5 js chunks

What is actually happening?

After updating pixi.js to v.8 webpack creates chunks (works fine on lower versions of pixi.js)

Related topic on PIXI.js v8 migration: https://github.com/pixijs/pixijs/discussions/10344#discussioncomment-8841154

In PixiJS v8, we are using a lot more dynamic imports to help minimize the amount of code that needs to be loaded up front. In order to inline all the code, you need a way to disable dynamic imports. Perhaps a feature request for the Webpack plugin?"

jkukuryk avatar Mar 19 '24 14:03 jkukuryk