Skip to content

Commit 90adb3b

Browse files
committed
gah node 4
1 parent d7b3f2e commit 90adb3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/shared/_build.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fs.readdirSync( __dirname ).forEach( file => {
1616
ast.body.forEach( node => {
1717
if ( node.type !== 'ExportNamedDeclaration' ) return;
1818

19-
const { declaration } = node;
19+
const declaration = node.declaration;
2020
if ( !declaration ) return;
2121

2222
const name = declaration.type === 'VariableDeclaration' ?
@@ -27,8 +27,7 @@ fs.readdirSync( __dirname ).forEach( file => {
2727
declaration.declarations[0].init :
2828
declaration;
2929

30-
const { start, end } = value;
31-
declarations[ name ] = source.slice( start, end );
30+
declarations[ name ] = source.slice( value.start, value.end );
3231
});
3332
});
3433

0 commit comments

Comments
 (0)