Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: minify incorrect (#23)

Whitewatercf991292051a
diff --git a/package.json b/package.json
index 89891984f9..8416d80fad 100644
--- a/package.json
+++ b/package.json
@@ -1,22 +1,20 @@
{
- "name": "pathfinder",
- "version": "0.0.0",
- "private": true,
- "scripts": {
- "dev": "pnpm --filter @pathfinder/app dev",
- "build": "pnpm --filter @pathfinder/app build",
- "export": "pnpm --filter @pathfinder/app export",
- "start": "pnpm --filter @pathfinder/app start",
- "lint": "pnpm --filter @pathfinder/app lint"
- },
- "dependencies": {
- },
- "devDependencies": {
- "prettier": "^2.7.1",
- "eslint": "8.22.0",
- "eslint-config-next": "12.3.1",
- "eslint-config-prettier": "^8.5.0",
- "eslint-plugin-prettier": "^4.2.1"
- }
+ "name": "pathfinder",
+ "version": "0.0.0",
+ "private": true,
+ "scripts": {
+ "dev": "pnpm --filter @pathfinder/app dev",
+ "build": "pnpm --filter @pathfinder/app build",
+ "export": "pnpm --filter @pathfinder/app export",
+ "start": "pnpm --filter @pathfinder/app start",
+ "lint": "pnpm --filter @pathfinder/app lint"
+ },
+ "dependencies": {},
+ "devDependencies": {
+ "prettier": "^2.7.1",
+ "eslint": "8.22.0",
+ "eslint-config-next": "12.3.1",
+ "eslint-config-prettier": "^8.5.0",
+ "eslint-plugin-prettier": "^4.2.1"
}
-
\ No newline at end of file
+}
diff --git a/packages/app/next.config.js b/packages/app/next.config.js
index 56239b84be..85bb0ff287 100644
--- a/packages/app/next.config.js
+++ b/packages/app/next.config.js
@@ -1,7 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
+ productionBrowserSourceMaps: true,
reactStrictMode: false,
- swcMinify: true,
+ swcMinify: false,
};
module.exports = nextConfig;
diff --git a/packages/app/tsconfig.json b/packages/app/tsconfig.json
index 008141347f..592edefeb6 100644
--- a/packages/app/tsconfig.json
+++ b/packages/app/tsconfig.json
@@ -1,6 +1,6 @@
{
"compilerOptions": {
- "target": "es5",
+ "target": "ES2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,