We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d98e827 commit 166059bCopy full SHA for 166059b
lib/src/index.ts
@@ -38,7 +38,7 @@ export const raw: (options?: RawPluginOptions) => Plugin = options => ({
38
namespace: "raw",
39
};
40
});
41
- build.onLoad({ filter: /\?raw$/, namespace: "raw" }, async args => {
+ build.onLoad({ filter: /\?raw$/, namespace: "raw" }, args => {
42
let filePath = args.pluginData;
43
if (fs.lstatSync(filePath).isDirectory()) filePath += path.sep + "index";
44
if (!fs.existsSync(filePath))
0 commit comments