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 8ad553b commit 865547eCopy full SHA for 865547e
devtools/buildIndexFiles.js
@@ -28,8 +28,13 @@ componentDirs.map((directory) => {
28
directory.fileNames.map((fileName) => {
29
// Grab the file's exports.
30
let components = require(path.join(directory.path, fileName));
31
+
32
Object.keys(components).map((component) => {
- fileContents += `export { ${component} } from './${fileName}';\n`;
33
+ if (component === 'default') {
34
+ fileContents += `export { default as ${components.default.name} } from './${fileName}';\n`;
35
+ } else {
36
+ fileContents += `export { ${component} } from './${fileName}';\n`;
37
+ }
38
});
39
40
// write the index file into the directory.
0 commit comments