use condititional exports of dependencies
This commit is contained in:
@@ -8,9 +8,9 @@ export default {
|
||||
sourcemap: true,
|
||||
paths: path => {
|
||||
if (/^lib0\//.test(path)) {
|
||||
return `lib0/dist${path.slice(4, -3)}.cjs`
|
||||
return `lib0/dist${path.slice(4)}.cjs`
|
||||
} else if (/^y-protocols\//.test(path)) {
|
||||
return `y-protocols/dist${path.slice(11, -3)}.cjs`
|
||||
return `y-protocols/dist${path.slice(11)}.cjs`
|
||||
}
|
||||
return path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user