Skip to content

Commit

Permalink
feat: use treeshaking from tsup (#624)
Browse files Browse the repository at this point in the history
* chore: add new treeshake option to kit

* chore: add new treeshake option to kit

* chore: commit save point

* chore: add publint and fix dts issue

* chore: commit save point

* chore: commit save point

* chore: commit save point

* chore: commit save point

* chore: commit save point
  • Loading branch information
artmsilva authored May 6, 2024
1 parent ee3b661 commit f3da010
Show file tree
Hide file tree
Showing 15 changed files with 975 additions and 229 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs13-approuter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@washingtonpost/wpds-kitchen-sink": "2.0.0",
"@washingtonpost/wpds-ui-kit": "2.0.0",
"@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*",
"next": "13.5.6",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs13-pagerouter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@washingtonpost/wpds-kitchen-sink": "2.0.0",
"@washingtonpost/wpds-ui-kit": "2.0.0",
"@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*",
"next": "13.5.6",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 2 additions & 2 deletions apps/nextjs14-approuter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"lint": "next lint"
},
"dependencies": {
"@washingtonpost/wpds-kitchen-sink": "2.0.0",
"@washingtonpost/wpds-ui-kit": "2.0.0",
"@washingtonpost/wpds-kitchen-sink": "npm:wpds-kitchen-sink@*",
"@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*",
"next": "14.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
6 changes: 3 additions & 3 deletions apps/nextjs14-pagerouter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"private": true,
"scripts": {
"dev": "next dev",
"build-no": "next build",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@washingtonpost/wpds-kitchen-sink": "2.0.0",
"@washingtonpost/wpds-ui-kit": "2.0.0",
"@washingtonpost/wpds-kitchen-sink": "^2.0.0",
"@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*",
"next": "14.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
8 changes: 8 additions & 0 deletions build.washingtonpost.com/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,12 @@ module.exports = withBundleAnalyzer({
},
];
},
experimental: {
bundlePagesExternals: true,
optimizePackageImports: [
"@washingtonpost/wpds-ui-kit",
"@washingtonpost/wpds-assets",
"@washingtonpost/media-components",
],
},
});
2 changes: 1 addition & 1 deletion build.washingtonpost.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@washingtonpost/wpds-kitchen-sink": "2.0.0",
"@washingtonpost/wpds-tailwind-theme": "2.0.0",
"@washingtonpost/wpds-tokens": "2.0.0",
"@washingtonpost/wpds-ui-kit": "2.0.0",
"@washingtonpost/wpds-ui-kit": "npm:wpds-ui-kit@*",
"fuse.js": "^6.6.2",
"gray-matter": "^4.0.2",
"lz-string": "^1.4.4",
Expand Down
Loading

0 comments on commit f3da010

Please sign in to comment.