File tree Expand file tree Collapse file tree 3 files changed +52
-3
lines changed Expand file tree Collapse file tree 3 files changed +52
-3
lines changed Original file line number Diff line number Diff line change 1+ {
2+   "presets" : [
3+     " es2015" 
4+   ],
5+   "plugins" : [
6+   ]
7+ }
Original file line number Diff line number Diff line change 33  "version" : " 1.0.0"  ,
44  "description" : " Benchmark for simulacra.js"  ,
55  "scripts" : {
6-     "build-dev" : " browserify src/main.js -o dist/main .js"  ,
7-     "build-prod" : " browserify src/main.js -o dist/main .js" 
6+     "build-dev" : " webpack -w -d -c webpack.config .js"  ,
7+     "build-prod" : " webpack -p -c webpack.config .js" 
88  },
99  "keywords" : [
1010    " simulacra" 
1717    "url" : " https://github.com/krausest/js-framework-benchmark.git" 
1818  },
1919  "devDependencies" : {
20-     "browserify" : " ^13.1.1" 
20+     "babel-core" : " 6.14.0"  ,
21+     "babel-loader" : " 6.2.5"  ,
22+     "babel-preset-es2015" : " 6.14.0"  ,
23+     "babel-preset-stage-0" : " 6.5.0"  ,
24+     "webpack" : " 1.13.2" 
2125  },
2226  "dependencies" : {
2327    "simulacra" : " ^1.5.5" 
Original file line number Diff line number Diff line change 1+ 'use strict' ; 
2+ 
3+ var  cache  =  { } ; 
4+ var  loaders  =  [ 
5+ 	{ 
6+ 		test : / \. e s 6 \. j s $ / , 
7+ 		loader : 'babel-loader' , 
8+ 		exclude : [ / n o d e _ m o d u l e s / ,  '.' ] , 
9+ 		query : { 
10+ 			presets : [ 'es2015' ,  'stage-0' ] 
11+ 		} 
12+ 	} 
13+ ] ; 
14+ var  extensions  =  [ 
15+ 	'' ,  '.js' ,  '.es6.js' 
16+ ] ; 
17+ 
18+ module . exports  =  [ { 
19+ 	cache : cache , 
20+ 	module : { 
21+ 		loaders : loaders 
22+ 	} , 
23+ 	entry : './src/main' , 
24+ 	output : { 
25+ 		path : './dist' , 
26+ 		filename : 'main.js' , 
27+ 		sourceMapFilename : "main.map" , 
28+ 	} , 
29+ 	resolve : { 
30+ 		extensions : extensions , 
31+ 		root : [ 
32+ 			__dirname , 
33+ 			__dirname  +  '/src' 
34+ 		] , 
35+ 		alias : { 
36+ 		} 
37+ 	} 
38+ } ] ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments