"imports"


// package.json
{
  "imports": {
    "#dep": {
      "node": "dep-node-native",
      "default": "./dep-polyfill.js"
    }
  },
  "dependencies": {
    "dep-node-native": "^1.0.0"
  }
} 

导入字段中的条目必须是以 # 开头的字符串。

¥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.