Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

TsConfigPathsPlugin cause V8 crash when using wildcards #410

Open
@Toilal

Description

@Toilal

I have configured TsConfigPathsPlugin, but it crash with such a configuration.

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "*": ["src/*"]
    },

It's a valid TypeScript paths configuration and works well with ts-loader.

<--- Last few GCs --->

16861 ms: Mark-sweep 1327.0 (1436.0) -> 1326.8 (1436.0) MB, 971.4 / 0.0 ms [allocation failure] [scavenge might not succeed].
17847 ms: Mark-sweep 1326.8 (1436.0) -> 1326.8 (1436.0) MB, 985.6 / 0.0 ms [allocation failure] [scavenge might not succeed].
18865 ms: Mark-sweep 1326.8 (1436.0) -> 1334.8 (1420.0) MB, 1017.7 / 0.0 ms [last resort gc].
19765 ms: Mark-sweep 1334.8 (1420.0) -> 1342.7 (1420.0) MB, 899.2 / 0.0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x3d39525cfb39
1: doResolve [/home/toilal/idea-projects/eqo/webapp/node_modules/enhanced-resolve/lib/Resolver.js:~81] [pc=0x15fb5d4993a7] (this=0x2df2bc939949 <a Resolver with map 0x325d5c8ca729>,type=0x181d0efa8199 <String[14]: parsed-resolve>,request=0x176c15b5a121 <an Object with map 0x28f54a89de91>,message=0x3d3952504201 ,callback=0x1af2c6e12271 <JS Function (SharedFunctionInfo 0x3968df6bfca9)>)...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [node]
2: 0x56524834170e [node]
3: v8::Utils::ReportApiFailure(char const*, char const*) [node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
5: v8::internal::Factory::NewUninitializedFixedArray(int) [node]
6: v8::internal::Factory::NewJSArrayStorage(v8::internal::Handlev8::internal::JSArray, int, int, v8::internal::ArrayStorageAllocationMode) [node]
7: v8::internal::Factory::NewJSArray(v8::internal::ElementsKind, int, int, v8::internal::ArrayStorageAllocationMode, v8::internal::PretenureFlag) [node]
8: v8::internal::ElementsAccessor::Concat(v8::internal::Isolate*, v8::internal::Arguments*, unsigned int) [node]
9: 0x565247c03c71 [node]
10: 0x565247c271ae [node]
11: 0x565247c2957e [node]
12: 0x15fb5cc092a7
Aborted

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions