Skip to content

Commit

Permalink
fix: dont require json loader for webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 30, 2018
1 parent d278cec commit 91d1874
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addon/__dev__/warnOnMissingDependencies.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var pkg = require('../../package.json');
var pkgName = 'nano-css';

module.exports = function warnOnMissingDependencies (addon, renderer, deps) {
var missing = [];
Expand All @@ -17,7 +17,7 @@ module.exports = function warnOnMissingDependencies (addon, renderer, deps) {
var str = 'Addon "' + addon + '" is missing the following dependencies:';

for (var j = 0; j < missing.length; j++) {
str += '\n require("' + pkg.name + '/addon/' + missing[j] + '").addon(nano);';
str += '\n require("' + pkgName + '/addon/' + missing[j] + '").addon(nano);';
}

throw new Error(str);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nano-css",
"version": "1.12.0",
"version": "1.15.0",
"description": "Smallest 5th gen CSS-in-JS library",
"main": "index.js",
"unpkg": "dist/nano-css.umd.min.js",
Expand Down

0 comments on commit 91d1874

Please sign in to comment.