Skip to content

Commit

Permalink
feat: add es5 build output
Browse files Browse the repository at this point in the history
fixes #60
  • Loading branch information
Soc Sieng authored and socsieng committed Feb 6, 2021
1 parent 03736c0 commit 5eb243b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions rollup.config.js
Expand Up @@ -53,6 +53,31 @@ export default [
external: ['react'],
plugins: [rollupJson(), typescript()],
},
{
input: 'src/button-react/index.ts',
output: [
{
file: 'src/button-react/dist/index.es5.min.js',
format: 'umd',
name: 'GooglePayButton',
globals: {
react: 'React',
},
plugins: [terser()],
},
],
external: ['react'],
plugins: [
rollupJson(),
typescript({
tsconfigOverride: {
compilerOptions: {
target: 'es5',
},
},
}),
],
},
{
input: 'src/button-react/index.ts',
output: {
Expand Down Expand Up @@ -90,6 +115,27 @@ export default [
],
plugins: [rollupJson(), typescript()],
},
{
input: 'src/button-element/index.ts',
output: [
{
file: 'src/button-element/dist/index.es5.min.js',
format: 'umd',
name: 'GooglePayButton',
plugins: [terser()],
},
],
plugins: [
rollupJson(),
typescript({
tsconfigOverride: {
compilerOptions: {
target: 'es5',
},
},
}),
],
},
{
input: 'src/button-element/index.ts',
output: {
Expand Down

0 comments on commit 5eb243b

Please sign in to comment.