Skip to content

Create shared configuration builders.#1

Merged
Hug0-Drelon merged 7 commits intomasterfrom
feat/create-config-builders
Feb 5, 2026
Merged

Create shared configuration builders.#1
Hug0-Drelon merged 7 commits intomasterfrom
feat/create-config-builders

Conversation

@Hug0-Drelon
Copy link
Member

@Hug0-Drelon Hug0-Drelon commented Feb 2, 2026

What?

Let's refactor webpack.config.js from all our plugins.

How?

Create new API to generate webpack configurations:

  • getVanillaConfig for Vanilla JS and CSS files (meaning no complex build rules nor JSX transpilation).
  • getReactifiedConfig for React-like JS and CSS files (perfect for custom sidebars or blocks for instance).
  • Cover it with Jest unit tests.
  • Take the opportunity to add ESLint and a proper CI.
  • Lint already existing files and rename them (their inner code is kept untouched).

@Hug0-Drelon Hug0-Drelon self-assigned this Feb 2, 2026
@Hug0-Drelon Hug0-Drelon added the enhancement New feature or request label Feb 2, 2026
@Marianne380 Marianne380 self-requested a review February 2, 2026 13:18
@Hug0-Drelon
Copy link
Member Author

@Marianne380 I've added SASS transpilation in reactified.js (see sassRulesMinified and sassRulesUnminified). Sorry for the modification during your review... 😅

Copy link

@Marianne380 Marianne380 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, LGTM.

@Hug0-Drelon Hug0-Drelon merged commit 58e738e into master Feb 5, 2026
3 checks passed
@Hug0-Drelon Hug0-Drelon deleted the feat/create-config-builders branch February 5, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants