Skip to content

Commit bcc4e63

Browse files
committed
UPDATE: core-js
1 parent e49f82e commit bcc4e63

File tree

7 files changed

+39
-24
lines changed

7 files changed

+39
-24
lines changed

nuxt.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,20 @@ module.exports = {
124124
*/
125125
build: {
126126
publicPath: '/assets/',
127+
babel: {
128+
presets({ isServer }) {
129+
return [
130+
[
131+
require.resolve('@nuxt/babel-preset-app'),
132+
// require.resolve('@nuxt/babel-preset-app-edge'), // For nuxt-edge users
133+
{
134+
buildTarget: isServer ? 'server' : 'client',
135+
corejs: { version: 3 },
136+
},
137+
],
138+
]
139+
},
140+
},
127141
/*
128142
** You can extend webpack config here
129143
*/

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@
2525
}
2626
},
2727
"dependencies": {
28+
"@babel/runtime-corejs3": "^7.9.6",
2829
"@nuxtjs/axios": "^5.10.3",
2930
"@nuxtjs/dotenv": "^1.4.1",
3031
"@nuxtjs/pwa": "^3.0.0-0",
31-
"core-js": "^2.6.11",
32+
"core-js": "3.6.5",
3233
"cross-env": "^7.0.2",
3334
"dayjs": "^1.8.26",
3435
"express": "^4.17.1",
@@ -37,8 +38,7 @@
3738
"nuxt": "^2.12.2",
3839
"nuxt-svg-loader": "^1.2.0",
3940
"nuxt-webfontloader": "^1.1.0",
40-
"uuid": "^8.0.0",
41-
"vuexfire": "^3.2.0-alpha.0"
41+
"uuid": "^8.0.0"
4242
},
4343
"devDependencies": {
4444
"@nuxtjs/eslint-config": "^2.0.2",

src/components/CommentButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ export default {
3131
border-radius: 4px;
3232
}
3333
.icon {
34-
margin-right: 10px;
34+
margin-right: 5%;
3535
}
3636
.button-string {
37-
width: 7em;
37+
width: 5em;
3838
font-size: 17px;
3939
text-align: center;
4040
}

src/components/MovieButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export default {
3333
border-radius: 4px;
3434
}
3535
.icon {
36-
margin-right: 10px;
36+
margin-right: 5%;
3737
}
3838
.button-string {
39-
width: 7em;
39+
width: 5em;
4040
font-size: 17px;
4141
text-align: center;
4242
}

src/components/SubTextBookButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export default {
3333
border-radius: 4px;
3434
}
3535
.icon {
36-
margin-right: 10px;
36+
margin-right: 5%;
3737
}
3838
.button-string {
39-
width: 7em;
39+
width: 5em;
4040
font-size: 17px;
4141
text-align: center;
4242
}

src/components/TextBookButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export default {
3333
border-radius: 4px;
3434
}
3535
.icon {
36-
margin-right: 10px;
36+
margin-right: 5%;
3737
}
3838
.button-string {
39-
width: 7em;
39+
width: 5em;
4040
font-size: 17px;
4141
text-align: center;
4242
}

yarn.lock

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,14 @@
756756
"@babel/types" "^7.4.4"
757757
esutils "^2.0.2"
758758

759+
"@babel/runtime-corejs3@^7.9.6":
760+
version "7.9.6"
761+
resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.9.6.tgz#67aded13fffbbc2cb93247388cf84d77a4be9a71"
762+
integrity sha512-6toWAfaALQjt3KMZQc6fABqZwUDDuWzz+cAfPhqyEnzxvdWOAkjwPNxgF8xlmo7OWLsSjaKjsskpKHRLaMArOA==
763+
dependencies:
764+
core-js-pure "^3.0.0"
765+
regenerator-runtime "^0.13.4"
766+
759767
"@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2":
760768
version "7.9.6"
761769
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.6.tgz#a9102eb5cadedf3f31d08a9ecf294af7827ea29f"
@@ -1397,11 +1405,6 @@
13971405
mustache "^2.3.0"
13981406
stack-trace "0.0.10"
13991407

1400-
"@posva/vuefire-core@^2.2.0-alpha.0":
1401-
version "2.3.1"
1402-
resolved "https://registry.yarnpkg.com/@posva/vuefire-core/-/vuefire-core-2.3.1.tgz#6f9a389a311b13fcc67173163d7a38365ad7eb47"
1403-
integrity sha512-jcnVeck7H4N3F1zqAfiKDUcess6GMAO28CY6jqOJ8M5O4jwuBJTbyYWGClhLOs5P3Nuf1Hy1IXlFmeKIk5SdiQ==
1404-
14051408
"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2":
14061409
version "1.1.2"
14071410
resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf"
@@ -3006,12 +3009,17 @@ core-js-compat@^3.6.2:
30063009
browserslist "^4.8.5"
30073010
semver "7.0.0"
30083011

3012+
core-js-pure@^3.0.0:
3013+
version "3.6.5"
3014+
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.6.5.tgz#c79e75f5e38dbc85a662d91eea52b8256d53b813"
3015+
integrity sha512-lacdXOimsiD0QyNf9BC/mxivNJ/ybBGJXQFKzRekp1WTHoVUWsUHEn+2T8GJAzzIhyOuXA+gOxCVN3l+5PLPUA==
3016+
30093017
30103018
version "3.6.5"
30113019
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.6.5.tgz#7395dc273af37fb2e50e9bd3d9fe841285231d1a"
30123020
integrity sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA==
30133021

3014-
core-js@^2.6.11, core-js@^2.6.5:
3022+
core-js@^2.6.5:
30153023
version "2.6.11"
30163024
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c"
30173025
integrity sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==
@@ -10079,13 +10087,6 @@ vuex@^3.1.3:
1007910087
resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.3.0.tgz#665b4630ea1347317139fcc5cb495aab3ec5e513"
1008010088
integrity sha512-1MfcBt+YFd20DPwKe0ThhYm1UEXZya4gVKUvCy7AtS11YAOUR+9a6u4fsv1Rr6ePZCDNxW/M1zuIaswp6nNv8Q==
1008110089

10082-
vuexfire@^3.2.0-alpha.0:
10083-
version "3.2.0-alpha.0"
10084-
resolved "https://registry.yarnpkg.com/vuexfire/-/vuexfire-3.2.0-alpha.0.tgz#a9c2187a7accbdb2ad140efb225a2789f596384b"
10085-
integrity sha512-iau1lkAu8KygHGADzxgaAuhFFE2njumxv/WJ/e2Rc3yDGYRGH8qX/OizlzPXriw+7i380MEvJ6WQdVsXl9oIVQ==
10086-
dependencies:
10087-
"@posva/vuefire-core" "^2.2.0-alpha.0"
10088-
1008910090
watchpack@^1.6.1:
1009010091
version "1.6.1"
1009110092
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.6.1.tgz#280da0a8718592174010c078c7585a74cd8cd0e2"

0 commit comments

Comments
 (0)