diff --git a/.babelrc b/.babelrc index 33337e0..0f9d0c5 100644 --- a/.babelrc +++ b/.babelrc @@ -3,8 +3,7 @@ [ "@babel/preset-env", { - "modules": false, - "loose": true + "modules": false } ] ], diff --git a/.browserslistrc b/.browserslistrc index 37371cb..a2713bb 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -8,4 +8,4 @@ last 2 versions Firefox ESR not dead -not IE 9-11 \ No newline at end of file +not ie <= 8 diff --git a/rollup.config.js b/rollup.config.js index 0eda395..24f6485 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,14 +1,14 @@ -import resolve from 'rollup-plugin-node-resolve'; -import commonjs from 'rollup-plugin-commonjs'; -import babel from 'rollup-plugin-babel'; +import resolve from '@rollup/plugin-node-resolve'; +import commonjs from '@rollup/plugin-commonjs'; +import babel from '@rollup/plugin-babel'; import pkg from './package.json'; const banner = String.raw`/*! - * ____ __ ______ __________ _ _____________ ____________ + * ____ __ ______ __________ _ _____________ ____________ * / __ \/ / / / __ \/_ __/ __ \ | / / _/ ____/ | / / ____/ __ \ * / /_/ / /_/ / / / / / / / / / / | / // // __/ | | /| / / __/ / /_/ / * / ____/ __ / /_/ / / / / /_/ /| |/ // // /___ | |/ |/ / /___/ _, _/ - * /_/ /_/ /_/\____/ /_/ \____/ |___/___/_____/ |__/|__/_____/_/ |_| + * /_/ /_/ /_/\____/ /_/ \____/ |___/___/_____/ |__/|__/_____/_/ |_| * * ${pkg.name} - v${pkg.version} * ${pkg.description} @@ -21,7 +21,7 @@ const banner = String.raw`/*! export default [ { - input: 'src/js/core.js', + input: 'src/js/index.js', output: [ { name: 'photoviewer', @@ -32,7 +32,8 @@ export default [ { file: 'dist/photoviewer.common.js', banner, - format: 'cjs' + format: 'cjs', + exports: 'auto', }, { file: 'dist/photoviewer.esm.js',