Files
yjs/rollup.config.js

30 lines
596 B
JavaScript
Raw Permalink Normal View History

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