mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
parent
590c89840c
commit
cb6833176c
1 changed files with 4 additions and 1 deletions
|
@ -26,8 +26,11 @@ paper = new (PaperScope.inject(Base.merge(Base.exports, {
|
|||
})))();
|
||||
|
||||
// Support AMD (e.g. require.js)
|
||||
// Use named module AMD syntax since there are other unnamed calls to define()
|
||||
// inside the built library (from inlined Acorn / Esprima) that apparently
|
||||
// confuse the require.js optimizer.
|
||||
if (typeof define === 'function' && define.amd)
|
||||
define(paper);
|
||||
define('paper', paper);
|
||||
|
||||
/*#*/ } else if (options.node) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue