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
I am creating this issue to write down some thoughts about future (hopefully near future) direction
for the wrensec-ui project.
Current state of things
We have recently migrated from Grunt to Gulp. This was intended as an intermediate step which served its
purpose - getting rid of legacy dependencies without requiring a major rewrite. The real target is now to
migrace source code from AMD to ESM and switch to a modern bundler (Webpack/Vite/Rollup).
AMD had its place in the past, but all modern tools and libraries are ESM based. We can not use better tools
than RequireJS if our source code is AMD and we can not simply switch to ESM when our bundler is RequireJS.
ESM will allow us to use modern tools and libraries, use modern ECMA Script syntax and produce better optimized
bundles.
What needs to be done
We need to define migration steps for Wren Security projects based on wrensec-ui. These steps should cover
how to migrate AMD to ESM, determine what tool to use for bundling and how the configuration should look like.
We can define the following goals for the ESM migration:
read writeups from other projects that have already migrated from AMD to ESM
I am creating this issue to write down some thoughts about future (hopefully near future) direction
for the wrensec-ui project.
Current state of things
We have recently migrated from Grunt to Gulp. This was intended as an intermediate step which served its
purpose - getting rid of legacy dependencies without requiring a major rewrite. The real target is now to
migrace source code from AMD to ESM and switch to a modern bundler (Webpack/Vite/Rollup).
AMD had its place in the past, but all modern tools and libraries are ESM based. We can not use better tools
than RequireJS if our source code is AMD and we can not simply switch to ESM when our bundler is RequireJS.
ESM will allow us to use modern tools and libraries, use modern ECMA Script syntax and produce better optimized
bundles.
What needs to be done
We need to define migration steps for Wren Security projects based on wrensec-ui. These steps should cover
how to migrate AMD to ESM, determine what tool to use for bundling and how the configuration should look like.
We can define the following goals for the ESM migration:
What is the final target
The final target for the migration is as follows:
.jsm
or.js
extension).What I want to avoid during the migration:
These are non-goals for the migration:
Potential risks and challenges
The text was updated successfully, but these errors were encountered: