Allows tree shaking unused modules (#3752)
* Allows tree shaking unused modules * don't tree shake embed-core side effects Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>pull/3815/head
parent
6d79f80928
commit
accf845f0e
|
@ -84,6 +84,15 @@ const nextConfig = {
|
|||
fs: false,
|
||||
};
|
||||
|
||||
/**
|
||||
* TODO: Find more possible barrels for this project.
|
||||
* @see https://github.com/vercel/next.js/issues/12557#issuecomment-1196931845
|
||||
**/
|
||||
config.module.rules.push({
|
||||
test: [/lib\/.*.tsx?/i],
|
||||
sideEffects: false,
|
||||
});
|
||||
|
||||
return config;
|
||||
},
|
||||
async rewrites() {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/app-store-cli",
|
||||
"sideEffects": false,
|
||||
"version": "0.0.0",
|
||||
"bin": "dist/cli.js",
|
||||
"engines": {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/app-store",
|
||||
"sideEffects": false,
|
||||
"version": "0.0.0",
|
||||
"main": "./index.ts",
|
||||
"files": [
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/config",
|
||||
"sideEffects": false,
|
||||
"version": "0.0.0",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/core",
|
||||
"sideEffects": false,
|
||||
"description": "Cal.com core functionality",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/emails",
|
||||
"sideEffects": false,
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {},
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/embed-react",
|
||||
"sideEffects": false,
|
||||
"version": "1.0.9",
|
||||
"description": "Embed Cal Link as a React Component",
|
||||
"license": "SEE LICENSE IN LICENSE",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/embed-snippet",
|
||||
"sideEffects": false,
|
||||
"version": "1.0.4",
|
||||
"main": "./dist/snippet.umd.js",
|
||||
"module": "./dist/snippet.es.js",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/eslint-plugin-eslint",
|
||||
"sideEffects": false,
|
||||
"version": "0.1.0",
|
||||
"main": "./src/index.js",
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/features",
|
||||
"sideEffects": false,
|
||||
"description": "Cal.com's main collocation of features",
|
||||
"authors": "Cal.com, Inc.",
|
||||
"version": "1.0.0",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/lib",
|
||||
"sideEffects": false,
|
||||
"version": "0.0.0",
|
||||
"main": "./index.ts",
|
||||
"types": "./index.ts",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/trpc",
|
||||
"sideEffects": false,
|
||||
"description": "Shared tRPC library for Cal.com",
|
||||
"authors": "zomars",
|
||||
"version": "1.0.0",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/tsconfig",
|
||||
"sideEffects": false,
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@calcom/ui",
|
||||
"sideEffects": false,
|
||||
"version": "0.0.0",
|
||||
"main": "./index.tsx",
|
||||
"types": "./index.tsx",
|
||||
|
|
Loading…
Reference in New Issue