We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lib/core.js
is-core-module
1 parent c2f9ce2 commit 122bb64Copy full SHA for 122bb64
lib/core.js
@@ -1,7 +1,9 @@
1
'use strict';
2
3
var isCoreModule = require('is-core-module');
4
-var data = require('./core.json');
+var path = require('path');
5
+var fs = require('fs');
6
+var data = JSON.parse(String(fs.readFileSync(path.join(path.dirname(require.resolve('is-core-module/package.json')), 'core.json'))));
7
8
var core = {};
9
for (var mod in data) { // eslint-disable-line no-restricted-syntax
0 commit comments