Skip to content

Commit 3de292a

Browse files
committed
build: add optional chaining support
1 parent 1534ecd commit 3de292a

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = function (api) {
66
['@babel/preset-env', { targets: { node: 'current' } }],
77
'@babel/preset-typescript',
88
]
9-
const plugins = []
9+
const plugins = ['@babel/plugin-proposal-optional-chaining']
1010

1111
return {
1212
presets,

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@
3535
"license": "MIT",
3636
"devDependencies": {
3737
"@babel/core": "^7.15.8",
38+
"@babel/plugin-proposal-optional-chaining": "^7.14.5",
3839
"@babel/plugin-syntax-jsx": "^7.14.5",
3940
"@babel/preset-env": "^7.15.8",
4041
"@babel/preset-typescript": "^7.15.0",
4142
"@coreui/coreui": "^4.0.4",
4243
"@coreui/icons": "^2.0.1",
43-
"@coreui/icons-vue": "^2.0.0-beta.0",
44+
"@coreui/icons-vue": "^2.0.0-rc.0",
4445
"@coreui/vue-chartjs": "^2.0.0-beta.0",
4546
"@popperjs/core": "^2.10.2",
4647
"@rollup/plugin-commonjs": "^21.0.0",
@@ -105,5 +106,8 @@
105106
"node_modules/",
106107
"build/"
107108
]
109+
},
110+
"dependencies": {
111+
"@rollup/plugin-babel": "^5.3.0"
108112
}
109113
}

rollup.config.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,4 @@ export default [
4747
external,
4848
plugins: [...plugins, vue({ template: { optimizeSSR: true } })],
4949
},
50-
// Browser build.
51-
// {
52-
// input: 'src/wrapper.js',
53-
// output: {
54-
// format: 'iife',
55-
// file: 'dist/library.js'
56-
// },
57-
// plugins: [
58-
// vue()
59-
// ]
60-
// }
6150
]

yarn.lock

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
dependencies:
148148
"@babel/types" "^7.15.4"
149149

150-
"@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.14.5", "@babel/helper-module-imports@^7.15.4":
150+
"@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.14.5", "@babel/helper-module-imports@^7.15.4":
151151
version "7.15.4"
152152
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.15.4.tgz#e18007d230632dea19b47853b984476e7b4e103f"
153153
integrity sha512-jeAHZbzUwdW/xHgHQ3QmWR4Jg6j15q4w/gCfwZvtqOxoo5DKtLHk8Bsf4c5RZRC7NmLEs+ohkdq8jFefuvIxAA==
@@ -944,12 +944,10 @@
944944
resolved "https://registry.yarnpkg.com/@coreui/coreui/-/coreui-4.0.4.tgz#e4848efa0c9f2ff6fbbc4d45d5dd73c1f5690f37"
945945
integrity sha512-O/xWb+b3bSKTYvedwKJWjzRrTIf5u7t18MrfS13nRM0s1Ogr1H5aSpQQxtaqREDIuHN0KTY6a0bPInvEVeUBTg==
946946

947-
"@coreui/icons-vue@^2.0.0-beta.0":
948-
version "2.0.0-beta.0"
949-
resolved "https://registry.yarnpkg.com/@coreui/icons-vue/-/icons-vue-2.0.0-beta.0.tgz#13e2e5490d3fd4a5616c7000e4b0e255e54c63cb"
950-
integrity sha512-jUKilwq+SQGL9bx8GcjfIkJLxVJBepZ009bnGhLqeerZm1g4uSgV2u1mn3mapuKA1ZeR4Kx5NTeEF5bkaPfZnw==
951-
dependencies:
952-
vue "^3.0.10"
947+
"@coreui/icons-vue@^2.0.0-rc.0":
948+
version "2.0.0-rc.0"
949+
resolved "https://registry.yarnpkg.com/@coreui/icons-vue/-/icons-vue-2.0.0-rc.0.tgz#b863aaf4460e717e3d61f51c93f7a9899f01aef4"
950+
integrity sha512-8cMlxrL3Bl26eAVXiwxWH5UZS8MX6QZNiDzzjeedKEVHfrtDZ4V1OHe79shUOhwK1km/OLTuAQQBS5ac9VQ9Mg==
953951

954952
"@coreui/icons@^2.0.1":
955953
version "2.0.1"
@@ -1205,6 +1203,14 @@
12051203
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.10.2.tgz#0798c03351f0dea1a5a4cabddf26a55a7cbee590"
12061204
integrity sha512-IXf3XA7+XyN7CP9gGh/XB0UxVMlvARGEgGXLubFICsUMGz6Q+DU+i4gGlpOxTjKvXjkJDJC8YdqdKkDj9qZHEQ==
12071205

1206+
"@rollup/plugin-babel@^5.3.0":
1207+
version "5.3.0"
1208+
resolved "https://registry.yarnpkg.com/@rollup/plugin-babel/-/plugin-babel-5.3.0.tgz#9cb1c5146ddd6a4968ad96f209c50c62f92f9879"
1209+
integrity sha512-9uIC8HZOnVLrLHxayq/PTzw+uS25E14KPUBh5ktF+18Mjo5yK0ToMMx6epY0uEgkjwJw0aBW4x2horYXh8juWw==
1210+
dependencies:
1211+
"@babel/helper-module-imports" "^7.10.4"
1212+
"@rollup/pluginutils" "^3.1.0"
1213+
12081214
"@rollup/plugin-commonjs@^21.0.0":
12091215
version "21.0.0"
12101216
resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-21.0.0.tgz#b9e4342855ea20b5528f4587b9a90f642196a502"

0 commit comments

Comments
 (0)