// this is for a Vue 3 project - not sure if that's important for the answer
// APPENDIX:
// package = npm package
// project = vue 3 project that will import the npm package
I’m building an npm package that has reusable vue components using vue-sfc-rollup.
To allow for customisation I want to give the user the ability to make a config file in the root (same level as the package.json of the project) which can then be accessed by the package.
I was hoping it would look something like this.
import config from '@/my-package-conf.js'
where @ (or other symbol) would indicate the root of the project
I assume this can be done using a relative path but that won’t be particularly easy for my implementation.
Thanks for any help you can provide!