Skip to content

Fix React examples build from fresh checkout#1386

Open
johnsmith507 wants to merge 1 commit into
ustbhuangyi:devfrom
johnsmith507:codex/fix-react-examples-build
Open

Fix React examples build from fresh checkout#1386
johnsmith507 wants to merge 1 commit into
ustbhuangyi:devfrom
johnsmith507:codex/fix-react-examples-build

Conversation

@johnsmith507
Copy link
Copy Markdown

Summary

Fixes #658 by making the React examples usable from a fresh monorepo checkout.

  • Resolve local @better-scroll/* packages to their source files for the React example app.
  • Compile those local TypeScript package sources through ts-loader instead of requiring prebuilt dist/ artifacts.
  • Pin Webpack 4.47.0 so the React example build works on current Node/OpenSSL versions.
  • Document how to run and build the React examples.

Verification

  • yarn install --ignore-scripts
  • yarn react:build

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.

希望出一个 react版本的demo

1 participant