Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
- Upgrade to eslint 9 flat config

- Remove barrel file rewrite (sometime between 2.9 to 2.16, the client
  file imported no longer includes any components)
  • Loading branch information
Trinovantes committed Jun 18, 2024
1 parent c8eb72f commit 5f5a37f
Show file tree
Hide file tree
Showing 12 changed files with 1,164 additions and 1,795 deletions.
161 changes: 0 additions & 161 deletions .eslintrc.js

This file was deleted.

7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Quasar Unused Plugin

This is a Webpack 5 plugin for tree shaking unused Quasar components from generated bundles. If you are using Quasar as a standalone UI library with Webpack, then you will be importing from `node_modules/quasar/dist/quasar.esm.prod.js`. However, Webpack cannot tree shake unused components from this file because this file contains circular references. We can instead import the source code from `quasar/src/index.prod.js` and use this plugin to break the dependency chain.
This is a Webpack 5 plugin for tree shaking unused Quasar components from generated bundles.
If you are using Quasar as a standalone UI library with Webpack, then you will be importing from `node_modules/quasar/dist/quasar.esm.prod.js`.
However, Webpack cannot tree shake unused components from this file because this file contains circular references.
We can instead import the source code from `quasar/src/index.prod.js` and use this plugin to break the dependency chain.

## Example Savings (in `./examples` dir)

Expand All @@ -21,7 +24,7 @@ export default {
}
```

If you are externalizing node modules, you need to allowlist `quasar` so that Webpack can process this package.
If you are externalizing node modules, you need to add `quasar` to the allowlist so that Webpack can process this package.

```ts
import nodeExternals from 'webpack-node-externals'
Expand Down
Loading

0 comments on commit 5f5a37f

Please sign in to comment.