Skip to content

Commit

Permalink
node 10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Jan 1, 2022
1 parent a2e121d commit 685d5d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/options.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict'

const { createRequire } = require('module')
const { createRequire, createRequireFromPath } = require('module')
const path = require('path')
const req = createRequire(path.resolve(process.cwd(), '_'))
const req = (createRequire || createRequireFromPath)(path.resolve(process.cwd(), '_'))

/**
* Load Options
Expand Down
4 changes: 2 additions & 2 deletions src/plugins.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict'

const { createRequire } = require('module')
const { createRequire, createRequireFromPath } = require('module')
const path = require('path')
const req = createRequire(path.resolve(process.cwd(), '_'))
const req = (createRequire || createRequireFromPath)(path.resolve(process.cwd(), '_'))

/**
* Plugin Loader
Expand Down

0 comments on commit 685d5d7

Please sign in to comment.