Skip to content

Commit

Permalink
feat: Migrate module build to vite
Browse files Browse the repository at this point in the history
* Webpack emitted invalid ES module code, as it still contained `require` calls which
  are undefined on ES modules
* Build time is much shorter
* Built assets are much smaller (530 kB vs 930 kB)
* Remove unneeded import

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jun 26, 2023
1 parent 9b347a7 commit 649b09e
Show file tree
Hide file tree
Showing 9 changed files with 1,201 additions and 80 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@ module.exports = {
plugins: [
'cypress',
],
parserOptions: {
babelOptions: {
plugins: [
'@babel/plugin-syntax-import-assertions',
],
},
},
}
Loading

0 comments on commit 649b09e

Please sign in to comment.