Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Commit

Permalink
fix: rollup setup
Browse files Browse the repository at this point in the history
  • Loading branch information
marudor committed Sep 5, 2019
1 parent afaf418 commit 7b3fc6c
Show file tree
Hide file tree
Showing 7 changed files with 158 additions and 19 deletions.
7 changes: 5 additions & 2 deletions build/rollup.config.base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import typescript from 'rollup-plugin-typescript2'

export default {
input: 'dist/esm/index.js',
plugins: [],
input: 'src/index.ts',
plugins: [typescript()],
external: ['vue-class-component']
}
4 changes: 4 additions & 0 deletions build/rollup.config.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const config = Object.assign({}, base, {
file: 'dist/vue-states.min.js',
format: 'iife',
name: 'VueStates',
exports: 'named',
globals: {
'vue-class-component': 'vueClassComponent'
}
},
})

Expand Down
1 change: 1 addition & 0 deletions build/rollup.config.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const config = Object.assign({}, base, {
file: 'dist/vue-states.esm.js',
format: 'es',
name: 'VueStates',
exports: 'named',
},
})

Expand Down
4 changes: 4 additions & 0 deletions build/rollup.config.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const config = Object.assign({}, base, {
file: 'dist/vue-states.umd.js',
format: 'umd',
name: 'VueStates',
exports: 'named',
globals: {
'vue-class-component': 'vueClassComponent'
}
},
})

Expand Down
152 changes: 138 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7b3fc6c

Please sign in to comment.