Skip to content

Commit

Permalink
fix: another attempt to fix .mjs local imports
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed Nov 18, 2022
1 parent 7c913eb commit 890c334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/casl-prisma/README.md
Expand Up @@ -199,7 +199,7 @@ Want to file a bug, contribute some code, or improve documentation? Excellent! R

If you'd like to help us sustain our community and project, consider [to become a financial contributor on Open Collective](https://opencollective.com/casljs/contribute)

> See [Support CASL](https://casl.js.org/v5/en/support-casljs) for details.
> See [Support CASL](https://casl.js.org/v5/en/support-casljs) for details
## License

Expand Down
2 changes: 1 addition & 1 deletion packages/dx/config/rollup.config.js
Expand Up @@ -9,7 +9,7 @@ function extensionify(options) {
return {
name: 'extensionify',
renderChunk(code) {
return code.replace(/((?:import|export)[^}]+\}\s+from\s+)(['"])(\.\/[^'"]+)/g, (_, importedPackage, quote, packageName) => {
return code.replace(/((?:import|export)[^}]+\}\s*from\s*)(['"])(\.\/[^'"]+)/g, (_, importedPackage, quote, packageName) => {
return `${importedPackage}${quote}${packageName}${options.ext}`;
});
}
Expand Down

0 comments on commit 890c334

Please sign in to comment.