Comments (4)
It works with code splitting defenetly. It looks like a bug. But i cabnot say withou details.
You can provide me stats file to take a look
from rollup-plugin-visualizer.
The issue seems to occur here
Node data has no uuid it only has: {children: [], name: "components/Buttons.js"}
I have a structure like this:
components
Buttons
index.js
A.js
B.js
For my input I mapped {components/Buttons: components/Buttons/index.js}
I'm guessing this mapping is the source of the issue?
from rollup-plugin-visualizer.
This is defenetly an issue. How you did mapping? Can you share this part of rollup config?
from rollup-plugin-visualizer.
I've made a minimal example. Here is the src/ structure:
==> src/index.js <==
export * from "./components/index";
export const top = "top";
==> src/components/A.js <==
export default "A";
==> src/components/B.js <==
export default "B";
==> src/components/index.js <==
export { default as A } from "./A";
export { default as B } from "./B";
And the rollup config:
import visualizer from "rollup-plugin-visualizer";
export default [
{
input: {
index: "src/index",
"components/index": "src/components/index",
"components/A": "src/components/A",
"components/B": "src/components/B"
},
plugins: [visualizer()],
output: [{ dir: "dist", format: "esm" }]
}
];
from rollup-plugin-visualizer.
Related Issues (20)
- Typings error HOT 1
- [BUG] Massive size mismatch for minified code HOT 7
- No stats for CSS files in the build output HOT 2
- Tooltips are often unhelpful because of size or placement HOT 3
- No affordances for what can be clicked HOT 2
- renderedLength from sourcemaps is ignored, pre-plugins module sizes are used instead HOT 2
- Rollup 4.x HOT 5
- Compare with list of chunks HOT 1
- TypeScript issue with Rollup 4 and Vite 5 HOT 1
- Make output idempotent HOT 2
- Add flamechart HOT 2
- Display `imported by` field in treemap view for modules HOT 6
- ✕ unmet peer rollup@^2.56.3: found 3.29.4 HOT 1
- Check module ids with pnpm HOT 1
- Aggregated tooltip visual issue
- [Feature Request] We can drag the element in network
- 5.11.0 new strict mode not allowing files in CLI command HOT 1
- `open` flag does not work if `emitFile` is `true` HOT 1
- Expose JS API to combine multiple outputs into one HOT 3
- \x00 character in filenames using list template 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 rollup-plugin-visualizer.