GithubHelp home page GithubHelp logo

Comments (4)

btd avatar btd commented on May 18, 2024

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.

rvillalba-novetta avatar rvillalba-novetta commented on May 18, 2024

The issue seems to occur here

image

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.

btd avatar btd commented on May 18, 2024

This is defenetly an issue. How you did mapping? Can you share this part of rollup config?

from rollup-plugin-visualizer.

rvillalba-novetta avatar rvillalba-novetta commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.