Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2017-12-16 15:00:38 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-01-11 19:48:46 +0300
commit80d0943b95984bfaf4997d2198d467876d294bd8 (patch)
treefa2eb4c869753b6e20c771a928da460587f38fdf /build/rollup.config.js
parent6d336502c7e26c4cc5b35f1d7a19c067b774cb1f (diff)
Comply to the new rules.
Diffstat (limited to 'build/rollup.config.js')
-rw-r--r--build/rollup.config.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/build/rollup.config.js b/build/rollup.config.js
index 0b59aef652..c97e3761c1 100644
--- a/build/rollup.config.js
+++ b/build/rollup.config.js
@@ -3,16 +3,17 @@
const path = require('path')
const babel = require('rollup-plugin-babel')
const resolve = require('rollup-plugin-node-resolve')
+
const pkg = require(path.resolve(__dirname, '../package.json'))
const BUNDLE = process.env.BUNDLE === 'true'
const year = new Date().getFullYear()
let fileDest = 'bootstrap.js'
-const external = ['jquery', 'popper.js']
+const external = ['jquery', 'popper.js']
const plugins = [
babel({
- exclude: 'node_modules/**', // only transpile our source code
- externalHelpersWhitelist: [ // include only required helpers
+ exclude: 'node_modules/**', // Only transpile our source code
+ externalHelpersWhitelist: [ // Include only required helpers
'defineProperties',
'createClass',
'inheritsLoose',
@@ -21,13 +22,13 @@ const plugins = [
})
]
const globals = {
- jquery: 'jQuery', // ensure we use jQuery which is always available even in noConflict mode
+ jquery: 'jQuery', // Ensure we use jQuery which is always available even in noConflict mode
'popper.js': 'Popper'
}
if (BUNDLE) {
fileDest = 'bootstrap.bundle.js'
- // remove last entry in external array to bundle Popper
+ // Remove last entry in external array to bundle Popper
external.pop()
delete globals['popper.js']
plugins.push(resolve())