-
Notifications
You must be signed in to change notification settings - Fork 68
fix(meetings): address version resolution #664
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
Changes from all commits
5a7248f
95549a0
4a13143
7baa039
b875ed5
49c33c6
e7d35cd
71ceac7
4545cee
0ba2829
9faadaf
022b815
4eb0298
9442740
a673962
08e599f
94fd528
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,8 @@ const {CleanWebpackPlugin} = require('clean-webpack-plugin'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
| const {version} = require('./package.json'); | ||
|
|
||
| const widgetsDir = path.dirname(require.resolve('@webex/widgets/package.json')); | ||
|
|
||
| module.exports = function(env, argv) { | ||
| return { | ||
| cache: true, | ||
|
|
@@ -18,6 +20,13 @@ module.exports = function(env, argv) { | |
| devtool: argv.mode === 'production' ? 'source-map' : 'inline-source-map', | ||
| resolve: { | ||
| extensions: ['.js', '.jsx'], | ||
| alias: { | ||
| react: path.dirname(require.resolve('react/package.json', { paths: [widgetsDir] })), | ||
| 'react-dom': path.dirname(require.resolve('react-dom/package.json', { paths: [widgetsDir] })), | ||
| 'prop-types': path.dirname(require.resolve('prop-types/package.json', { paths: [widgetsDir] })), | ||
| webex: path.dirname(require.resolve('webex/package', { paths: [widgetsDir] })), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Update the Useful? React with 👍 / 👎.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. file has package only |
||
| '@webex/common': path.dirname(require.resolve('@webex/common/package.json', { paths: [widgetsDir] })), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This alias resolution can fail before webpack starts because Useful? React with 👍 / 👎.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, and it's intentional. The webex package's exports field only exposes three subpaths: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This alias can crash webpack config loading with Useful? React with 👍 / 👎.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we hosit, it will again break. |
||
| }, | ||
| fallback: { | ||
| "buffer": require.resolve("buffer/"), | ||
| "crypto": require.resolve("crypto-browserify"), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing
webexfrom this dependency block leaves@webex/widgets'webexpeer unsatisfied forsamples-meeting-app. That still works in lenient installs, but strict-peer environments (for example CI using strict peer checks) will fail dependency resolution before the sample can build or run. Keepingwebex: 2.60.4explicitly in the sample dependencies avoids those install-time failures and keeps the sample self-contained.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is passing, deps files are there