-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
enhancementNew feature or requestNew feature or request
Description
现在的代码是这样的:
if (skr.features.foo) {
// 代码
}
console.log(skr.build.target);
模块化以后,期望是这样:
import {foo} from '@skr/features';
import {target} from '@skr/build';
if (foo) {
// 代码
}
console.log(target);
这个在SWC中可以用constModules搞定,但其它编译方案不知道有没有替代的
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request