We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9d7c40 commit 299b2caCopy full SHA for 299b2ca
plugins/babel-plugin-inline-require-calls.js
@@ -1,4 +1,7 @@
1
+'use strict'
2
+
3
const { createRequire } = require('node:module')
4
+const fs = require('node:fs')
5
const path = require('node:path')
6
7
/**
@@ -69,7 +72,6 @@ module.exports = function inlineRequireCalls(babel) {
69
72
]
70
73
71
74
// Find the first path that exists.
- const fs = require('node:fs')
75
let resolvedPath = absolutePath
76
for (const testPath of possiblePaths) {
77
try {
0 commit comments