Skip to content

Commit 91d1874

Browse files
committed
fix: dont require json loader for webpack
1 parent d278cec commit 91d1874

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

addon/__dev__/warnOnMissingDependencies.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

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

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

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

2323
throw new Error(str);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nano-css",
3-
"version": "1.12.0",
3+
"version": "1.15.0",
44
"description": "Smallest 5th gen CSS-in-JS library",
55
"main": "index.js",
66
"unpkg": "dist/nano-css.umd.min.js",

0 commit comments

Comments
 (0)