Skip to content

Commit

Permalink
Merge pull request #233 from iambumblehead/rm-esmockdummy
Browse files Browse the repository at this point in the history
remove esmockDummy.js
  • Loading branch information
iambumblehead authored Aug 16, 2023
2 parents 9df7b5b + 4397a2d commit e15ca38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# changelog

* 2.3.9 _pending_
* [remove esmockDummy](https://github.com/iambumblehead/esmock/pull/233)
* 2.3.8 _Aug.15.2023_
* [reuse moduleid regexp](https://github.com/iambumblehead/esmock/pull/231) replacing separately created regexps
* [remove esmockIsLoader.js](https://github.com/iambumblehead/esmock/pull/231) export from esmockLoader.js instead
Expand Down
3 changes: 0 additions & 3 deletions src/esmockDummy.js

This file was deleted.

4 changes: 3 additions & 1 deletion src/esmockLoader.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import process from 'process'
import urlDummy from './esmockDummy.js'
import esmockErr from './esmockErr.js'

const [major, minor] = process.versions.node.split('.').map(it => +it)
const isLT1612 = major < 16 || (major === 16 && minor < 12)

// ex, file:///path/to/esmockLoader.js,
// file:///c:/path/to/esmockLoader.js
const urlDummy = import.meta.url
const esmkgdefsAndAfterRe = /\?esmkgdefs=.*/
const esmkgdefsAndBeforeRe = /.*\?esmkgdefs=/
const esmkdefsRe = /#-#esmkdefs/
Expand Down

0 comments on commit e15ca38

Please sign in to comment.