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
Omar López 2022-08-11 10:36:30 -06:00 committed by GitHub
parent 6d79f80928
commit accf845f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 22 additions and 0 deletions

View File

@ -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() {

View File

@ -1,5 +1,6 @@
{
"name": "@calcom/app-store-cli",
"sideEffects": false,
"version": "0.0.0",
"bin": "dist/cli.js",
"engines": {

View File

@ -1,5 +1,6 @@
{
"name": "@calcom/app-store",
"sideEffects": false,
"version": "0.0.0",
"main": "./index.ts",
"files": [

View File

@ -1,5 +1,6 @@
{
"name": "@calcom/config",
"sideEffects": false,
"version": "0.0.0",
"main": "index.js",
"license": "MIT",

View File

@ -1,5 +1,6 @@
{
"name": "@calcom/core",
"sideEffects": false,
"description": "Cal.com core functionality",
"version": "0.0.0",
"private": true,

View File

@ -1,5 +1,6 @@
{
"name": "@calcom/emails",
"sideEffects": false,
"version": "0.0.0",
"private": true,
"scripts": {},

View File

@ -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",

View File

@ -1,5 +1,6 @@
{
"name": "@calcom/embed-snippet",
"sideEffects": false,
"version": "1.0.4",
"main": "./dist/snippet.umd.js",
"module": "./dist/snippet.es.js",

View File

@ -1,5 +1,6 @@
{
"name": "@calcom/eslint-plugin-eslint",
"sideEffects": false,
"version": "0.1.0",
"main": "./src/index.js",
"dependencies": {

View File

@ -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",

View File

@ -1,5 +1,6 @@
{
"name": "@calcom/lib",
"sideEffects": false,
"version": "0.0.0",
"main": "./index.ts",
"types": "./index.ts",

View File

@ -1,5 +1,6 @@
{
"name": "@calcom/trpc",
"sideEffects": false,
"description": "Shared tRPC library for Cal.com",
"authors": "zomars",
"version": "1.0.0",

View File

@ -1,5 +1,6 @@
{
"name": "@calcom/tsconfig",
"sideEffects": false,
"version": "0.0.0",
"private": true,
"main": "index.js",

View File

@ -1,5 +1,6 @@
{
"name": "@calcom/ui",
"sideEffects": false,
"version": "0.0.0",
"main": "./index.tsx",
"types": "./index.tsx",