Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking/tdr 9/handlebars 4 upgrade bis #45

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from
16 changes: 0 additions & 16 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,6 @@ import wildcardExternal from '@oat-sa/rollup-plugin-wildcard-external';
const { srcDir, outputDir, aliases } = require('./path');
const Handlebars = require('handlebars');

/**
* Support of handlebars 1.3.0
* TODO remove once migrated to hbs >= 3.0.0
*/
const originalVisitor = Handlebars.Visitor;
Handlebars.Visitor = function() {
return originalVisitor.call(this);
};
Handlebars.Visitor.prototype = Object.create(originalVisitor.prototype);
Handlebars.Visitor.prototype.accept = function() {
try {
originalVisitor.prototype.accept.apply(this, arguments);
} catch (e) {}
};
/* --------------------------------------------------------- */

const globPath = p => p.replace(/\\/g, '/');
const inputs = glob.sync(globPath(path.join(srcDir, '**', '*.js')));

Expand Down
Loading