chore: build axios-fetch for test
This commit is contained in:
@@ -1,14 +1,23 @@
|
||||
import type { RollupOptions } from '@rollup'
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
import dts from 'rollup-plugin-dts'
|
||||
import { terser } from 'rollup-plugin-terser'
|
||||
import typescript from 'rollup-plugin-typescript2'
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
|
||||
const pkg = require('./package.json')
|
||||
|
||||
const name = 'bdcontract'
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'node_modules/@lifeomic/axios-fetch/src/index.js',
|
||||
output: {
|
||||
file: 'dist/axios-fetch.iife.js',
|
||||
format: 'iife',
|
||||
name: 'axiosFetch',
|
||||
},
|
||||
plugins: [commonjs()],
|
||||
},
|
||||
{
|
||||
input: 'src/index.ts',
|
||||
output: [
|
||||
@@ -17,12 +26,12 @@ export default [
|
||||
format: 'umd',
|
||||
name,
|
||||
sourcemap: true,
|
||||
globals:{
|
||||
"@daotl/cryptico":"cryptico",
|
||||
"@lifeomic/axios-fetch":"axiosFetch",
|
||||
"axios":"axios",
|
||||
"sm-crypto":"smCrypto"
|
||||
}
|
||||
globals: {
|
||||
'@daotl/cryptico': 'cryptico',
|
||||
'@lifeomic/axios-fetch': 'axiosFetch',
|
||||
axios: 'axios',
|
||||
'sm-crypto': 'smCrypto',
|
||||
},
|
||||
},
|
||||
{ file: `${pkg.module}`, format: 'es', sourcemap: true },
|
||||
{
|
||||
@@ -30,12 +39,12 @@ export default [
|
||||
format: 'iife',
|
||||
name,
|
||||
sourcemap: true,
|
||||
globals:{
|
||||
"@daotl/cryptico":"cryptico",
|
||||
"@lifeomic/axios-fetch":"axiosFetch",
|
||||
"axios":"axios",
|
||||
"sm-crypto":"smCrypto"
|
||||
}
|
||||
globals: {
|
||||
'@daotl/cryptico': 'cryptico',
|
||||
'@lifeomic/axios-fetch': 'axiosFetch',
|
||||
axios: 'axios',
|
||||
'sm-crypto': 'smCrypto',
|
||||
},
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
@@ -43,7 +52,8 @@ export default [
|
||||
tsconfig: 'tsconfig.build.json',
|
||||
useTsconfigDeclarationDir: true,
|
||||
}),
|
||||
terser(),commonjs()
|
||||
terser(),
|
||||
commonjs(),
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user