The new version of MSW supports a list of worker script directories in msw.workerDirectory. We can utilize that to ease the upgrade path and to generate the worker scripts at multiple examples at the same time while running npx msw init from the root of the repo.
The new version of MSW supports a list of worker script directories in
msw.workerDirectory
. We can utilize that to ease the upgrade path and to generate the worker scripts at multiple examples at the same time while runningnpx msw init
from the root of the repo.