Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

refactor: apply webpack defaults #21

Merged
merged 6 commits into from
May 1, 2017
Merged

Conversation

joshwiens
Copy link
Member

Intended to be merged & released as a part of 1.0.0 on a beta dist-tag once this has been finished and properly tested.

BREAKING CHANGE:

Enforces NodeJS > 4.3 via engines

Closes #20

@joshwiens joshwiens self-assigned this Apr 9, 2017
@codecov
Copy link

codecov bot commented Apr 9, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@9692a99). Click here to learn what that means.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #21   +/-   ##
=========================================
  Coverage          ?   83.33%           
=========================================
  Files             ?        2           
  Lines             ?        6           
  Branches          ?        0           
=========================================
  Hits              ?        5           
  Misses            ?        1           
  Partials          ?        0
Impacted Files Coverage Δ
src/cjs.js 0% <0%> (ø)
src/index.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9692a99...134916c. Read the comment docs.

src/index.js Outdated
@@ -4,7 +4,7 @@
*/
import JSON5 from 'json5';

function Json5Plugin(source) {
function Json5Loader(source) {
if (this.cacheable) {
Copy link
Contributor

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];
Copy link
Member

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) {
Copy link
Member

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"
],
Copy link
Member

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 😛

@joshwiens joshwiens force-pushed the d3viant0ne-WebpackDefaults branch from 45f07ed to 99edde2 Compare May 1, 2017 19:26
@joshwiens joshwiens merged commit 688b7a2 into master May 1, 2017
@joshwiens joshwiens deleted the d3viant0ne-WebpackDefaults branch May 1, 2017 19:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants