mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 12:12:54 +01:00
feat: reduce framer-motion bundle size
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { motion } from "framer-motion";
|
||||
import { m as motion } from "framer-motion";
|
||||
import * as Rebass from "rebass";
|
||||
|
||||
export default {
|
||||
|
||||
@@ -8,12 +8,18 @@ import App from "./App";
|
||||
import * as serviceWorker from "./serviceWorker";
|
||||
import Modal from "react-modal";
|
||||
import { db } from "./common";
|
||||
import { MotionConfig, AnimationFeature } from "framer-motion";
|
||||
|
||||
db.init()
|
||||
.catch(console.error)
|
||||
.finally(() => {
|
||||
Modal.setAppElement("#root");
|
||||
ReactDOM.render(<App />, document.getElementById("root"));
|
||||
ReactDOM.render(
|
||||
<MotionConfig features={[AnimationFeature]}>
|
||||
<App />
|
||||
</MotionConfig>,
|
||||
document.getElementById("root")
|
||||
);
|
||||
|
||||
// If you want your app to work offline and load faster, you can change
|
||||
// unregister() to register() below. Note this comes with some pitfalls.
|
||||
|
||||
Reference in New Issue
Block a user