We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import.meta
1 parent a202067 commit ba0099aCopy full SHA for ba0099a
packages/core/tsdown.config.ts
@@ -14,6 +14,17 @@ export default defineConfig({
14
sourcemap: true,
15
hash: false,
16
17
+ /**
18
+ * Quick fix for tsdown not convert "import.meta" for non-esm output.
19
+ * When tsdown resolves the issue, this can be removed.
20
+ *
21
+ * @see https://github.com/rolldown/tsdown/issues/370
22
+ */
23
+ define: {
24
+ 'import.meta.env.DEV': 'undefined',
25
+ 'import.meta.env.MODE': 'undefined',
26
+ },
27
+
28
inputOptions: {
29
preserveEntrySignatures: 'allow-extension',
30
experimental: {
0 commit comments