File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ class BabelPluginExtractImportsAndExports {
2222 const { start} = path . node
2323 nodes . push ( { type : 'export' , start} )
2424 } ,
25+ ExportAllDeclaration ( path ) {
26+ const { start} = path . node
27+ nodes . push ( { type : 'export' , start} )
28+ } ,
2529 ImportDeclaration ( path ) {
2630 const { start} = path . node
2731
Original file line number Diff line number Diff line change @@ -35,6 +35,17 @@ Array [
3535]
3636` ;
3737
38+ exports [` Handles export all 1` ] = `
39+ Array [
40+ Object {
41+ " type" : " export" ,
42+ " value" : Array [
43+ " export * from './foo'" ,
44+ ],
45+ } ,
46+ ]
47+ ` ;
48+
3849exports [` Handles multiline default exports 1` ] = `
3950Array [
4051 Object {
Original file line number Diff line number Diff line change @@ -25,5 +25,9 @@ module.exports = [
2525 {
2626 description : 'Handles multiline default exports' ,
2727 mdx : [ 'export default props => (' , ' <main {...props} />' , ')' ] . join ( '\n' )
28+ } ,
29+ {
30+ description : 'Handles export all' ,
31+ mdx : [ "export * from './foo'" ]
2832 }
2933]
You can’t perform that action at this time.
0 commit comments