Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I use format: "es" & sourcemap: false, bundle.write outputs an es module and a systemjs module with a sourcemap #5401

Closed
twilson90 opened this issue Feb 23, 2024 · 1 comment

Comments

@twilson90
Copy link

Can't see anything in the documentation about this behaviour, or anyone else asking the question.
Why is this happening?

let output = {
        "format": "es",
        "dir": "dist/assets",
        "sourcemap": false,
        "entryFileNames": (info)=>{
          return `${get_name(info.facadeModuleId)}.${ext}`;
        },
        "chunkFileNames": (info)=>{
          var id = info.facadeModuleId || info.moduleIds[info.moduleIds.length-1];
          return id ? `${get_name(id)}.${ext}` : `[name].${ext}`;
        }
      };
      await bundle.write(output);
@lukastaegert
Copy link
Member

I would suggest checking all plugins that you use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants