Skip to content

Commit 4a7eb4b

Browse files
committed
fix regex
1 parent a384683 commit 4a7eb4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ else {
77
window[ns] = {};
88
// https://github.com/webpack/webpack/issues/625
99
// https://webpack.js.org/guides/dependency-management/#require-context
10-
const require_tmp = require.context('..', true, /\b(array|date|http_delete|http_get_blob|http_get_buffer|http_get_json|http_get_utf8|http_head|http_patch_json|http_post_json|http_post_multipart|http_put_buffer|http_put_json|http_put_utf8|identity|ignore|fcmp|filter|format|plural|random_int|urlmod|waitcb)[^/]*(?<!\.test)\.js$/);
10+
const require_tmp = require.context('..', true, /^(?!.*(cli-apps|browser|\.d)\/).*\b(array|date|http_delete|http_get_blob|http_get_buffer|http_get_json|http_get_utf8|http_head|http_patch_json|http_post_json|http_post_multipart|http_put_buffer|http_put_json|http_put_utf8|identity|ignore|fcmp|filter|format|plural|random_int|urlmod|waitcb)[^/]*(?<!\.test)\.js$/);
1111
require_tmp.keys().forEach(function (key) {
1212
const [, basename] = key.match(/([^/]+)\.js$/);
1313
window[ns][basename] = require_tmp(key);

0 commit comments

Comments
 (0)