mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Use one-line imports when possible. (#28467)
This commit is contained in:
parent
ff1788666f
commit
6aa475c82e
@ -5,9 +5,7 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
import {
|
||||
jQuery as $
|
||||
} from './util/index'
|
||||
import { jQuery as $ } from './util/index'
|
||||
import Data from './dom/data'
|
||||
import EventHandler from './dom/eventHandler'
|
||||
import SelectorEngine from './dom/selectorEngine'
|
||||
|
@ -5,9 +5,7 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
import {
|
||||
jQuery as $
|
||||
} from '../util/index'
|
||||
import { jQuery as $ } from '../util/index'
|
||||
import Polyfill from './polyfill'
|
||||
|
||||
/**
|
||||
|
@ -5,9 +5,7 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
import {
|
||||
getUID
|
||||
} from '../util/index'
|
||||
import { getUID } from '../util/index'
|
||||
|
||||
/* istanbul ignore next */
|
||||
const Polyfill = (() => {
|
||||
|
@ -6,9 +6,7 @@
|
||||
*/
|
||||
|
||||
import Polyfill from './polyfill'
|
||||
import {
|
||||
makeArray
|
||||
} from '../util/index'
|
||||
import { makeArray } from '../util/index'
|
||||
|
||||
/**
|
||||
* ------------------------------------------------------------------------
|
||||
|
@ -5,9 +5,7 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
import {
|
||||
jQuery as $
|
||||
} from './util/index'
|
||||
import { jQuery as $ } from './util/index'
|
||||
import Data from './dom/data'
|
||||
import SelectorEngine from './dom/selectorEngine'
|
||||
import Tooltip from './tooltip'
|
||||
|
@ -5,9 +5,7 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
import {
|
||||
makeArray
|
||||
} from './index'
|
||||
import { makeArray } from './index'
|
||||
|
||||
const uriAttrs = [
|
||||
'background',
|
||||
|
@ -1,7 +1,5 @@
|
||||
import 'popper.js'
|
||||
import {
|
||||
Tooltip
|
||||
} from '../../../dist/js/bootstrap.esm.js'
|
||||
import { Tooltip } from '../../../dist/js/bootstrap.esm.js'
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
[...document.querySelectorAll('[data-toggle="tooltip"]')]
|
||||
|
Loading…
x
Reference in New Issue
Block a user