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]: useBlocker is not working HOT 5
- [Bug]: Cannot navigate in windows production HOT 2
- [Bug]: Unable to Pass State Using useNavigate When Navigating Back to Previous Route HOT 1
- [Bug]: Navigation don't work with createBrowserRouter sometimes HOT 2
- [Bug]: lazy loaded module error in nested router is catched only by the parent route with the * wildcard, not by the `errorElement` in the nested router HOT 2
- [Bug]: `fetcher.data` is define when submitting via `fetcher.submit` but is undefined when submitting a `fetcher.Form` HOT 3
- [Bug]: Navigation from '//' pathname does not work; path '*' is not matching the '//' page HOT 1
- [Bug]: Getting "A router only supports one blocker at a time" warning when running your navigation-blocking example HOT 1
- [Bug]: `setSearchParams` do not provide the latest queryString passed as argument to `navigate` HOT 3
- [Bug]: React Router swallows render error HOT 1
- [Bug]: useBlocker in createBrowserRouter is not working
- [Bug]: useLocation value being null when 0 is set as the state value of useNavigate
- [Docs]: for useSearchParams, functional updates should be explained in more detail HOT 3
- [Bug]: React router doesn't handle 'content://' URLs
- [Bug]: the state is not destroyed in the useFetcher hook with key parametr
- [Bug]: Outlet component remounts in production when changing state above it HOT 2
- [Bug]: loader of Route running even if Route / Router is not rendered HOT 1
- [Docs]: Docs for shouldRevalidate make it sound like it is only for opting out
- [Bug]: `useLocation` out of sync with `history.location`, leads to potential renders of unmatched `Route`s
- [Bug]: useLoaderData triggers component re rendering even if the route remains unchanged 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.