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

unexpected add node polyfill #564

Closed
himself65 opened this issue Jul 23, 2024 · 1 comment · Fixed by #567
Closed

unexpected add node polyfill #564

himself65 opened this issue Jul 23, 2024 · 1 comment · Fixed by #567
Labels
area:bug Something isn't working

Comments

@himself65
Copy link
Contributor

const __getOwnPropNames = Object.getOwnPropertyNames
var __commonJS = (cb, mod) =>
  function __require () {
    return (
      mod ||
      (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod),
        mod.exports
    )
  }

export const a = 1

turn into

import __node_cjsModule from 'node:module';

__node_cjsModule.createRequire(import.meta.url);
const a = 1;

export { a };
@himself65
Copy link
Contributor Author

context: I don't want any environment polyfill since I'm releasing the code to both deno, bun and nodejs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants