ember-cli / ember-cli/ember-cli-htmlbars

Warning when registering plugin using baseDir if broccoli-rollup is installed

未关闭
#121 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
77
派生
65
PR 合并指标
30 天内没有已合并 PR

描述

When attempting to add a plugin
```
setupPreprocessorRegistry(type, registry) {
registry.add('htmlbars-ast-plugin', {
baseDir() {
return __dirname;
},
});
},
```

if `broccoli-rollup` is installed then when running `ember serve` I get the message:
`Warning: failed to stat /preprocess-rollup/node_modules/broccoli-rollup/tmp/rollup-input_base_path-6obEeBLr.tmp/0`

If I remove `broccoli-rollup` or remove the `baseDir`
```
setupPreprocessorRegistry(type, registry) {
registry.add('htmlbars-ast-plugin', {});
},
```

Then no warning is printed.

This is reproducible in a brand new addon like https://github.com/jrjohnson/preprocess-rollup (addon doesn't do anything and the plugin itself won't work since it doesn't exist, bu the message is obvious.

I'm running into this while working on https://github.com/FortAwesome/ember-fontawesome/pull/21

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。