-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate from tsc and webpack to vite
- Loading branch information
Showing
13 changed files
with
1,695 additions
and
3,658 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"react-share": major | ||
--- | ||
|
||
Compilation target is now ES2017 instead of ES5. The distributed files are built with Vite instead of TypeScript compiler. |
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,5 +1,4 @@ | ||
.DS_Store | ||
node_modules/ | ||
lib/ | ||
es/ | ||
dist/ | ||
*.log |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>react-share demo | Social media share buttons and share counts for React.</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/index.tsx"></script> | ||
</body> | ||
</html> |
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,11 +1,11 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import Root from './Root'; | ||
import Demo from './Demo'; | ||
import './Demo.css'; | ||
|
||
const rootElement = document.createElement('div'); | ||
|
||
if (!document.querySelector('div')) { | ||
document.body.appendChild(rootElement); | ||
} | ||
|
||
ReactDOM.render(<Root />, rootElement); | ||
ReactDOM.render( | ||
<React.StrictMode> | ||
<Demo /> | ||
</React.StrictMode>, | ||
document.getElementById('root'), | ||
); |
Oops, something went wrong.