Skip to content

Commit

Permalink
Add back rollup-plugin-size
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed May 28, 2023
1 parent 01cdd01 commit 13faf29
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 12 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"rimraf": "^4.1.2",
"rollup": "^3.23.0",
"rollup-plugin-preserve-directives": "^0.2.0",
"rollup-plugin-size": "^0.3.1",
"rollup-plugin-visualizer": "^5.9.0",
"rollup-preset-solid": "^2.0.1",
"semver": "^7.5.1",
Expand Down
33 changes: 33 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
// @ts-check

import { resolve } from 'node:path'
import { fileURLToPath } from "node:url"
import { defineConfig } from 'rollup'
import babel from '@rollup/plugin-babel'
import { babel } from '@rollup/plugin-babel'
import terser from '@rollup/plugin-terser'
import size from 'rollup-plugin-size'
import { visualizer } from 'rollup-plugin-visualizer'
import replace from '@rollup/plugin-replace'
import nodeResolve from '@rollup/plugin-node-resolve'
import { nodeResolve } from '@rollup/plugin-node-resolve'
import commonJS from '@rollup/plugin-commonjs'
import withSolid from 'rollup-preset-solid'
import preserveDirectives from 'rollup-plugin-preserve-directives'
Expand Down Expand Up @@ -304,6 +307,7 @@ function umdProd({
mangle: true,
compress: true,
}),
size({}),
visualizer({
filename: `${packageDir}/build/stats-html.html`,
template: 'treemap',
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
"@tanstack/query-devtools": ["packages/query-devtools"]
}
},
"include": [".eslintrc.cjs", "scripts"]
"include": [".eslintrc.cjs", "rollup.config.mjs", "scripts"]
}
10 changes: 1 addition & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"module": "ES2020",
"moduleResolution": "node",
"noEmit": true,
},
"include": ["rollup.config.mjs"],
"files": [],
"references": [
{ "path": "packages/query-core" },
{ "path": "packages/query-persist-client-core" },
Expand Down

0 comments on commit 13faf29

Please sign in to comment.