在导入的ts/js里没有exports或module.exports能使用

以前在2.x版本里,是有 module.exports 能使用的

目前用 3.8.2 ,不论是 moduleexports 都是undefined

请问有前辈遇到这样的情况吗?

我用的3.72,我一直用的import 和 export

是这样的,
我是指在编译成js后,这个exportsmodule.exports皆会是undefined

在2.x版本裡,在某個ts裡寫

export const v = 0;

Object.defineProperty( exports, 'v', get(){ return 999 } )

这样是成立的,

但在3.8版本中,这样就会出错了

稍为研究一下,我想这个应该是无解了
目前专案下的temp资料夹里可以找到导入的方法
里面可以看到是用systemjs来导入的

image

没能力处理这一块,只能想别的办法变通了