fix imports in esm bundle
This commit is contained in:
parent
45df311dd7
commit
18bb2d0719
@ -57,13 +57,7 @@ export default [{
|
|||||||
name: 'Y',
|
name: 'Y',
|
||||||
file: 'dist/yjs.mjs',
|
file: 'dist/yjs.mjs',
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
sourcemap: true,
|
sourcemap: true
|
||||||
paths: path => {
|
|
||||||
if (/^lib0\//.test(path)) {
|
|
||||||
return `lib0/dist/${path.slice(5, -3)}.cjs`
|
|
||||||
}
|
|
||||||
return path
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
external: id => /^lib0\//.test(id)
|
external: id => /^lib0\//.test(id)
|
||||||
}, {
|
}, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user