Skip to content

Commit 0ed2d5f

Browse files
committed
🔁: add decimal literal check for constant export capturing
1 parent 7401372 commit 0ed2d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lively.source-transform/babel/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ function insertCapturesForImportAndExportDeclarations (path, options) {
640640
ExportDefaultDeclaration (path) {
641641
const stmt = path.node;
642642
if (!stmt.declaration) return;
643-
if (stmt.declaration.type.match(/StringLiteral|NumericLiteral/)) {
643+
if (stmt.declaration.type.match(/StringLiteral|NumericLiteral|DecimalLiteral/)) {
644644
// default export of an unnamed primitive value, i.e.
645645
// "export default "foo"", "export default 27;"
646646
const decl = stmt.declaration;

0 commit comments

Comments
 (0)