We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 786c0bb commit b0ffb82Copy full SHA for b0ffb82
packages/taro-platform-harmony/src/program/arkTS.ts
@@ -266,7 +266,7 @@ export default class Harmony extends TaroPlatformHarmony {
266
define.global = 'globalThis'
267
}
268
const ext = path.extname(target)
269
- if (![/d\.e?tsx?$/, /\.(json|map|md)$/].some(e => e.test(target))) {
+ if (![/\.d\.e?tsx?$/, /\.(json|map|md)$/].some(e => e.test(target))) {
270
code = this.replaceDefineValue(code, define, ext)
271
272
if (['.ts'].includes(ext)) {
0 commit comments