mirror of
https://github.com/yjs/yjs.git
synced 2025-12-14 18:57:45 +01:00
30 lines
596 B
JavaScript
30 lines
596 B
JavaScript
export default [{
|
|
// cjs output
|
|
input: {
|
|
yjs: './src/index.js',
|
|
testHelper: './tests/testHelper.js',
|
|
internals: './src/internals.js'
|
|
},
|
|
output: {
|
|
dir: 'dist',
|
|
format: 'cjs',
|
|
entryFileNames: '[name].cjs',
|
|
sourcemap: true
|
|
},
|
|
external: id => /^(lib0|@y)\//.test(id)
|
|
}, {
|
|
// esm output
|
|
input: {
|
|
yjs: './src/index.js',
|
|
testHelper: './tests/testHelper.js',
|
|
internals: './src/internals.js'
|
|
},
|
|
output: {
|
|
dir: 'dist',
|
|
format: 'esm',
|
|
entryFileNames: '[name].mjs',
|
|
sourcemap: true
|
|
},
|
|
external: id => /^(lib0|@y)\//.test(id)
|
|
}]
|