dwmkerr / chatgpt-diagrams-extension

A Chrome browser extension that renders diagrams in the ChatGPT website inline.
MIT License
13 stars 3 forks source link

build: Bundling is extremely slow and doesn't support debugging #10

Open dwmkerr opened 1 year ago

dwmkerr commented 1 year ago

Bundling has been challenging for this extension. Currently I am not happy with rollup.js as the bundler as the real-time updates are very slow, require extra heap memory for node (see ./package.json and still do not support debugging. Options for bundlers and current status is below. It is possible that the mermaid.js issues will be resolved if the root cause of https://github.com/parcel-bundler/parcel/issues/8935 is fixed in mermaid.

Rollup.js

Parcel

Webpack

Webpack

dwmkerr commented 1 year ago

Note: the latest version of the code using webpack seems to work properly