-
Notifications
You must be signed in to change notification settings - Fork 505
Description
Current Behavior
I'm using tsdx to bundle react-semantic-ui-datepickers and I can't upgrade rollup-plugin-copy
to v3 because the build fails with the error Unknown object type "asyncfunction"
. This is because we are not passing the flag objectHashIgnoreUnknownHack
to rpt2
which would solve the issue.
Can we add support for this flag on the build
command or is that kind of risky? The rpt2
documentation states: Setting this option to true will make object-hash ignore unknowns, at the cost of not invalidating the cache if ignored elements are changed.
Desired Behavior
Build can be successful if the plugin gets the flag as true
.
Suggested Solution
Add an option to the build
command - --ignore-unknown-hack
? - that results in the objectHashIgnoreUnknownHack
being true while creating the rollup
config.
Who does this impact? Who is this for?
tsdx
users with custom rollup
configs using plugins that use async/await, for example.
Describe alternatives you've considered
N/A.
Additional context
N/A.