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

Upgrade dependencies to latest #47

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Upgrade dependencies to latest #47

merged 1 commit into from
Oct 26, 2023

Conversation

maliroteh-sf
Copy link
Contributor

No description provided.

@maliroteh-sf maliroteh-sf requested a review from a team as a code owner October 26, 2023 21:48
@@ -53,36 +53,36 @@
"test-coverage": "node ./out/test/runTest.js --coverage",
"prettier:write": "prettier --write \"src/**/*.{ts, js}\"",
"prettier:verify": "prettier --list-different \"src/**/*.{ts, js}\"",
"bundle:extension": "esbuild ./src/extension.ts --bundle --outdir=out --format=cjs --target=es2020 --platform=node --external:vscode --external:@oclif/core --minify --sourcemap",
"bundle:extension": "esbuild ./src/extension.ts --bundle --outdir=out --format=cjs --target=es2020 --platform=node --external:vscode --external:@oclif/core --external:@salesforce/lwc-dev-mobile-core --minify --sourcemap",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Starting with v3.2.0 of lwc-dev-mobile-core, it has upgraded its dependency on @salesforce/core from 3.x to 5.x This seems to have changed the behavior of @salesforce/core around loading message files for loggers.

Since we're creating a bundle, if we don't exclude lwc-dev-mobile-core then it won't be able to load its message files. This is b/c lwc-dev-mobile-core has code like Messages.importMessagesDirectory(__dirname); but if it is being bundled, then wrong value will be used for __dirname (value would be the path to the extension root dir rather than the path to the dependency root dir in node_modules)

Copy link
Collaborator

@khawkins khawkins left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for catching this.

@maliroteh-sf maliroteh-sf merged commit bcc9c93 into main Oct 26, 2023
17 checks passed
@maliroteh-sf maliroteh-sf deleted the dep branch October 26, 2023 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants