Skip to content

Commit b8d360b

Browse files
authored
Add support for cjs custom mapping files (#178)
1 parent eb92ae9 commit b8d360b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/migration-strategy/custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function loadCustomizations(serverless, plugin) {
1212

1313
try {
1414
// support exporting a custom stack map
15-
return /\.js$/.test(customPath)
15+
return /\.c?js$/.test(customPath)
1616
? require(customPath)
1717
: serverless.utils.readFileSync(customPath);
1818
} catch (e) {

0 commit comments

Comments
 (0)