Comments (7)
I'm slightly familiar with the --standalone
flag, but I'm not sure how it handles third-party dependencies. We depend on a couple libs like es6-promise and querystring, does it bundle those up?
from react-router.
Also, the react ecosystem seems to favor cjs. I have spent countless hours on the module/package manager front in JavaScript and I am happy to end the tears and just ship cjs until other, more patient people make es6 happen as seamlessly as the cjs+npm+browserify workflow.
If you get something working, feel free to own a shim repo on bower with the same name as the npm registry. If its automated well enough we could look into adding to our release script.
from react-router.
Thanks for hearing me out - I decided to punt and go w/ jspm as I can use the ES6 loader they have along with any number of different formats like CJS (using npm for this module) and ES6 for others I'm using / etc
from react-router.
Just an update (I know this issue is closed but it's worth updating for those that might follow)
I did get this working -the full ES6 example below (bower / es6 / react / react-nested-router / karma)
https://github.com/toranb/react-es6-routing-example
from react-router.
I'm not opposed to this, I'll take a closer look soon.
from react-router.
It's still using React and this project as globals (right now) but it's nice to have ES6 as an option
from react-router.
+1
I agree that this would be nice. I tend to keep my vendor and app files separate, and by being forced to trace the dependencies all the way through via browserified npm includes it tends to mix concerns and unnecessarily increase build time. Also, a single dist
file would also allow the lib to be more portable like @toranb mentions above in reference to Bower.
(Also, @toranb, just saw your comment above -- could you remove your package from the Bower registry if it indeed does not work?)
from react-router.
Related Issues (20)
- [Bug]: "react-router-dom-v5-compat" <CompatRouter> doesn't unsubscribe from history potentially causing tests to memory leak HOT 2
- [Bug]: child loader redirect overrides parent loader error HOT 7
- [Bug]: v7_partialHydration with unstable_patchRoutesOnMiss: hydrateFallbackElement not shown on patched routes HOT 5
- [Bug]: Relative path does not work as expected in outlets HOT 1
- [Bug]: useNavigate causes component to rerender HOT 2
- [Bug]: react-aria-components Link - wrong href for external links integrating with React Router HOT 1
- [Bug]: Spurious rerender at the start of a load HOT 4
- [Bug]: HashRouter need to wrapped twice HOT 1
- [Bug]: returning `replace` from loader replaces an extra entry HOT 8
- [Bug]: When the page returns, there is a noticeable delay/latency. HOT 1
- [Bug]: Navlink className function props not work as expected it HOT 2
- [Docs]: Switched parameters in matchPath HOT 1
- [Bug]: Unable to match a url that ends in an equal sign HOT 1
- [Bug]: optional segments with dynamic segments HOT 1
- [Bug]: State is not preserved in a component tree when switching to render via custom `<Routes location={location}>` prop
- [Bug]: undefined is not an object (evaluating ' request.signal.aborted ') HOT 1
- [Bug]: "TypeError: URL constructor: // is not a valid URL" while using data router HOT 7
- [Bug]: Relative option is not work in useNavigate HOT 3
- [Bug]: (a11y)-Multiple accessibility issues with React-Router HOT 1
- [Bug]: The global state manager does not work in conjunction with react-router-dom HOT 1
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 react-router.