Skip to content

Commit

Permalink
build(rollup): update rollup to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
themustafaomar committed Jun 15, 2021
1 parent c2fde76 commit b8cc824
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
"@babel/preset-env",
{
"loose": true,
"modules": false,
"targets": {
"ie": 9
}
"modules": false
}
]
]
Expand Down
11 changes: 11 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
>= 1%
last 1 major version
not dead
Chrome >= 45
Firefox >= 38
Edge >= 12
Explorer >= 9
iOS >= 9
Safari >= 9
Android >= 4.4
Opera >= 30
6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import resolve from '@rollup/plugin-node-resolve'
import { terser } from 'rollup-plugin-terser'
import babel from 'rollup-plugin-babel'
import babel from '@rollup/plugin-babel'
import autoprefixer from 'autoprefixer'
import scss from 'rollup-plugin-scss'
import postcss from 'postcss'
Expand All @@ -26,7 +26,7 @@ module.exports = [
},
plugins: [
resolve(),
babel({ exclude: 'node_modules/**' }),
babel({ babelHelpers: 'bundled' }),
scss(scssOptions('jsvectormap'))
]
},
Expand All @@ -40,7 +40,7 @@ module.exports = [
},
plugins: [
resolve(),
babel({ exclude: 'node_modules/**' }),
babel({ babelHelpers: 'bundled' }),
scss(scssOptions('jsvectormap.min', 'compressed'))
]
}
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const path = require('path')

module.exports = {
devtool: 'none',
mode: 'development',
devtool: 'eval',
target: 'node',
entry: {
jsvectormap: './src/js/JsVectorMap.js',
Expand Down

0 comments on commit b8cc824

Please sign in to comment.