Revert "build/*.js: set `sourceType` to module."

This reverts commit b442ce3130.
This commit is contained in:
XhmikosR 2018-11-28 13:03:28 +02:00
parent 11da160114
commit 05dfae3146
8 changed files with 15 additions and 1 deletions

View File

@ -4,7 +4,7 @@
"node": true "node": true
}, },
"parserOptions": { "parserOptions": {
"sourceType": "module" "sourceType": "script"
}, },
"extends": "../.eslintrc.json", "extends": "../.eslintrc.json",
"rules": { "rules": {

View File

@ -1,3 +1,5 @@
'use strict'
const path = require('path') const path = require('path')
const pkg = require(path.resolve(__dirname, '../package.json')) const pkg = require(path.resolve(__dirname, '../package.json'))
const year = new Date().getFullYear() const year = new Date().getFullYear()

View File

@ -5,6 +5,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
'use strict'
const path = require('path') const path = require('path')
const rollup = require('rollup') const rollup = require('rollup')
const babel = require('rollup-plugin-babel') const babel = require('rollup-plugin-babel')

View File

@ -7,6 +7,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
'use strict'
const fs = require('fs') const fs = require('fs')
const path = require('path') const path = require('path')
const sh = require('shelljs') const sh = require('shelljs')

View File

@ -10,6 +10,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
'use strict'
const crypto = require('crypto') const crypto = require('crypto')
const fs = require('fs') const fs = require('fs')
const path = require('path') const path = require('path')

View File

@ -1,3 +1,5 @@
'use strict'
module.exports = (ctx) => ({ module.exports = (ctx) => ({
map: ctx.file.dirname.includes('examples') ? false : { map: ctx.file.dirname.includes('examples') ? false : {
inline: false, inline: false,

View File

@ -1,3 +1,5 @@
'use strict'
const path = require('path') const path = require('path')
const babel = require('rollup-plugin-babel') const babel = require('rollup-plugin-babel')
const resolve = require('rollup-plugin-node-resolve') const resolve = require('rollup-plugin-node-resolve')

View File

@ -7,6 +7,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
'use strict'
const childProcess = require('child_process') const childProcess = require('child_process')
const vnu = require('vnu-jar') const vnu = require('vnu-jar')