nightjarnz

maybe that's why there's a seemingly large bundle.

nightjarnz

There are dependencies to the admin via the injector, and @silverstripe/webpackconfig (via npm) - this is what allows react components to be used from separate bundles.

Michael

I’m coming in a bit blind tbh - I’ve not done anything with react in SS before

Michael

I was just looking at the bundle size and it’s ~120kb, seems a little large. Is there a way to make a lightweight component?

nightjarnz

can you clarify your question a little please?

Michael

I’m starting a custom field for the elemental module. Docs are a little vague, but it does point to silverstripe-elemental-bannerblock as a starter. Am I right in reading that it’s pulling in it’s own version of react + libraries + component?

mark.b

@nightjarnz I have checked that and there no 404 for the typography.css but instead a 304 like other css’s and a 200 for the typography.css?2 which is called from the @import into the editor.css