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

Using Object.assign #19

Closed
omaotzu opened this issue Aug 13, 2018 · 2 comments
Closed

Using Object.assign #19

omaotzu opened this issue Aug 13, 2018 · 2 comments

Comments

@omaotzu
Copy link

omaotzu commented Aug 13, 2018

Object.assign isn't compatible with IE (surprise surprise)... If you're using yn on the front end might run into some issues where the package wont work

Issue arose on our end from using it in combination with Next js and using publicruntime config import config to the front end to feature switch certain actions and renders.

There are several ways round it (moving yn to the next build config etc etc) but thought I'd let you know!

@sindresorhus
Copy link
Owner

This module mainly targets Node.js, not the browser. It's up to you to transpile it with Babel if you want to use it in the browser. You can find a more detailed explanation here: sindresorhus/ama#446

If you use Webpack, check out babel-engine-plugin, which transpiles only the dependencies that needs to be transpiled.

@omaotzu
Copy link
Author

omaotzu commented Aug 13, 2018

👍

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

No branches or pull requests

2 participants