Comments (3)
I'll look into way to fix that behavior so it still bundles
from bundlejs.
This is an issue with the package.json
of @reduxjs/toolkit
https://unpkg.com/@reduxjs/[email protected]/query/react/package.json
{
"name": "@reduxjs/toolkit-query-react",
"version": "1.0.0",
"description": "",
"main": "../../dist/query/react/index.js",
"module": "../../dist/query/react/rtk-query-react.esm.js",
"unpkg": "../../dist/query/react/rtk-query-react.umd.min.js",
"author": "Mark Erikson <[email protected]>",
"license": "MIT",
"types": "../../dist/query/react/index.d.ts",
"sideEffects": false
}
The version mismatch confuses bundlejs
, I'm thinking about what the best solution for this would be? 🤔
from bundlejs.
Hmm. Yeah, part of the problem here is that this is actually all one package, with multiple entry points. That package.json
file only exists so that alternate entry points work with Node's existing resolution algorithm.
The version numbers in those are pretty irrelevant, but technically I could update those as part of the build process, I guess.
RTK 2.0 has proper ESM and package.exports
support, so that should improve things.
But, both these attempts error in different ways:
export { configureStore } from "@reduxjs/[email protected]";
export {createApi} from "@reduxjs/[email protected]/query/react";
// or
// export {createApi} from "@reduxjs/toolkit/query/[email protected]";
export { Provider } from "react-redux";
from bundlejs.
Related Issues (20)
- Build client (browser) package version HOT 1
- Size reported of bundle is off HOT 3
- getRequest [Failed at request] HOT 4
- Incorrent treeshake size in badge/API HOT 3
- API error HOT 22
- BUG: Treeshake doesn't work for badges HOT 11
- Strange behavior when using multiplug badges HOT 7
- Possible badge caching issue HOT 6
- Fetch the versions mentioned in package.json. HOT 4
- Fail to bundle `npm/lib/cli-entry.js` and `@npmcli/arborist` HOT 6
- Failed to build node-libcurl ("Couldn't load") HOT 1
- no longer works by default (with unpkg) HOT 3
- Build failed for `[email protected]` HOT 2
- [FIXED] Cross-Origin Read Blocking made the badges unavailable on Github Readmes HOT 3
- Build fails for `[email protected]` HOT 2
- Config externals shortcut HOT 1
- Exclude `await import('[...'])` in bundle size? HOT 2
- ✘ [ERROR] Do not know how to load path: http-url:{JS_FILE_PATH} HOT 5
- Failed for tippy.js HOT 5
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 bundlejs.