Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-09-09 08:03:42 +0300
committerJulius Härtl <jus@bitgrid.net>2020-09-11 13:59:31 +0300
commit40eb0939c1e8ce55bd0472b4c1d40dda6696bb53 (patch)
treece9509d28ebcf08c233f3bf6fdb0f0c0b034bdcc
parentbc50812d064d86693fc3ffd44066050443099cc9 (diff)
Use core-js and babel plugins
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--babel.config.js13
-rw-r--r--package.json9
2 files changed, 15 insertions, 7 deletions
diff --git a/babel.config.js b/babel.config.js
index 58c179730..8a55521ac 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,12 +1,17 @@
module.exports = {
- plugins: ['@babel/plugin-syntax-dynamic-import'],
+ plugins: [
+ '@babel/plugin-syntax-dynamic-import',
+ '@babel/plugin-transform-classes',
+ ['@babel/plugin-proposal-class-properties', { loose: true }],
+ ],
presets: [
[
'@babel/preset-env',
{
- "modules": false
- }
- ]
+ corejs: 3,
+ useBuiltIns: 'entry',
+ },
+ ],
],
env: {
test: {
diff --git a/package.json b/package.json
index 601bf91ee..f3330becf 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,9 @@
"test": "NODE_ENV=test jest --passWithNoTests src/",
"test:coverage": "NODE_ENV=test jest --coverage src/"
},
+ "browserslist": [
+ "extends @nextcloud/browserslist-config"
+ ],
"dependencies": {
"@nextcloud/axios": "^1.3.2",
"@nextcloud/event-bus": "^1.1.3",
@@ -29,6 +32,7 @@
"@nextcloud/l10n": "^1.3.0",
"@nextcloud/router": "^1.0.2",
"@nextcloud/vue": "^1.5.0",
+ "core-js": "^3.6.5",
"escape-html": "^1.0.3",
"highlight.js": "^9.16.2",
"markdown-it": "^8.4.2",
@@ -50,15 +54,14 @@
"vue": "^2.6.11",
"vue-click-outside": "^1.0.7"
},
- "browserslist": [
- "extends @nextcloud/browserslist-config"
- ],
"engines": {
"node": ">=10.0.0"
},
"devDependencies": {
"@babel/core": "^7.8.7",
+ "@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
+ "@babel/plugin-transform-classes": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/polyfill": "^7.8.7",
"@babel/preset-env": "^7.9.5",