Skip to content

Conversation

@flyguolai
Copy link

fix: use import img from 'a/b/c.png'

update: reference for url-loader

把reference去掉然后使用include引入 d.ts 的类型定义

"esModuleInterop": true 增加了这个选项以实现 import img from './a/b/c'

在生成项目里加了ts-loader和url-loader以实现npx autojs build等命令

fix: use import img from 'a/b/c.png'

update: reference for url-loader
@ywzhaiqi
Copy link

ywzhaiqi commented May 3, 2020

这个有效。原来的 autojs create <filename> 无法使用 d.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants