Skip to content

Commit d13b5e2

Browse files
author
Robert Jackson
committed
Ensure custom templateCompilerPath is an absolute path.
The examples that we show for using a custom template compiler path use a relative path, but that doesn't actually work when inline compilation runs and is parallelized (because the worker processes run from a different relative root inside `/tmp`). This ensures that any specified overrides are converted to absolute paths.
1 parent 0d362f4 commit d13b5e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ember-addon-main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22

3+
const path = require('path');
34
const SilentError = require('silent-error');
45
const utils = require('./utils');
56

@@ -201,7 +202,7 @@ module.exports = {
201202
app.options['ember-cli-htmlbars'].templateCompilerPath;
202203

203204
if (templateCompilerPath) {
204-
return templateCompilerPath;
205+
return path.resolve(this.project.root, templateCompilerPath);
205206
}
206207

207208
let ember = this.project.findAddonByName('ember-source');

0 commit comments

Comments
 (0)