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: use require function passed into wrapper #215
Conversation
Pulling from global isn't entirely correct as it will be lacking the correct context that helps perform the require algorithm, by using the require function passed in by the wrapper that context will exist allowing the require algorithm to work correctly Fixes TIMOB-28382
lib/platform/require.js
Outdated
* @param {string} id The module identifier | ||
* @public | ||
*/ | ||
export default function Module(id) { |
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.
⚠️ lib/platform/require.js line 1 – Import and export declarations are not supported yet. (node/no-unsupported-features/es-syntax)
|
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.
LGTM, but I do think that perhaps the SDK itself may also need a fix (and that may make this moot)
lib/platform/require.js
Outdated
* @param {string} id The module identifier | ||
* @public | ||
*/ | ||
export default function Module(id) { |
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.
⚠️ lib/platform/require.js line 2 – Import and export declarations are not supported yet. (node/no-unsupported-features/es-syntax)
Pulling from global isn't entirely correct as it will be lacking the correct context that helps
perform the require algorithm, by using the require function passed in by the wrapper that context
will exist allowing the require algorithm to work correctly
Fixes TIMOB-28382