We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a deno project which imports XLSX like this
// @deno-types="https://cdn.sheetjs.com/xlsx-0.19.1/package/types/index.d.ts" import * as XLSX from 'https://cdn.sheetjs.com/xlsx-0.19.1/package/xlsx.mjs';
After I build it with dnt using
import { build, emptyDir } from "https://deno.land/x/dnt@0.32.1/mod.ts"; await emptyDir("../out"); await build({ entryPoints: ["./src/index.ts"], outDir: "../out", shims: { deno: true }, package: { name: "myPackageName", version: "1.0.0" } });
I end up with a file (Note the file ending .mjs)
[absolutePath]/out/script/deps/cdn.sheetjs.com/xlsx-0.19.1/package/xlsx.mjs
while
[absolutePath]/out/script/[file-with-the-import-in].js
contains (Note the file ending .js)
const XLSX = __importStar(require("./deps/cdn.sheetjs.com/xlsx-0.19.1/package/xlsx.js"));
Resulting in an error.
If I manually change the file to .js instead of .mjs it works as expected. I'm guessing this is a bug somewhere with dnt? But I'm not sure.
The text was updated successfully, but these errors were encountered:
Nice. I will test this when we get the next version.
Sorry, something went wrong.
It works fine for me now 👍 thanks for the quick fix!
Successfully merging a pull request may close this issue.
I have a deno project which imports XLSX like this
After I build it with dnt using
I end up with a file (Note the file ending .mjs)
while
contains (Note the file ending .js)
Resulting in an error.
If I manually change the file to .js instead of .mjs it works as expected. I'm guessing this is a bug somewhere with dnt? But I'm not sure.
The text was updated successfully, but these errors were encountered: