Coralite v0.28.5 Released
Coralite v0.28.5 is now available, delivering script compilation improvements and documentation updates for local asset paths and WASM support.
Optimized Script Bundling #
This release restores tree shaking during script manager compilation by reverting a previous feature that disabled it. This ensures that unused exports are pruned correctly, reducing production bundle sizes and improving loading times.
Enhanced Static Assets Plugin Documentation #
The documentation for the Static Assets Plugin has been updated to clarify that copying dependencies is supported from both NPM packages and local directories. The configuration instructions have been restructured to clearly outline schema expectations, making a clean distinction between package sources (using pkg and path) and local file sources (using src).
const config = {
plugins: [
staticAssets({
assets: [
// Copying from an NPM package dependency
{ pkg: 'monaco-editor', path: 'min/vs', dest: 'public/vs' },
// Copying from a local file directory
{ src: './src/assets/custom-theme.css', dest: 'public/theme.css' }
]
})
]
};
Additionally, note that the development server now automatically configures application/wasm MIME types for .wasm files, resolving common integration issues when running locally.
How to Upgrade #
To upgrade to the latest version, update your project dependencies:
npm install coralite@0.28.5
npm install coralite-scripts@0.28.5
