diff options
author | Johann-S <johann.servoire@gmail.com> | 2018-10-14 14:59:51 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-10-20 15:32:09 +0300 |
commit | c08652cfe84051184570d704d3a0904e8d01358c (patch) | |
tree | 789d1a191cfd9fbc6632b564d756eae42cf9cd40 /build/rollup.config.js | |
parent | caefd7046372e954d21550bbdadcabf98b2a86f0 (diff) |
swipe left/right without hammerjs
Diffstat (limited to 'build/rollup.config.js')
-rw-r--r-- | build/rollup.config.js | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/build/rollup.config.js b/build/rollup.config.js index 72e3951fa6..c8acf7a9e9 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -1,13 +1,12 @@ -const path = require('path') -const babel = require('rollup-plugin-babel') -const resolve = require('rollup-plugin-node-resolve') -const commonjs = require('rollup-plugin-commonjs') -const banner = require('./banner.js') +const path = require('path') +const babel = require('rollup-plugin-babel') +const resolve = require('rollup-plugin-node-resolve') +const banner = require('./banner.js') const BUNDLE = process.env.BUNDLE === 'true' -let fileDest = 'bootstrap.js' -const external = ['jquery', 'hammerjs', 'popper.js'] +let fileDest = 'bootstrap.js' +const external = ['jquery', 'popper.js'] const plugins = [ babel({ exclude: 'node_modules/**', // Only transpile our source code @@ -22,22 +21,15 @@ const plugins = [ ] const globals = { jquery: 'jQuery', // Ensure we use jQuery which is always available even in noConflict mode - hammerjs: 'Hammer', 'popper.js': 'Popper' } if (BUNDLE) { fileDest = 'bootstrap.bundle.js' - // We just keep jQuery as external - external.length = 1 + // Remove last entry in external array to bundle Popper + external.pop() delete globals['popper.js'] - delete globals.hammerjs - plugins.push( - commonjs({ - include: 'node_modules/**' - }), - resolve() - ) + plugins.push(resolve()) } module.exports = { |