Last active
December 16, 2021 17:26
-
-
Save kalepail/f259b35345354ad1cf7cb99cb40a872c to your computer and use it in GitHub Desktop.
txFunction-rollup.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import resolve from '@rollup/plugin-node-resolve' | |
import babel from '@rollup/plugin-babel' | |
import { terser } from 'rollup-plugin-terser' | |
import cleaner from 'rollup-plugin-cleaner' | |
import multiInput from 'rollup-plugin-multi-input'; | |
export default { | |
input: 'src/**/txFunction.js', | |
output: { | |
dir: 'dist', | |
format: 'cjs', | |
exports: 'default' | |
}, | |
plugins: [ | |
cleaner({ | |
targets: ['./dist/'] | |
}), | |
multiInput(), | |
resolve({ | |
preferBuiltins: true | |
}), | |
babel({ | |
babelHelpers: 'bundled' | |
}), | |
terser(), | |
], | |
external: [ | |
'lodash', | |
'bignumber.js', | |
'stellar-sdk', | |
'node-fetch', | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment