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

fix: use require function passed into wrapper #215

Merged
merged 2 commits into from Mar 12, 2021

Conversation

ewanharris
Copy link
Contributor

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

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
* @param {string} id The module identifier
* @public
*/
export default function Module(id) {
Copy link

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)

@build
Copy link

build commented Mar 12, 2021

Warnings
⚠️

lib/platform/require.js#L9 - lib/platform/require.js line 9 – Import and export declarations are not supported yet. (node/no-unsupported-features/es-syntax)

Messages
📖 🎉 - congrats on your new release
📖

✅ All tests are passing
Nice one! All 4 tests are passing.

Generated by 🚫 dangerJS against f01b082

Copy link
Contributor

@sgtcoolguy sgtcoolguy left a 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)

* @param {string} id The module identifier
* @public
*/
export default function Module(id) {
Copy link

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)

@sgtcoolguy sgtcoolguy merged commit f15e103 into tidev:master Mar 12, 2021
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.

None yet

3 participants