Skip to content

Commit 219a90a

Browse files
committed
refactor: use const for destructured pluginData in onLoad handler
1 parent 811d3f4 commit 219a90a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const raw = (options?: RawPluginOptions): Plugin => ({
7070
});
7171

7272
build.onLoad({ filter: /.*/, namespace: "raw" }, args => {
73-
let { fullPath, query } = args.pluginData;
73+
const { fullPath, query } = args.pluginData;
7474
let filePath = fullPath;
7575

7676
if (fs.existsSync(filePath) && fs.lstatSync(filePath).isDirectory()) {

0 commit comments

Comments
 (0)