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

Build Old Version Lodash (Compatible with IE6, IE8) #20

Open
shyangs opened this issue Jan 11, 2018 · 0 comments
Open

Build Old Version Lodash (Compatible with IE6, IE8) #20

shyangs opened this issue Jan 11, 2018 · 0 comments

Comments

@shyangs
Copy link
Owner

shyangs commented Jan 11, 2018

Lodash 3.x 版本支援的環境有:
Chrome 43-44, Firefox 38-39, IE 6-11, MS Edge, Safari 5-8, ChakraNode 0.12.2, io.js 2.5.0, Node.js 0.8.28, 0.10.40, & 0.12.7, PhantomJS 1.9.8, RingoJS 0.11, & Rhino1.7.6

要讓 Lodash 支援IE8,我們需要安裝舊版的 lodash-cli (v3.10.1),如果已經安裝了新版的 lodash-cli 請先移除之.
npm uninstall -g lodash-cli

接著安裝 lodash-cli (v3.10.1)
npm i -g lodash-cli@3.10.1

最後組建 lodash
整個 lodash.js (v3.10.1)
lodash compat
或只要工作在瀏覽器上, 選用函數為round, floor和ceil
lodash compat include="round,floor,ceil" exports="global"

參考

@shyangs shyangs changed the title Build Old Version Lodash (Compatible with IE8) Build Old Version Lodash (Compatible with IE6, IE8) May 31, 2018
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

1 participant