Releases: Arkellys/rebuiltron
v6.2.0
v6.1.0
Changes
Automatically transform lodash
imports to support tree shaking.
Dependencies
- Add
@swc/plugin-transform-imports
- Update
@swc/core
to1.7.42
(patch) - Update
browserslist
to4.24.2
(minor) - Update
eslint
to9.14.0
(major) - Update
eslint-config-arklint
to3.3.0
(major) - Update
html-webpack-plugin
to5.6.3
(patch) - Update
mini-css-extract-plugin
to2.9.2
(patch) - Update
postcss-normalize
to13.0.1
(patch) - Update
postcss-preset-env
to10.0.9
(patch) - Update
sass-loader
to16.0.3
(patch) - Update
webpack
to5.96.1
(minor)
v6.0.3
v6.0.2
Changes
Always use mode production
for main and preloads.
Some libraries (I'm looking at you, ADM-ZIP) seem to be slower when mode
is development
. Given the sizes of main and preload files, there is no great difference in compilation time between the two modes. NODE_ENV
is still set to development
, so the compiled files are still not made for production.
v6.0.1
v6.0.0
Features
Add support for ES6 imports on all processes. 🎉
Main and preload files are now compiled even in development, which means CJS require
can now be replaced ES6 import
on the files of these processes. In order for this to work, main and preload paths have to point to the built files.
package.json
{
"main": "build/static/js/electron.main.js",
}
Main file
Since the preload file(s) will be compiled both in development and production, you can use a single path for both environment. Built files use the names declared in the configuration file: electron.preload.[name].js
new BrowserWindow({
webPreferences: {
// With a preload entry key named `app`
preload: path.join(__dirname, "electron.preload.app.js"),
}
});
Breaking changes
Remove support for ESM.
On the previous version, ESM was only supported thanks to a workaround (because I couldn't figure out how to configure webpack and SWC correctly) allowing the ESM equivalent of __dirname
to be compiled as a dynamic path . Now that import
can be used without ESM, this workaround was removed and so CJS __dirname
must be available.
Rebuiltron configuration file must now have the extension .js
instead of .cjs
.
rebuiltron.config.cjs ---> rebuiltron.config.js
Dependencies
- Remove
string-replace-loader
- Update
@pmmmwh/react-refresh-webpack-plugin
to0.5.15
(patch) - Update
@swc/core
to1.7.26
(minor) - Update
browserslist
to4.23.3
(patch) - Update
css-loader
to7.1.2
(patch) - Update
css-minimizer-webpack-plugin
to7.0.0
(major) - Update
detect-port
to1.6.1
(minor) - Update
eslint-config-arklint
to1.11.0
(minor) - Update
mini-css-extract-plugin
to2.9.1
(patch) - Update
postcss-normalize
to13.0.0
(major) - Update
postcss-preset-env
to10.0.3
(major) - Update
react-refresh
to0.14.2
(patch) - Update
sass-loader
to16.0.1
(major) - Update
webpack
to5.94.0
(minor) - Update
webpack-dev-server
to5.1.0
(minor)
v5.0.0
Breaking changes
Imports from ICSS :export
should now be named, see css-loader
's major release 7.0.0.
Migration guide
Before:
import styles from "./styles.css";
console.log(styles.myClass);
After:
import * as styles from "./styles.css";
console.log(styles.myClass);
// or
import { myClass } from "./styles.css";
console.log(myClass);
Dependencies
- Update
@swc/core
to1.4.16
(patch) - Update
css-loader
to7.1.1
(major) - Update
mini-css-extract-plugin
to2.9.0
(minor) - Update
postcss-preset-env
to9.5.6
(patch) - Update
sass-loader
to14.2.1
(minor) - Update
style-loader
to4.0.0
(major)
v4.1.0
v4.0.1
Dependencies
- Update
@swc/core
tov1.4.11
(patch) - Update
browserslist
to4.23.0
(minor) - Update
eslint
to8.57.0
(minor) - Update
eslint-config-arklint
to1.5.0
(minor) - Update
mini-css-extract-plugin
to2.8.1
(patch) - Update
postcss
to8.4.38
(patch) - Update
postcss-loader
to8.1.1
(patch) - Update
postcss-preset-env
to9.5.2
(minor) - Update
sass-loader
to14.1.1
(patch) - Update
webpack
to5.91.0
(minor) - Update
webpack-dev-server
to5.0.4
(patch)
v4.0.0
Features
With added support for ESM on Electron v28.0.0, Rebuiltron now also supports ESM apps. 🎉
Breaking changes
Rebuiltron configuration file must now have the extension .cjs
instead of .js
.
rebuiltron.config.js ---> rebuiltron.config.cjs
Dependencies
- Add
string-replace-loader
- Update
@swc/core
to1.3.107
(patch) - Update
browserslist
to4.22.3
(patch) - Update
html-webpack-plugin
to5.6.0
(minor) - Update
mini-css-extract-plugin
to2.8.0
(minor) - Update
postcss
to8.4.33
(patch) - Update
swc-loader
to0.2.4
(patch) - Update
webpack
to5.90.1
(patch)