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

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-07-02 23:15:40 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-07-03 13:53:54 +0300
commit64828d50d43e542b6fc57e9a343680239991a4bc (patch)
tree6eecafd4271e510f49d7cc50be320ca1610acd66 /package.json
parent402a6d021f6e3ccb4e32fc299b9e536b266461a2 (diff)
Use shared Browserslist config for Babel in root
Browserslist is used by Babel, which in turn is used in Talk to bundle the SimpleWebRTC code with its dependencies (like WebRTC adapter). Until recently, in the server its configuration was got from the Babel config, but now it is stated in the "package.json" file. However, it is not hardcoded, but provided through a new NPM module, "browserslist-config-nextcloud". Browserslist gets its configuration from the "package.json" in current or parent directories, so if SimpleWebRTC was bundled and the "spreed" directory was a subdirectory of the "server" directory of Nextcloud Browserslists got its configuration from the "package.json" file in the server. In that case the bundle failed because "browserslist-config-nextcloud" was not part of the modules installed for Talk development. To prevent that, now "browserslist-config-nextcloud" is a development dependency of Talk. Also, for consistency, "browserslist-config-nextcloud" is now always used when bundling SimpleWebRTC, so the result is the same whether the Talk directory is a subdirectory of the server or not when performing the bundle. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'package.json')
-rw-r--r--package.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/package.json b/package.json
index 50ac209a1..1c2f35b87 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
"attachmediastream": "^2.1.0",
"babelify": "^10.0.0",
"browserify": "^16.2.3",
+ "browserslist-config-nextcloud": "0.0.1",
"handlebars": "^4.1.2",
"hark": "^1.2.3",
"mockconsole": "0.0.1",
@@ -22,5 +23,8 @@
"webrtc-adapter": "^7.2.4",
"webrtcsupport": "^2.2.0",
"wildemitter": "^1.2.1"
- }
+ },
+ "browserslist": [
+ "extends browserslist-config-nextcloud"
+ ]
}