aboutsummaryrefslogtreecommitdiffstats
path: root/library/Sortable/babel.config.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-08-03 07:12:35 +0000
committerMario <mario@mariovavti.com>2021-08-03 07:12:35 +0000
commitcddc0217724f1a7661014d50e4c940e623a0c2dc (patch)
treef24595d659adbb7d1e5d2e8e6dcd829b093887bb /library/Sortable/babel.config.js
parent571bae9d1c07bb08270163a314c91c138b42e62f (diff)
downloadvolse-hubzilla-cddc0217724f1a7661014d50e4c940e623a0c2dc.tar.gz
volse-hubzilla-cddc0217724f1a7661014d50e4c940e623a0c2dc.tar.bz2
volse-hubzilla-cddc0217724f1a7661014d50e4c940e623a0c2dc.zip
Apps drag and drop feature
Diffstat (limited to 'library/Sortable/babel.config.js')
-rw-r--r--library/Sortable/babel.config.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/library/Sortable/babel.config.js b/library/Sortable/babel.config.js
new file mode 100644
index 000000000..cfa698761
--- /dev/null
+++ b/library/Sortable/babel.config.js
@@ -0,0 +1,27 @@
+module.exports = function(api) {
+ api.cache(true);
+
+ let presets;
+
+ if (process.env.NODE_ENV === 'es') {
+ presets = [
+ [
+ "@babel/preset-env",
+ {
+ "modules": false
+ }
+ ]
+ ];
+ } else if (process.env.NODE_ENV === 'umd') {
+ presets = [
+ [
+ "@babel/preset-env"
+ ]
+ ];
+ }
+
+ return {
+ plugins: ['@babel/plugin-transform-object-assign'],
+ presets
+ };
+};