Skip to content

v2.0.1

@JacksonGL JacksonGL tagged this 16 Apr 21:04
Summary:
OSS request:
https://github.com/facebook/memlab/issues/34

This diff also adds a postinstall script to fix the website build issue:

The problem: webpackbar@5.0.2 extends webpack's ProgressPlugin and overwrites this.options with its own properties (name, color, reporters, reporter). webpack@5.106+ added strict schema validation that checks this.options against the ProgressPlugin schema, which rejects those unknown properties.

Why postinstall: webpackbar is a transitive dependency of docusaurus/core@2.0.0-beta.21 — we don't control its version directly. The postinstall script patches webpackbar's source after npm install/yarn install to rename this.options to this.barOptions, so the webpackbar-specific config no longer collides with the ProgressPlugin's validated this.options.

We may need to upgrade Docusaurus to v3 (which drops webpackbar or uses a compatible version), but this would be a larger change later.

Differential Revision: D101117105

fbshipit-source-id: 62f07d7127f6fe7fb5ed88693de757f0e94f5f6d
Assets 2
Loading