mirror of https://gitee.com/bigwinds/arangodb
Deprecated CS.
This commit is contained in:
parent
bdf1cb0cdb
commit
7bd08e29aa
|
@ -620,6 +620,11 @@ function require (path) {
|
|||
}
|
||||
|
||||
if (description.type === "coffee") {
|
||||
let deprecated = require('org/arangodb/deprecated');
|
||||
deprecated('2.8', (
|
||||
`file ${description.origin}: built-in CoffeeScript support is deprecated,`
|
||||
+ ` pre-compile CoffeeScript modules instead`
|
||||
));
|
||||
var cs = require("coffee-script");
|
||||
description.content = cs.compile(description.content, {bare: true});
|
||||
localModule = createModule(currentModule, currentPackage, description);
|
||||
|
|
Loading…
Reference in New Issue