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 4744ee1 commit e74612bCopy full SHA for e74612b
src/helpers.ts
@@ -33,6 +33,19 @@ const DEFAULT_NODE_ARGS = [
33
'--enable-source-maps',
34
]
35
36
+/**
37
+ * Disable experimental warnings, since the ts-node loader hook
38
+ * uses an expiremental feature. We are waiting for them to
39
+ * cut a new release and support the newer `--import` flag
40
+ * instead
41
+ */
42
+if (process.allowedNodeEnvironmentFlags.has('--disable-warning')) {
43
+ // supported in node>=v21.13.0
44
+ DEFAULT_NODE_ARGS.push('--disable-warning=ExperimentalWarning')
45
+} else {
46
+ DEFAULT_NODE_ARGS.push('--no-warnings')
47
+}
48
+
49
/**
50
* Parses tsconfig.json and prints errors using typescript compiler
51
* host
0 commit comments