Skip to content

Potential Node memory leak caused by safeList > pattern RegEx #9279

@damianof

Description

@damianof

What version of Tailwind CSS are you using?

v3.1.8

What build tool (or framework if it abstracts the build tool) are you using?

vite: v3.1.0
postcss: v8.4.16
autoprefixer: v10.4.8

What version of Node.js are you using?

v16.17.0

What browser are you using?

Chrome or Edge (latest)

What operating system are you using?

macOS (Monterey 12.5 on MacBook Air M2 where the issue happens)

Reproduction URL

https://github.com/damianof/tailwind-config-memory-issue

Describe your issue

Receiving FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory in terminal from Node.

Repro steps:

  • run the sample project with npm start
  • expected: the application loads in the browser without errors in the Node console
  • actual: receive FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory (for the full output see here )

Additional details can be found within the README.md file on the sample project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions