Skip to content

Commit

Permalink
Revert "[Refactor] deprecated lib/core.js now uses data from `is-co…
Browse files Browse the repository at this point in the history
…re-module` also"

This reverts commit 122bb64.

Fixes #297.
  • Loading branch information
ljharb committed Apr 17, 2023
1 parent 775fd8e commit 7f99437
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/core.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
'use strict';

var isCoreModule = require('is-core-module');
var path = require('path');
var fs = require('fs');
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');

var core = {};
for (var mod in data) { // eslint-disable-line no-restricted-syntax
Expand Down

0 comments on commit 7f99437

Please sign in to comment.