Comments (1)
I think the problem lies within stringifyRoutes
in src/stringify.ts
. For every sync
route an element is added to an imports
array, even when that import is already present in the array.
See attached pull request for a fix. I'd be happy to see this get fixed. Please let me know if you have any comments and I'll change the commit. Also, feel free to change the pull request yourself.
Thanks!
from vite-plugin-pages.
Related Issues (20)
- Vite v4 support
- [Bugs] Cannot bind multiple baseRoutes to the same directory HOT 2
- Question: How to implement/use middleware feature like in nuxt.js ? HOT 1
- [Question] - How to define title, meta, middlewares for React? HOT 1
- Route with params/props (Not in URL) HOT 1
- Routes with extensions are not supported. HOT 1
- [Question] Is it possible to differentiate links to prevent all getting router-link-active by expanded parameter's?
- Only index file under pages folder accessible in deployed app
- exclude not work when file change HOT 2
- TSX/JSX consider support to define meta by jsdoc with import types
- How to add meta in route HOT 11
- catch all route not catch index route HOT 1
- Vulnerability : Update yaml to 2.2.2
- Add dynamic meta to dynamic routes
- The field name "filePattern" in the config contains a spelling error. HOT 1
- Dynamic routing + dynamic tab + sub route
- [Feature] Typescript support for route path and route path params(Auto complete) HOT 1
- doesn't React support the feature [SFC custom block for Route Data ]?
- Vite5.0 support HOT 3
- Support for v0.10 @solidjs/router ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite-plugin-pages.