Skip to content

Remove ability to define modules as TS/JS#17

Merged
cowboyd merged 1 commit intomainfrom
cl/remove-loading-of-javascript-modules
Nov 18, 2022
Merged

Remove ability to define modules as TS/JS#17
cowboyd merged 1 commit intomainfrom
cl/remove-loading-of-javascript-modules

Conversation

@cowboyd
Copy link
Copy Markdown
Member

@cowboyd cowboyd commented Nov 18, 2022

Motivation

This feature required using dynamic import() which threw Webpack for a a loop, and also was a potential security risk.

Approach

We now have the ability to extend the list of global symbols when you create the PlatformScript interpreter. That is the point at which you can define any global functions you want, which can then be referenced by your PS modules. So this feature is not needed and is being removed.

@taras taras self-requested a review November 18, 2022 15:56
Copy link
Copy Markdown
Member

@taras taras left a comment

Choose a reason for hiding this comment

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

👍

@cowboyd cowboyd force-pushed the cl/remove-loading-of-javascript-modules branch from b220109 to 381602e Compare November 18, 2022 15:57
This feature required using dynamic `import()` which threw Webpack for
a a loop, and also was a potential security risk.

We now have the ability to extend the list of global symbols when you
create the PlatformScript interpreter. That is the point at which you
can define any global functions you want, which can then be referenced
by your PS modules. So this feature is not needed and is being removed.
@cowboyd cowboyd force-pushed the cl/remove-loading-of-javascript-modules branch from 381602e to 114620d Compare November 18, 2022 16:01
@cowboyd cowboyd merged commit 611e22b into main Nov 18, 2022
@cowboyd cowboyd deleted the cl/remove-loading-of-javascript-modules branch November 18, 2022 16:03
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