Skip to content

Commit

Permalink
Merge pull request #551 from ember-cli/add-missing-projectConfig-to-i…
Browse files Browse the repository at this point in the history
…nline-compilation
  • Loading branch information
rwjblue authored May 7, 2020
2 parents f015291 + f4cef32 commit 1f44a40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/ember-addon-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ module.exports = {

let htmlbarsInlinePrecompilePlugin = utils.buildParalleizedBabelPlugin(
pluginInfo,
this.projectConfig(),
templateCompilerPath
);

Expand Down
3 changes: 2 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ function isColocatedBabelPluginRegistered(plugins) {
);
}

function buildParalleizedBabelPlugin(pluginInfo, templateCompilerPath) {
function buildParalleizedBabelPlugin(pluginInfo, projectConfig, templateCompilerPath) {
let parallelBabelInfo = {
requireFile: require.resolve('./require-from-worker'),
buildUsing: 'build',
params: {
templateCompilerPath,
projectConfig,
parallelConfigs: pluginInfo.parallelConfigs,
modules: INLINE_PRECOMPILE_MODULES,
},
Expand Down
1 change: 1 addition & 0 deletions node-tests/utils_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ describe('utils', function () {
let pluginInfo = { parallelConfigs: [], cacheKeys: [] };
parallelizablePlugin = utils.buildParalleizedBabelPlugin(
pluginInfo,
{},
require.resolve('ember-source/dist/ember-template-compiler')
);

Expand Down

0 comments on commit 1f44a40

Please sign in to comment.