-
Notifications
You must be signed in to change notification settings - Fork 21
Fixed CRA(react-scripts) compatibility issue #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
8a8d603
fb185de
c7bdb1d
ae29e1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,11 +19,11 @@ export default defineConfig({ | |
| lib: { | ||
| entry: { | ||
| index: resolve(__dirname, "src/index.ts"), | ||
| components: resolve(__dirname, "src/components/index.ts"), | ||
| utils: resolve(__dirname, "src/utils/index.ts"), | ||
| "components/index": resolve(__dirname, "src/components/index.ts"), | ||
| "utils/index": resolve(__dirname, "src/utils/index.ts"), | ||
| "react-router": resolve( | ||
| __dirname, | ||
| "src/components/react-router-dom/index.ts", | ||
| "src/components/react-router-dom/index.ts" | ||
| ), | ||
|
Comment on lines
24
to
27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainConsider consistency with the react-router entry naming. The 🏁 Script executed: #!/bin/bash
# Check how react-router is exported in package.json
jq '.exports."./react-router"' package.jsonLength of output: 4 🏁 Script executed: #!/bin/bash
rg -nP 'alias:\s*{' -n vite.config.ts -C20Length of output: 0 🏁 Script executed: #!/bin/bash
file=$(fd vite.config.ts | head -n1 || find . -type f -name vite.config.ts | head -n1)
echo "Inspecting Vite config at: $file"
sed -n '1,200p' "$file"Length of output: 1776 🏁 Script executed: #!/bin/bash
jq '.exports' package.json || echo "No exports field in package.json"Length of output: 540 Add or align the 🤖 Prompt for AI Agents |
||
| }, | ||
| formats: ["es", "cjs"], | ||
|
|
@@ -39,6 +39,7 @@ export default defineConfig({ | |
| external: [ | ||
| "react", | ||
| "react-native", | ||
| "react-dom", | ||
| "react/jsx-runtime", | ||
| "react/jsx-dev-runtime", | ||
| "react-router-dom", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.