-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This does not represent any functional change to the behavior of the library. Since this component is getting reasonably complex, this diff adds bundling of files via Webpack. I have broken off a first small piece into geometry.js just as an example, and we should continue to split things up further. Notes: - Our webpack config emits a umd compatible module. Currently in master we only support es6 style modules. - See the notes in ./copy-to-example.sh to see how we are using the dist of this lib in the example app - Some useful resources: https://webpack.js.org/guides/author-libraries/ and https://github.com/kalcifer/webpack-library-example
- Loading branch information
1 parent
30ba002
commit 742924a
Showing
11 changed files
with
7,865 additions
and
4,947 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
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,9 @@ | ||
#!/bin/bash | ||
|
||
# This is a hack to work around limitations in create-react-app | ||
# E.g.: https://github.com/facebook/create-react-app/issues/3883 | ||
# We completely copy over the dist of this library into the ./example folder's node_modules | ||
|
||
mkdir -p example/node_modules/react-map-interaction/dist | ||
cp dist/react-map-interaction.js example/node_modules/react-map-interaction/dist | ||
cp package.json example/node_modules/react-map-interaction/ |
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 @@ | ||
SKIP_PREFLIGHT_CHECK=true |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.