- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 18
refactor: apply webpack defaults #21
Conversation
| Codecov Report
 @@            Coverage Diff            @@
##             master      #21   +/-   ##
=========================================
  Coverage          ?   83.33%           
=========================================
  Files             ?        2           
  Lines             ?        6           
  Branches          ?        0           
=========================================
  Hits              ?        5           
  Misses            ?        1           
  Partials          ?        0
 Continue to review full report at Codecov. 
 | 
        
          
                src/index.js
              
                Outdated
          
        
      |  | ||
| function Json5Plugin(source) { | ||
| function Json5Loader(source) { | ||
| if (this.cacheable) { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.cacheable can be dropped I think.
        
          
                src/index.js
              
                Outdated
          
        
      | throw new Error('Error using JSON5 parsing'); | ||
| } | ||
|  | ||
| this.values = [value]; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be dropped aswell, if I remember right (webpack =< v0.6 or something like that :))
        
          
                src/index.js
              
                Outdated
          
        
      | import JSON5 from 'json5'; | ||
|  | ||
| function Json5Loader(source) { | ||
| if (this.cacheable) { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed in webpack 2
        
          
                package.json
              
                Outdated
          
        
      | "main": "dist/cjs.js", | ||
| "files": [ | ||
| "dist" | ||
| ], | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"repository": {
    "type": "git",
    "url": "git+https://github.com/webpack-contrib/json5-loader.git"
  },
  "bugs": {
    "url": "https://github.com/webpack-contrib/json5-loader/issues"
  },
  "homepage": "https://webpack.js.org",
Somewhere 😛
45f07ed    to
    99edde2      
    Compare
  
    
Intended to be merged & released as a part of
1.0.0on a betadist-tagonce this has been finished and properly tested.BREAKING CHANGE:
Enforces NodeJS > 4.3 via engines
Closes #20