mirror of
				https://github.com/mdbootstrap/mdb-ui-kit.git
				synced 2025-10-31 16:07:53 +03:00 
			
		
		
		
	[skip ci] switch back to the original way of always including babel-polyfill
This commit is contained in:
		
							parent
							
								
									82e426917a
								
							
						
					
					
						commit
						f4fa502bd4
					
				|  | @ -3,7 +3,7 @@ import Clipboard from 'clipboard' | ||||||
| import anchors from 'anchor-js' | import anchors from 'anchor-js' | ||||||
| 
 | 
 | ||||||
| // import all the bmd code
 | // import all the bmd code
 | ||||||
| import '../../../../js/index-iife' // eslint-disable-line no-unused-vars
 | import '../../../../js/index' // eslint-disable-line no-unused-vars
 | ||||||
| 
 | 
 | ||||||
| class Application { | class Application { | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -33,7 +33,7 @@ let namedExports = {} | ||||||
| //namedExports[`${node_modules}/anchor-js/anchor.js`] = ['AnchorJS']
 | //namedExports[`${node_modules}/anchor-js/anchor.js`] = ['AnchorJS']
 | ||||||
| 
 | 
 | ||||||
| const rollupConfig = { | const rollupConfig = { | ||||||
|   debug: true, |   debug: false, | ||||||
|   options: { |   options: { | ||||||
|     moduleName: 'BMD', |     moduleName: 'BMD', | ||||||
|     external: [ |     external: [ | ||||||
|  | @ -88,9 +88,6 @@ const js = new Aggregate(gulp, 'js', | ||||||
|         } |         } | ||||||
|       }), |       }), | ||||||
|       new RollupIife(gulp, preset, rollupConfig, { |       new RollupIife(gulp, preset, rollupConfig, { | ||||||
|         source: { |  | ||||||
|           glob: 'index-iife.js' |  | ||||||
|         }, |  | ||||||
|         options: { |         options: { | ||||||
|           dest: 'bootstrap-material-design.iife.js' |           dest: 'bootstrap-material-design.iife.js' | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  | @ -1,17 +0,0 @@ | ||||||
| /* |  | ||||||
|  * This is the iife compilation entry point - only used for the build. |  | ||||||
|  */ |  | ||||||
| import 'babel-polyfill/dist/polyfill' |  | ||||||
| 
 |  | ||||||
| // if we wanted to import/export global $, we would do it like this:
 |  | ||||||
| // import $ from 'jquery'
 |  | ||||||
| // export {$}
 |  | ||||||
| 
 |  | ||||||
| import './index' |  | ||||||
| 
 |  | ||||||
| // if we used a page global `var onReady = []`, we could then in-page do onReady.push(function(){ /* my init fn */}) and exec them here
 |  | ||||||
| // $(() => {
 |  | ||||||
| //   for (let fn of onReady) {
 |  | ||||||
| //     fn()
 |  | ||||||
| //   }
 |  | ||||||
| // })
 |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
|  * |  * | ||||||
|  * at your application entry point.  This is necessary for browsers that do not yet support some ES2015 runtime necessities such as Symbol.  We do this in `index-iife.js` for our iife rollup bundle. |  * at your application entry point.  This is necessary for browsers that do not yet support some ES2015 runtime necessities such as Symbol.  We do this in `index-iife.js` for our iife rollup bundle. | ||||||
|  */ |  */ | ||||||
|  | import 'babel-polyfill' | ||||||
| import 'bootstrap' | import 'bootstrap' | ||||||
| 
 | 
 | ||||||
| // invalidComponentMatches is currently disabled due to https://github.com/rollup/rollup/issues/428#issuecomment-170066452
 | // invalidComponentMatches is currently disabled due to https://github.com/rollup/rollup/issues/428#issuecomment-170066452
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user