Skip to content

Commit 0f65b1d

Browse files
authored
Fixed bug in require.context
By not escaping the period, it has lead to multiple imports of files in my own projects, causing duplicated service errors.
1 parent fc6a9a7 commit 0f65b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ const requireModule = require.context(
245245
// Whether to look in subfolders
246246
false,
247247
// Only include .js files (prevents duplicate imports`)
248-
/.js$/
248+
/\.js$/
249249
)
250250
const servicePlugins = requireModule
251251
.keys()

0 commit comments

Comments
 (0)