farrow-js / farrow

A Type-Friendly Web Framework for Node.js
https://www.farrowjs.com
MIT License
770 stars 37 forks source link

Feature request: 提供 ES5 产物 #157

Closed xuchaobei closed 2 years ago

xuchaobei commented 2 years ago

现在 farrow 下的所有包的产物还是 ES6 语法产物,导致依赖 farrow 包时,出于兼容性考虑,需要将 farrow 相关包进行二次编译为 ES5 语法。

dist/ 路径下直接提供 ES5 产物是不是更合适些呢?

image

github-actions[bot] commented 2 years ago

Thank feedback. We will check it later:-)

Lucifier129 commented 2 years ago

@tqma113 帮忙看看是不是 tsconfig.json 的 target 没配好?

tqma113 commented 2 years ago

"target": "ES6" 可能是这个导致的,我改成 es5

tqma113 commented 2 years ago

https://www.npmjs.com/package/farrow-pipeline/v/1.11.4