You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ConcatenatedModule is a collection of modules so we have to go deeper to actually get a path,
181
+
// at this point we won't know which one so we just grab first module here
182
+
const[firstSubModule]=webpackModule.modules
183
+
returngetResourcePath(firstSubModule)
173
184
}
174
-
if(closeErr){
175
-
returnreject(closeErr)
185
+
186
+
returnundefined
187
+
}
188
+
189
+
functioniterateModules(
190
+
webpackModules: Set<Module>,
191
+
compilation: Compilation
192
+
): void{
193
+
for(constwebpackModuleofwebpackModules){
194
+
if(webpackModuleinstanceofConcatenatedModule){
195
+
iterateModules(
196
+
(webpackModuleasConcatenatedModule).modules,
197
+
compilation
198
+
)
199
+
}else{
200
+
constresourcePath=getResourcePath(webpackModule)
201
+
if(resourcePath?.includes(`ts-node`)){
202
+
constimportedBy=getResourcePath(
203
+
compilation.moduleGraph.getIssuer(webpackModule)
204
+
)
205
+
conststructuredError={
206
+
id: `98011`,
207
+
context: {
208
+
package: `ts-node`,
209
+
importedBy,
210
+
advisory: `Gatsby is supporting TypeScript natively (see https://gatsby.dev/typescript). "ts-node" might not be needed anymore at all, consider removing it.`,
0 commit comments