claviska / claviska/esbuild-plugin-inline-import

Plugin embeds path instead of file contents

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
38
Forks
5
PR merge metrics
No merged PRs in 30d

Description

There doesn't seem to be a way to make this plugin work with `@chialab/esbuild-plugin-html`. If I list your plugin before the latter, then I see the `build.onResolve({ filter }, async args => {` code block running.

```
return {
path: filePath,
namespace
};
```

returns the corrects path. However, the second block `build.onLoad({ filter: /.*/, namespace }, async args => {` never gets invoked.

Any idea what could be wrong?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.