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

Shim syntax #1086

Open
ScreamZ opened this issue Feb 23, 2024 · 0 comments
Open

Shim syntax #1086

ScreamZ opened this issue Feb 23, 2024 · 0 comments

Comments

@ScreamZ
Copy link

ScreamZ commented Feb 23, 2024

Using shim: true generate

// ../../node_modules/.pnpm/tsup@8.0.2_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
import { fileURLToPath } from "url";
import path from "path";
var getFilename = () => fileURLToPath(import.meta.url);
var getDirname = () => path.dirname(getFilename());
var __dirname = /* @__PURE__ */ getDirname();

But deno complains with syntax "path" and required "node:path" is there any way to change this ?
If you want to use a built-in Node module, add a "node:" prefix (ex. "node:path").

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
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

1 participant