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
Input:
index.ts
export { default as A } from './A' export { default as B } from './B'
A.tsx
import React from 'external' export default () => { return <></> }
B.tsx
Build Script build.js
build.js
const esbuild = require('esbuild') esbuild.build({ entryPoints: ['./index.ts'], bundle: true, external: ['external'], outfile: 'out.js', })
out.js
// ... // A.tsx const external = __toModule(require("external")); var A_default = () => { return /* @__PURE__ */ external.default.createElement(external.default.Fragment, null); }; // B.tsx const external2 = __toModule(require("external")); // duplicated require ! var B_default = () => { return /* @__PURE__ */ external2.default.createElement(external2.default.Fragment, null); }; // ...
Related: #405
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. Closing as a duplicate of #475.
Sorry, something went wrong.
No branches or pull requests
Input:
index.ts
A.tsx
B.tsx
Build Script
build.js
out.js
Related: #405
The text was updated successfully, but these errors were encountered: