Closed wh0 closed 8 years ago
@wh0 Could you point me to the definition of the bare
flag?
With the noconflict version of ace we have the problem that we need also require js.
Bare flag is defined Meteor docs.
Thanks @mitar
Thanks for the hint.
However the change of the bare flag does not change anything. The define method of ace is still defined in the global scope.
I will try to switch to the npm package, add load ace as module. This might help to solve this issue.
The problem is still that ace is only written to be used with require js, which is nor compatible to the module system. Therefore the currently only way is to load it to the global namespace. Which leaks also the define
.
I'm using sharejs with another library, xregexp. xregexp tries to define itself if a
define
function exists, but it logs some errors, because it passes some arguments that sharejs'sdefine
doesn't expect.Anyway, why is
ace.js
being added withbare: true
, and what changes would it take to make sharejs work without thebare
flag?