mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
18 lines
412 B
JavaScript
18 lines
412 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',
|
|
name: 'TurndownService',
|
|
output: config.output,
|
|
external: ['jsdom'],
|
|
plugins: [
|
|
commonjs(),
|
|
replace({ 'process.browser': JSON.stringify(!!config.browser) }),
|
|
resolve(),
|
|
],
|
|
};
|
|
}
|