Skip to content

Commit f53f6d2

Browse files
committed
Remove rollup-preserve-directives
Fixes #708. Since rollup-preserve-directives was a workaround for a bug, and the bug has been addressed, it can be removed now.
1 parent eef58e5 commit f53f6d2

3 files changed

Lines changed: 4 additions & 19 deletions

File tree

package-lock.json

Lines changed: 3 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"eslint": "^8.57.0",
7474
"eslint-config-react-app": "^7.0.1",
7575
"prop-types": "^15.8.1",
76-
"rollup-preserve-directives": "^1.1.3",
7776
"sass": "^1.85.1",
7877
"typescript": "^5.8.2",
7978
"uuid": "^11.1.0",

vite.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ import { defineConfig } from "vite";
22
import react from "@vitejs/plugin-react-swc";
33
import svgr from "vite-plugin-svgr";
44
import viteTsconfigPaths from "vite-tsconfig-paths";
5-
import preserveDirectives from "rollup-preserve-directives";
65
import child from "child_process";
76

87
const commitHash = child.execSync("git rev-parse HEAD || cat commit || echo 'unknown'").toString().trim();
98

109
export default defineConfig({
1110
base: process.env.PUBLIC_URL || "",
12-
plugins: [react(), svgr(), viteTsconfigPaths(), preserveDirectives()],
11+
plugins: [react(), svgr(), viteTsconfigPaths()],
1312
define: {
1413
'import.meta.env.VITE_GIT_COMMIT_HASH': JSON.stringify(commitHash),
1514
'import.meta.env.VITE_APP_BUILD_DATE': JSON.stringify(new Date().toISOString()),

0 commit comments

Comments
 (0)