"lib": "src-noconflict"
Some modules rely on `ace.require`, which seems to have its own internal locate/fetch algorithm and doesn't match `cjs`'s `require`. For example, `ace.require('ace/ext/themelist').themesByName` seems to fetch the file `ace/ext-themelist`, and one might think the equivalent `cjs` line would be `require('ace/ext-themelist').themesByName`, but by that method, `themesByName` is `undefined`. And even after determining the equivalent `cjs` statement, there will likely be at least a dozen or more others like it, so it's easiest to just use the `noconflict` version.
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
"main": "ace",
|
||||
"format": "global",
|
||||
"directories": {
|
||||
"lib": "src"
|
||||
"lib": "src-noconflict"
|
||||
},
|
||||
"shim": {
|
||||
"ace": {
|
||||
"exports": "ace"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user