syndicate-js/packages/core/rollup.config.js

23 lines
642 B
JavaScript
Raw Normal View History

2021-12-01 16:24:29 +00:00
/// SPDX-License-Identifier: GPL-3.0-or-later
2024-02-03 14:59:22 +00:00
/// SPDX-FileCopyrightText: Copyright © 2016-2024 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
2021-12-01 16:24:29 +00:00
2021-01-25 21:15:02 +00:00
import { SyndicateRollup } from '../../rollup.js';
const r = new SyndicateRollup('syndicate', { globalName: 'Syndicate' });
2021-01-17 13:14:02 +00:00
export default [
2021-01-25 21:15:02 +00:00
r.config('lib/index.js', r.umd, {
external: ['@preserves/core', 'crypto'],
2021-01-25 21:15:02 +00:00
output: {
globals: {
'crypto': 'crypto',
'@preserves/core': 'Preserves',
2021-01-25 21:15:02 +00:00
},
},
}),
r.config('lib/index.js', r.es6, {
external: ['@preserves/core'],
2021-01-25 21:15:02 +00:00
resolve: {
moduleDirectories: ['stubs', 'node_modules'],
},
}),
2021-01-17 13:14:02 +00:00
];