fix resolution when linking

This commit is contained in:
Pooya Parsa 2020-11-02 13:12:39 +01:00
parent 87df0ac986
commit 54bb617474

View File

@ -82,6 +82,11 @@ export const getRollupConfig = (config) => {
options.plugins.push(resolve({
extensions,
preferBuiltins: true,
rootDir: config.rootDir,
// https://www.npmjs.com/package/resolve
customResolveOptions: {
basedir: config.rootDir
},
mainFields: ['main'] // Force resolve CJS (@vue/runtime-core ssrUtils)
}))