Skip to content

Conversation

@ImSwordTooth
Copy link
Contributor

No description provided.

transform(code: string, id: string) {
// 正式环境 && 入口文件
if (id.endsWith('main.js') && process.env.NODE_ENV === 'production') { // 在代码开头注入 import 语句
if (id.endsWith('main.tsx') && process.env.NODE_ENV === 'production') { // 在代码开头注入 import 语句
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

意外的没加上,可能某一次回滚的时候给弄错了,这回加上了

"types": "./dist/index.d.ts"
}
},
"./dist/style.css": "./dist/style.css"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里也是一样,这回给补充好了

Copy link
Owner

@sunxfancy sunxfancy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有发现问题,感谢提交

@sunxfancy sunxfancy merged commit d7df9c5 into sunxfancy:dev May 22, 2025
2 checks passed
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