Skip to content

refactor json modules#15801

Merged
sokra merged 3 commits intomainfrom
refactor-json-modules
Jun 2, 2022
Merged

refactor json modules#15801
sokra merged 3 commits intomainfrom
refactor-json-modules

Conversation

@vankop
Copy link
Copy Markdown
Member

@vankop vankop commented May 9, 2022

What kind of change does this PR introduce?
refactoring. fixes #15789

  • do not store exports spec
  • return undefined exports spec for large arrays
  • add memoryLimitCases test cases, this cases allow to test heap size using testConfig.heapSizeLimitBytes

Did you add tests for your changes?
yes

Does this PR introduce a breaking change?
no

What needs to be documented once your changes are merged?
nothing

@webpack-bot
Copy link
Copy Markdown
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@vankop vankop force-pushed the refactor-json-modules branch from 0f14d04 to 83fea25 Compare May 9, 2022 17:05
@sokra sokra merged commit 096efc3 into main Jun 2, 2022
@sokra sokra deleted the refactor-json-modules branch June 2, 2022 11:15
@sokra
Copy link
Copy Markdown
Member

sokra commented Jun 2, 2022

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default JSON loader uses too much memory

3 participants