Skip to content
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

[dev-tool] try / and \ path separators when checking bundling warnings #24386

Conversation

jeremymeng
Copy link
Member

It turns out that on windows some warnings are reported with \ separator while others with / at the same time, e.g.,

str ../../../common/temp/node_modules/.pnpm/[email protected]/node_modules/chai/lib/chai.js
str C:\github\jeremymeng\js-main\common\temp\node_modules\.pnpm\[email protected]\node_modules\sinon\pkg\sinon-esm.js

This PR changes to try both separators when checking whether to suppress bundle warnings.

…nings

It turns out that on windows some warnings are reported with `\` separator while
others with `/` at the same time, e.g.,

    str ../../../common/temp/node_modules/.pnpm/[email protected]/node_modules/chai/lib/chai.js
    str C:\github\jeremymeng\js-master\common\temp\node_modules\.pnpm\[email protected]\node_modules\sinon\pkg\sinon-esm.js

This PR changes to try both separators when checking whether to suppress bundle warnings.
@ghost ghost added the dev-tool Issues related to the Azure SDK for JS dev-tool label Jan 6, 2023
Copy link
Member

@witemple-msft witemple-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I could've sworn we only got / separators in warnings, but maybe that has changed?

common/tools/dev-tool/src/config/rollup.base.config.ts Outdated Show resolved Hide resolved
@jeremymeng jeremymeng enabled auto-merge (squash) February 24, 2023 17:59
@jeremymeng
Copy link
Member Author

but maybe that has changed?

maybe underlying package to resolve paths has a bug on windows? It's also strange to see both separators used on window.

@jeremymeng jeremymeng merged commit c8b48fe into Azure:main Feb 24, 2023
@jeremymeng jeremymeng deleted the dev-tool/bundle-warning-path-separator-windows branch February 24, 2023 18:47
@jeremymeng jeremymeng mentioned this pull request Sep 29, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tool Issues related to the Azure SDK for JS dev-tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants