Initial Node.js SDK v1.0.0
This commit is contained in:
27
rollup.config.js
Normal file
27
rollup.config.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
|
||||
export default [
|
||||
// ES Module build
|
||||
{
|
||||
input: 'src/index.ts',
|
||||
output: {
|
||||
file: 'dist/index.esm.js',
|
||||
format: 'es',
|
||||
sourcemap: true,
|
||||
},
|
||||
plugins: [typescript({ tsconfig: './tsconfig.json' })],
|
||||
external: ['axios', 'crypto'],
|
||||
},
|
||||
// CommonJS build
|
||||
{
|
||||
input: 'src/index.ts',
|
||||
output: {
|
||||
file: 'dist/index.js',
|
||||
format: 'cjs',
|
||||
sourcemap: true,
|
||||
exports: 'named',
|
||||
},
|
||||
plugins: [typescript({ tsconfig: './tsconfig.json' })],
|
||||
external: ['axios', 'crypto'],
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user