Skip to content

Commit

Permalink
Disable source maps (#211)
Browse files Browse the repository at this point in the history
* chore: disable sourcemaps

* chore: add changeset
  • Loading branch information
morellodev authored May 3, 2024
1 parent f05f358 commit 010696e
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-pugs-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-awesome-reveal": patch
---

Disable sourcemaps generation
3 changes: 1 addition & 2 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
"scripts": {
"build": "tsc --noEmit && vite build",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"prepublishOnly": "vite build"
"lint:fix": "eslint --fix ."
},
"peerDependencies": {
"@emotion/react": "^11.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/lib/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
5 changes: 3 additions & 2 deletions packages/lib/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"isolatedModules": true,
"jsx": "react-jsx",
Expand All @@ -8,6 +9,6 @@
"skipLibCheck": true,
"target": "ESNext"
},
"extends": "../../tsconfig.json",
"include": ["src"]
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
11 changes: 11 additions & 0 deletions packages/lib/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true,
"strict": true
},
"include": ["vite.config.ts"]
}
3 changes: 0 additions & 3 deletions packages/lib/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference types="vite/client" />

import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
Expand All @@ -18,7 +16,6 @@ export default defineConfig({
build: {
target: "esnext",
minify: false,
sourcemap: true,
lib: {
entry: "src/index.ts",
},
Expand Down
1 change: 1 addition & 0 deletions packages/playground/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
3 changes: 2 additions & 1 deletion packages/playground/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"noEmit": true,
"target": "ESNext"
},
"include": ["src"]
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
11 changes: 11 additions & 0 deletions packages/playground/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true,
"strict": true
},
"include": ["vite.config.ts"]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
Expand Down

0 comments on commit 010696e

Please sign in to comment.