"imports"
- 类型: <Object>
// package.json
{
"imports": {
"#dep": {
"node": "dep-node-native",
"default": "./dep-polyfill.js"
}
},
"dependencies": {
"dep-node-native": "^1.0.0"
}
} imports 字段中的条目必须是以 # 开头的字符串。
【Entries in the imports field must be strings starting with #.】
包导入允许映射到外部包。
【Package imports permit mapping to external packages.】
此字段定义了当前包的 子路径导入。
【This field defines subpath imports for the current package.】