Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3c72b0

Browse files
committed
🔨 refactor polyfill
- es6-promise 제거- index.html에 cdn.polyfill.io/v2 추가
1 parent3420576 commitc3c72b0

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

‎index.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<title>w3-how-to-with-vue</title>
66
<metaname="viewport"content="width=device-width, user-scalable=no">
77
<linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
8+
<scriptsrc="//cdn.polyfill.io/v2/polyfill.js"></script>
89
</head>
910
<body>
1011
<divid="app"></div>

‎package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"babel-preset-env":"^1.6.0",
2929
"cross-env":"^5.0.5",
3030
"css-loader":"^0.28.7",
31-
"es6-promise":"^4.2.2",
3231
"eslint":"^4.10.0",
3332
"eslint-config-standard":"^10.2.1",
3433
"eslint-friendly-formatter":"^3.0.0",

‎src/bootstrap/polyfill.js‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
2-
// for ie promise
3-
import'es6-promise/auto'
4-
51
// https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
62
if(typeofObject.assign!=='function'){
7-
;(function(){
3+
(function(){
84
Object.assign=function(target){
95
'use strict'
106
// 우리는 반드시 특정한 케이스에 대해서 확인해야 합니다.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp