Skip to content

Commit

Permalink
chore: switch back to babel instead of buble
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed May 10, 2019
1 parent ac47f6d commit 15a19d9
Show file tree
Hide file tree
Showing 5 changed files with 6,453 additions and 5,215 deletions.
8 changes: 4 additions & 4 deletions build/rollup.config.base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import buble from 'rollup-plugin-buble'
import babel from 'rollup-plugin-babel'
import resolve from 'rollup-plugin-node-resolve'
import vue from 'rollup-plugin-vue'
import cjs from 'rollup-plugin-commonjs'
Expand All @@ -17,7 +17,7 @@ export default {
mainFields: ['module', 'jsnext', 'browser'],
}),
cjs(),
// eslint(),
// eslint(),
css({ output: (style) => {
const file = require.resolve('vue-resize/dist/vue-resize.css')
style += fs.readFileSync(file, { encoding: 'utf8' })
Expand All @@ -30,8 +30,8 @@ export default {
isProduction: true,
},
}),
buble({
objectAssign: 'Object.assign',
babel({
extensions: ['.js', '.jsx', '.es6', '.es', '.mjs', '.vue'],
}),
replace({
VERSION: JSON.stringify(config.version),
Expand Down
5 changes: 5 additions & 0 deletions build/rollup.config.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ const config = Object.assign({}, base, {
globals: {
'vue': 'Vue',
},
external: [
'scrollparent',
'vue-observe-visibility',
'vue-resize',
],
},
})

Expand Down
Loading

0 comments on commit 15a19d9

Please sign in to comment.