mirror of https://github.com/vuejs/vue.git
				
				
				
			remove vue.common.js (just use umd build)
This commit is contained in:
		
							parent
							
								
									8609d4aafb
								
							
						
					
					
						commit
						599e38edb0
					
				| 
						 | 
					@ -19,26 +19,8 @@ var main = fs
 | 
				
			||||||
  .replace(/Vue\.version = '[\d\.]+'/, "Vue.version = '" + version + "'")
 | 
					  .replace(/Vue\.version = '[\d\.]+'/, "Vue.version = '" + version + "'")
 | 
				
			||||||
fs.writeFileSync('src/index.js', main)
 | 
					fs.writeFileSync('src/index.js', main)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// CommonJS build.
 | 
					// Dev build
 | 
				
			||||||
// this is used as the "main" field in package.json
 | 
					 | 
				
			||||||
// and used by bundlers like Webpack and Browserify.
 | 
					 | 
				
			||||||
rollup.rollup({
 | 
					rollup.rollup({
 | 
				
			||||||
  entry: 'src/index.js',
 | 
					 | 
				
			||||||
  plugins: [
 | 
					 | 
				
			||||||
    babel({
 | 
					 | 
				
			||||||
      loose: 'all'
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
  ]
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
.then(function (bundle) {
 | 
					 | 
				
			||||||
  return write('dist/vue.common.js', bundle.generate({
 | 
					 | 
				
			||||||
    format: 'cjs',
 | 
					 | 
				
			||||||
    banner: banner
 | 
					 | 
				
			||||||
  }).code)
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
// Standalone Dev Build
 | 
					 | 
				
			||||||
.then(function () {
 | 
					 | 
				
			||||||
  return rollup.rollup({
 | 
					 | 
				
			||||||
  entry: 'src/index.js',
 | 
					  entry: 'src/index.js',
 | 
				
			||||||
  plugins: [
 | 
					  plugins: [
 | 
				
			||||||
    replace({
 | 
					    replace({
 | 
				
			||||||
| 
						 | 
					@ -56,9 +38,8 @@ rollup.rollup({
 | 
				
			||||||
    moduleName: 'Vue'
 | 
					    moduleName: 'Vue'
 | 
				
			||||||
  }).code)
 | 
					  }).code)
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
})
 | 
					 | 
				
			||||||
.then(function () {
 | 
					.then(function () {
 | 
				
			||||||
  // Standalone Production Build
 | 
					  // Production build
 | 
				
			||||||
  return rollup.rollup({
 | 
					  return rollup.rollup({
 | 
				
			||||||
    entry: 'src/index.js',
 | 
					    entry: 'src/index.js',
 | 
				
			||||||
    plugins: [
 | 
					    plugins: [
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| 
						 | 
					@ -9,9 +9,8 @@
 | 
				
			||||||
    "browser",
 | 
					    "browser",
 | 
				
			||||||
    "framework"
 | 
					    "framework"
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  "main": "dist/vue.common.js",
 | 
					  "main": "dist/vue.js",
 | 
				
			||||||
  "files": [
 | 
					  "files": [
 | 
				
			||||||
    "dist/vue.common.js",
 | 
					 | 
				
			||||||
    "dist/vue.js",
 | 
					    "dist/vue.js",
 | 
				
			||||||
    "dist/vue.min.js",
 | 
					    "dist/vue.min.js",
 | 
				
			||||||
    "src"
 | 
					    "src"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue