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 775fd8e commit 7f99437Copy full SHA for 7f99437
lib/core.js
@@ -1,9 +1,7 @@
1
'use strict';
2
3
var isCoreModule = require('is-core-module');
4
-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'))));
+var data = require('./core.json');
7
8
var core = {};
9
for (var mod in data) { // eslint-disable-line no-restricted-syntax
0 commit comments