xpl / es7-object-polyfill Goto Github PK
View Code? Open in Web Editor NEWA polyfill for missing Object.values / Object.entries
License: MIT License
A polyfill for missing Object.values / Object.entries
License: MIT License
Would you consider adding a permissive license - like the MIT License - to this library?
My company prefers that we don't use software provided under the Unlicensed. Other have argued (and our lawyers at least agree enough to make it off limits) that the Unlicense causes more issues than it solves.
For example:
It's not global. It doesn't make sense outside of a commonwealth ecosystem, is explicitly illegal in some places (Germany), and of unclear legality in others (Australia)
It's inconsistent. Some of the warranty terms cannot, logically, co-exist, given the current legal ecosystem, as written, with the licensing terms.
Its applicability is unpredictable. The license is short, clearly expressing intent, at the cost of not carefully addressing common license, copy-right and warranty issues. It leaves a lot of leeway interpretation - meaning that, in the US, it will take a few trials before you can reliably know when the license is applicable, and how.
โ in order to use polyfill in IE11, I have to transpile this polyfill into ES5 but due to #2 I cannot.
So can I write a pull request to change the arrow function to normal function or just compile it into ES5?
Hi,
Please correct me if I'm wrong, but this polyfill seems redundant if using [email protected]
.
Thanks
Is there a simpler script for web browsers without the need for require or module bundlers
I've used create-react-app
to create and set up my app. I then added es7-object-polyfill
and required it in src/index.js
right after all the imports.
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'react-router-redux'
import store, { history } from './redux/store/configure-store'
import AppRouter from './AppRouter'
import { unregister } from './registerServiceWorker';
import './styles/index.css'
require('es7-object-polyfill')
const target = document.querySelector('#root')
render(
<Provider store={store}>
<ConnectedRouter history={history}>
<AppRouter />
</ConnectedRouter>
</Provider>,
target
);
unregister();
When I try to run yarn build
I get this error message.
Failed to compile.
Failed to minify the code from this file:
./node_modules/es7-object-polyfill/es7-object-polyfill.js:11
Read more here: http://bit.ly/2tRViJ9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.