From ec5143811995aa2ba02c7028d72a111a1c84fa69 Mon Sep 17 00:00:00 2001 From: Bowen Tan Date: Thu, 15 Sep 2022 10:24:23 +0800 Subject: [PATCH] add post build script This is to restore the patch of emotion: https://github.com/emotion-js/emotion/pull/2651, because rollup will concat these two strings to one. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index aa57eca..d599901 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "dev": "vite", "prepublish": "npm run typings && npm run build", "build": "vite build", + "postbuild": "sed -i -e 's/\"useInsertionEffect\"/\"useInsertion\"+\"Effect\"/g' ./dist/index.es.js", "typings": "tsc --emitDeclarationOnly", "preview": "vite preview" },