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

Please run Babel or similar for dist #4

Open
hmedney opened this issue Jun 26, 2017 · 14 comments
Open

Please run Babel or similar for dist #4

hmedney opened this issue Jun 26, 2017 · 14 comments
Assignees

Comments

@hmedney
Copy link

hmedney commented Jun 26, 2017

First, thanks for this useful library 😃. Minor suggestion - please consider running the source through Babel or similar before publishing such that the distributable code is all ES5. This will eliminate js compatibility issues when bundling and minifying this package (ran into an issue recently with backticks in this package). Thanks!

@rob-mcgrail
Copy link

rob-mcgrail commented Jul 7, 2017

Yeah those backticks wasted a couple of hours of my life.

edit - this library also probably saved me a bunch of time too, so it's a wash. Thanks for your contributions.

@saikojosh
Copy link
Owner

OK I'll setup Babel when I get time. I didn't anticipate people would want to use this on frontend, my bad!

@mattotodd
Copy link

I just spent an hour of my life trying to track down an IE11 error: SCRIPT1014: Invalid character

Was related to the backticks in this library

@PabloDiablo
Copy link

Yep just hit this issue myself when running production code through Uglify:
Unexpected character '`'

@gReis89
Copy link

gReis89 commented Nov 26, 2017

@saikojosh any update on this? I saw a PR opened on July, can we have it merged and released?

@saikojosh
Copy link
Owner

I've converted the module to single quotes now so should work fine. When I have more time I will look at the Babel PR.

@thelastfantasy
Copy link

default

Same problem, my project created with create-react-app got err, any idea to solve this problem?

@saikojosh
Copy link
Owner

saikojosh commented Apr 14, 2018 via email

@thelastfantasy
Copy link

thelastfantasy commented Apr 15, 2018

0.4.0, I downloaded it with npm. I ran babel CLI to output an es5 version and it's ok now.

@shockey
Copy link

shockey commented May 7, 2018

Chiming in here - integrating object-assign-deep broke our module (swagger-client) for Node 4 users due to use of const in the published module: swagger-api/swagger-js#1315. It breaks in IE11 too, but our Babel sidestepped that problem.

Please consider transpiling 😄

@saikojosh
Copy link
Owner

@shockey Node 4 went end-of-life a month ago. I plan to merge in one of the PRs but I don't have time to do a full review right now. It's not a priority seeing as Node 4 is no longer supported.

output

@mkanako
Copy link

mkanako commented Sep 11, 2018

my project is webpack4+vue create by vue-cli 3.0
I know this package have es6 syntax and babel igonre all files inside node_modules by default
so need to add transpileDependencies: ['object-assign-deep'] to vue.config.js
but error also happens unfortunately
Cannot assign to read only property 'exports' of object '#<Object>'

I have no way😭

@shockey
Copy link

shockey commented Sep 11, 2018

@mkanako my fork may solve your issue, it’s the same aside from the fact that it ships already transpiled through Babel: https://www.npmjs.com/package/@kyleshockey/object-assign-deep

@mkanako
Copy link

mkanako commented Sep 11, 2018

@shockey thank you very much!!
you solved my problem immediately!!

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

No branches or pull requests

9 participants