mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 18:13:40 -05:00
Merge pull request #16184 from overleaf/ae-sharejs-esm
Convert vendored `sharejs.js` from RequireJS to ESM GitOrigin-RevId: 38f010ac0a740667a633eb491e3be75eab8163ef
This commit is contained in:
parent
2520a10e4c
commit
1da44a1e7c
1 changed files with 8 additions and 3 deletions
11
services/web/frontend/js/vendor/libs/sharejs.js
vendored
11
services/web/frontend/js/vendor/libs/sharejs.js
vendored
|
@ -1,3 +1,6 @@
|
|||
import CryptoJSSHA1 from 'crypto-js/sha1'
|
||||
import { debugging, debugConsole } from '@/utils/debugging'
|
||||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
||||
|
@ -26,7 +29,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['crypto-js/sha1', '@/utils/debugging'], function (CryptoJSSHA1, { debugging, debugConsole }) {
|
||||
export const { Doc } = (() => {
|
||||
var append = void 0,
|
||||
bootstrapTransform = void 0,
|
||||
exports = void 0,
|
||||
|
@ -1411,5 +1414,7 @@ define(['crypto-js/sha1', '@/utils/debugging'], function (CryptoJSSHA1, { debugg
|
|||
|
||||
exports.Doc = Doc;
|
||||
|
||||
return window.sharejs;
|
||||
});
|
||||
return exports;
|
||||
})()
|
||||
|
||||
export default window.sharejs
|
||||
|
|
Loading…
Reference in a new issue