We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import ... from ... assert { type: 'xxx' }
我在项目中的 config.ts 里面定义了些复杂变量,使用 unplugin-auto-import 配置自动导入希望让其携带 assert {type:'macro'},编译时可以让 unplugin-macros` 将其处理成静态变量免去运行时开销。
config.ts
unplugin-auto-import
assert {type:'macro'},编译时可以让
示例代码(示例可能不准确,但大致如此):
// config.ts function createOptions() { // ... } export const userOptions= createOptions() export const selectOptions = createOptions()
支持 assert { type: 'xxx' } 格式。
assert { type: 'xxx' }
No response
The text was updated successfully, but these errors were encountered:
目前是实现不了你这个功能
Sorry, something went wrong.
No branches or pull requests
Clear and concise description of the problem
我在项目中的
config.ts
里面定义了些复杂变量,使用unplugin-auto-import
配置自动导入希望让其携带assert {type:'macro'},编译时可以让
unplugin-macros` 将其处理成静态变量免去运行时开销。示例代码(示例可能不准确,但大致如此):
Suggested solution
支持
assert { type: 'xxx' }
格式。Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: