2018-11-25 03:17:00 +01:00
|
|
|
export default [{
|
2025-03-25 11:14:55 +01:00
|
|
|
// cjs output
|
|
|
|
|
input: {
|
|
|
|
|
yjs: './src/index.js',
|
|
|
|
|
testHelper: './tests/testHelper.js',
|
|
|
|
|
internals: './src/internals.js'
|
|
|
|
|
},
|
2020-01-13 07:41:31 +01:00
|
|
|
output: {
|
2025-03-25 11:14:55 +01:00
|
|
|
dir: 'dist',
|
2018-11-25 22:39:30 +01:00
|
|
|
format: 'cjs',
|
2025-04-08 20:50:20 +02:00
|
|
|
entryFileNames: '[name].cjs',
|
2023-03-22 11:02:55 +01:00
|
|
|
sourcemap: true
|
2020-01-13 07:41:31 +01:00
|
|
|
},
|
2025-03-25 11:14:55 +01:00
|
|
|
external: id => /^(lib0|y-protocols)\//.test(id)
|
2020-02-12 10:37:22 +01:00
|
|
|
}, {
|
2025-03-25 11:14:55 +01:00
|
|
|
// esm output
|
|
|
|
|
input: {
|
|
|
|
|
yjs: './src/index.js',
|
|
|
|
|
testHelper: './tests/testHelper.js',
|
|
|
|
|
internals: './src/internals.js'
|
2020-02-12 10:37:22 +01:00
|
|
|
},
|
2021-11-06 15:55:59 +01:00
|
|
|
output: {
|
2025-03-25 11:14:55 +01:00
|
|
|
dir: 'dist',
|
2021-11-06 15:55:59 +01:00
|
|
|
format: 'esm',
|
2025-04-08 20:50:20 +02:00
|
|
|
entryFileNames: '[name].mjs',
|
2020-01-13 07:41:31 +01:00
|
|
|
sourcemap: true
|
|
|
|
|
},
|
2025-03-25 11:14:55 +01:00
|
|
|
external: id => /^(lib0|y-protocols)\//.test(id)
|
2019-04-23 20:51:32 +02:00
|
|
|
}]
|