8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7b3f2e commit 90adb3bCopy full SHA for 90adb3b
src/shared/_build.js
@@ -16,7 +16,7 @@ fs.readdirSync( __dirname ).forEach( file => {
16
ast.body.forEach( node => {
17
if ( node.type !== 'ExportNamedDeclaration' ) return;
18
19
- const { declaration } = node;
+ const declaration = node.declaration;
20
if ( !declaration ) return;
21
22
const name = declaration.type === 'VariableDeclaration' ?
@@ -27,8 +27,7 @@ fs.readdirSync( __dirname ).forEach( file => {
27
declaration.declarations[0].init :
28
declaration;
29
30
- const { start, end } = value;
31
- declarations[ name ] = source.slice( start, end );
+ declarations[ name ] = source.slice( value.start, value.end );
32
});
33
34
0 commit comments