Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE11 support #781

Merged
merged 10 commits into from
Sep 24, 2020
Merged

IE11 support #781

merged 10 commits into from
Sep 24, 2020

Conversation

mattgperry
Copy link
Collaborator

@mattgperry mattgperry commented Sep 24, 2020

Fixes #364

Some enterprise customers have a requirement to support IE11. With polyfills, everything in Motion is supportable with the exception of Proxy. Motion uses Proxy to generate motion components for all HTML, SVG, and hypothetical web component elements.

This PR adds a new function, createDomMotionComponent. This can be used to create DOM motion components manually.

import { createDomMotionComponent } from "framer-motion"

const motion = {
  div: createDomMotionComponent("div")
}

Note: This PR doesn't add polyfills. The linked issue will help you get up to speed with the required polyfills.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 24, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1efd8ba:

Sandbox Source
Framer Motion: Simple animation Configuration
App Store UI using React and Framer Motion Configuration
Framer Motion: Reorder animation Configuration
Framer Motion: growing item positionTransition issue Configuration
Framer Motion: Image lightbox Configuration

@mattgperry mattgperry changed the title IE11 entry-point IE11 support Sep 24, 2020
@@ -11,7 +11,7 @@
"emitDecoratorMetadata": true,
"declaration": true,
"declarationDir": "types",
"outDir": "tsc",
"outDir": "lib",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a holdover from the previous approach but it also makes sense as this folder is transpiled, not TypeScript

@mattgperry mattgperry added the automerge Land this PR label Sep 24, 2020
@mergetron mergetron bot merged commit 0f0d1e5 into main Sep 24, 2020
@mergetron mergetron bot deleted the fix/ie-support branch September 24, 2020 15:46
@magicspon
Copy link

Beeeeeelting...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Land this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Not working on IE
3 participants