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

bug: exported Infinity function renamed #1418

Open
stormslowly opened this issue Jul 17, 2024 · 1 comment
Open

bug: exported Infinity function renamed #1418

stormslowly opened this issue Jul 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@stormslowly
Copy link
Member

// index.js
import { Infinity as infi } from "./bug";
infi();
// bug.js
function Infinity() {
  console.log("Inifinity");
}
// Infinity.size = [8];
export { Infinity };
// mako.confg.json
{
  "minify": false,
  "_treeShaking": false,
  "optimization": {
    "skipModules": false,
    "concatenateModules": false
  }
}
cargo mako . && node  dist/index.js
/mako/examples/dead-simple/dist/index.js:30
            (0, _bug.Infinity)();
                              ^

TypeError: (0 , _bug.Infinity) is not a function

expect

Print out "Inifinity"

@stormslowly
Copy link
Member Author

will fixed after swc-project/swc#8471 ( swc_core v0.87.22 ), need upgrade swc

@stormslowly stormslowly added the bug Something isn't working label Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant