mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
23 lines
466 B
JavaScript
23 lines
466 B
JavaScript
|
import commonjs from '@rollup/plugin-commonjs';
|
||
|
import replace from '@rollup/plugin-replace';
|
||
|
import resolve from '@rollup/plugin-node-resolve';
|
||
|
|
||
|
export default function(config) {
|
||
|
return {
|
||
|
input: 'src/turndown.js',
|
||
|
output: {
|
||
|
name: 'TurndownService',
|
||
|
...config.output,
|
||
|
},
|
||
|
external: ['jsdom'],
|
||
|
plugins: [
|
||
|
commonjs(),
|
||
|
replace({
|
||
|
'process.browser': JSON.stringify(!!config.browser),
|
||
|
preventAssignment: true,
|
||
|
}),
|
||
|
resolve(),
|
||
|
],
|
||
|
};
|
||
|
}
|