summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/zen_mode.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-05-16 15:52:40 -0500
committerMike Greiling <mike@pixelcog.com>2017-05-16 15:52:40 -0500
commit5bd549187aa68604d320e3d0c1a51ee4ed34c0e3 (patch)
tree4f121959a46a895d67963919f549507947a305a5 /app/assets/javascripts/zen_mode.js
parentf5ad1dcbf88dc69254fe86be2fd6b20fead308c0 (diff)
downloadgitlab-ce-5bd549187aa68604d320e3d0c1a51ee4ed34c0e3.tar.gz
update remaining uses of CJS syntax to ES module syntax
Diffstat (limited to 'app/assets/javascripts/zen_mode.js')
-rw-r--r--app/assets/javascripts/zen_mode.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/assets/javascripts/zen_mode.js b/app/assets/javascripts/zen_mode.js
index ce626cf7b46..b7fe552dec2 100644
--- a/app/assets/javascripts/zen_mode.js
+++ b/app/assets/javascripts/zen_mode.js
@@ -1,5 +1,4 @@
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-unused-vars, consistent-return, camelcase, comma-dangle, max-len */
-/* global Dropzone */
/* global Mousetrap */
// Zen Mode (full screen) textarea
@@ -7,10 +6,12 @@
/*= provides zen_mode:enter */
/*= provides zen_mode:leave */
-require('vendor/jquery.scrollTo');
-window.Dropzone = require('dropzone');
-require('mousetrap');
-require('mousetrap/plugins/pause/mousetrap-pause');
+import 'vendor/jquery.scrollTo';
+import Dropzone from 'dropzone';
+import 'mousetrap';
+import 'mousetrap/plugins/pause/mousetrap-pause';
+
+window.Dropzone = Dropzone;
//
// ### Events