diff options
Diffstat (limited to 'rollup.config.js')
-rw-r--r-- | rollup.config.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/rollup.config.js b/rollup.config.js new file mode 100644 index 000000000..8038b5094 --- /dev/null +++ b/rollup.config.js @@ -0,0 +1,32 @@ +// rollup.config.js +import commonjs from 'rollup-plugin-commonjs'; +import nodeResolve from 'rollup-plugin-node-resolve'; +import json from '@rollup/plugin-json'; +import builtins from 'builtin-modules' + + +const walletCli = { + input: 'dist/node/headless/taler-wallet-cli.js', + output: { + file: 'dist/standalone/taler-wallet-cli.js', + format: 'cjs' + }, + plugins: [ + json(), + + nodeResolve({ + external: builtins, + preferBuiltins: true + }), + + commonjs({ + include: ['node_modules/**', 'dist/node/**'], + extensions: [ '.js' ], + ignoreGlobal: false, // Default: false + sourceMap: false, + ignore: [ 'taler-wallet' ] + }) + ] +}; + +export default [walletCli]; |