You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, the JavaScript file that loads the runtime is actually a separate NPM package. This is unnecessary and actually makes development more cumbersome.
The JavaScript in this package is split into two parts:
The NewfoldRuntime object that contains any registered properties.
The NewfoldRuntime JavaScript module which lives as a separate NPM package and can be loaded in other packages to provide access to functions.
We should:
Create a fn namespace on the main NewfoldRuntime object that gets set on the window. This way, other packages can just reference the required functions by calling window.NewfoldRuntime.fn.<functionName>.
Have the Composer package load the JavaScript file directly and do away with the NPM package.
The text was updated successfully, but these errors were encountered:
Right now, the JavaScript file that loads the runtime is actually a separate NPM package. This is unnecessary and actually makes development more cumbersome.
The JavaScript in this package is split into two parts:
NewfoldRuntime
object that contains any registered properties.NewfoldRuntime
JavaScript module which lives as a separate NPM package and can be loaded in other packages to provide access to functions.We should:
fn
namespace on the mainNewfoldRuntime
object that gets set on thewindow
. This way, other packages can just reference the required functions by callingwindow.NewfoldRuntime.fn.<functionName>
.The text was updated successfully, but these errors were encountered: