-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react): export utility components from a separate index (#889)
Using commonjs exports and exporting them from the main index means that if a user is importing the components into a bundler, the bundler will also try to bundle the main adapter code, which is not meant for bundling and will error out.
- Loading branch information
1 parent
7acc0c4
commit 00ca0ec
Showing
9 changed files
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const PathProvider = require('./path-provider'); | ||
|
||
module.exports = { | ||
PathProvider: PathProvider, | ||
PathContext: PathProvider.PathContext, | ||
usePath: PathProvider.usePath, | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
'use strict'; | ||
|
||
const { PathProvider } = require('./src/components'); | ||
|
||
module.exports = require('./src/adapter'); | ||
module.exports.PathProvider = PathProvider; | ||
module.exports.PathContext = PathProvider.PathContext; | ||
module.exports.usePath = PathProvider.usePath; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.