Skip to content

Commit f3cd328

Browse files
committed
Stricter regex. Use shorthand .esmrc file in fixture.
1 parent 8bb386a commit f3cd328

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

lib/test-worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ globals.options = opts;
2828
const serializeError = require('./serialize-error');
2929

3030
(opts.require || []).forEach(x => {
31-
if (/.*std[/\\]esm[/\\]index\.js$/.test(x)) {
31+
if (/[/\\]@std[/\\]esm[/\\]index\.js$/.test(x)) {
3232
require = require(x)(module); // eslint-disable-line no-global-assign
3333
} else {
3434
require(x);

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"update-notifier": "^2.3.0"
147147
},
148148
"devDependencies": {
149-
"@std/esm": "^0.18.0",
149+
"@std/esm": "^0.19.1",
150150
"cli-table2": "^0.2.0",
151151
"codecov": "^3.0.0",
152152
"del": "^3.0.0",

test/fixture/std-esm/.esmrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"cjs": true,
3-
"esm": "js"
2+
"esm": "cjs"
43
}

0 commit comments

Comments
 (0)