"paths": {
"src/*": [
"src/*"
],
"app/*": [
"*"
],
"components/*": [
"src/components/*"
],
"layouts/*": [
"src/layouts/*"
],
"pages/*": [
"src/pages/*"
],
"assets/*": [
"src/assets/*"
],
"boot/*": [
"src/boot/*"
],
"shared/*": [
"src/shared/*"
],
"entities/*": [
"src/entities/*"
],
"features/*": [
"src/features/*"
],
"widgets/*": [
"src/widgets/*"
],
"stores/*": [
"src/stores/*"
],
"vue$": [
"node_modules/vue/dist/vue.runtime.esm-bundler.js"
]
}
import { component } from 'my-package';
import { func } from 'libs/func.js'
/* import { func } from '../libs/func.js' если юзать относительные пути */
{
"name": "mypackage",
"exports": {
".": "./dist/index.js",
"./whatever/": "./dist/whatever/non-index.js"
}
}
"exports": {
"libs": "./src/libs",
}
<в такую штуку удалилось/>