Skip to content

Add flow-runtime webpack loader#284

Open
apples-kksk wants to merge 1 commit into
gajus:masterfrom
apples-kksk:add-flow-runtime-loader
Open

Add flow-runtime webpack loader#284
apples-kksk wants to merge 1 commit into
gajus:masterfrom
apples-kksk:add-flow-runtime-loader

Conversation

@apples-kksk
Copy link
Copy Markdown

@apples-kksk apples-kksk commented May 9, 2026

Closes #165.

Summary

  • add a new flow-runtime-loader package for webpack imports of Flow type modules such as .js.flow files
  • run source through Babel with babel-plugin-flow-runtime and @babel/preset-flow, including loader options and legacy query parsing
  • document inline/rule usage and add tests for exported types, imported type references, custom runtime paths, and sync loader behavior

Tests

  • yarn workspace flow-runtime-loader test
  • yarn workspace flow-runtime-loader run build
  • yarn workspace babel-plugin-flow-runtime test
  • git diff --check
  • manual DraftJS RawDraftContentState.js.flow transform check

IssueHunt Summary

Referenced issues

This pull request has been submitted to:


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webpack loader

2 participants