rslib icon indicating copy to clipboard operation
rslib copied to clipboard

[Feature]: Way to bypass external warning

Open fi3ework opened this issue 9 months ago • 0 comments

What problem does this feature solve?

Given a source code like below, which targeting ESM output:

const A = require('react')

There will be a warning from composeExternalsWarnConfig, if user has explictly config module react, the warning should dismiss.

What does the proposed API look like?

Respect use's externals config.

fi3ework avatar Apr 10 '25 11:04 fi3ework