New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix nodejs import statement in example #1202
Conversation
TimDaub
commented
Apr 12, 2022
- Fixes Directory import is not supported resolving ES modules #1201
Based on conversation in mswjs#975
* chore: add "PathParams" to extract params from path strings * feat(RestHandler): extract path params from the path type * chore: move "types:ts" config to the root * fix(matchRequestUrl): strip path parameter modifiers from path names * feat(rest): remove the "ParamsType" generics Co-authored-by: Artem Zakharchenko <kettanaito@gmail.com>
…led" message (mswjs#1172) * fix: add service worker scope and worker script url to "Mocking enabled" message * chore(printStartMessage): remove context from the function Co-authored-by: Artem Zakharchenko <kettanaito@gmail.com>
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit eb028b5:
|
I'm closing this because MSW doesn't have official ESM support. The import format is implied when using a certain module type. I will update the usage examples once ESM support happens. Thanks for opening this! |
If msw doesn't have ESM support ur falsely advertising your package's functionality: https://github.com/mswjs/msw#usage-example |