aboutsummaryrefslogtreecommitdiff
path: root/rollup.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js26
1 files changed, 25 insertions, 1 deletions
diff --git a/rollup.config.js b/rollup.config.js
index 8038b5094..e520a1bd8 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -29,4 +29,28 @@ const walletCli = {
]
};
-export default [walletCli];
+const walletAndroid = {
+ input: 'dist/node/android/index.js',
+ output: {
+ file: 'dist/standalone/taler-wallet-android.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, walletAndroid];