Skip to content

Commit f7f5a8d

Browse files
committed
reset quotes
1 parent 88b45d3 commit f7f5a8d

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@
5757
"@storybook/addon-links": "^6.5.9",
5858
"@storybook/react": "^6.5.9",
5959
"@types/jest": "^28.1.5",
60-
"@types/react": "^16.14.0 || ^17.0.0 || ^18.0.0",
61-
"@types/react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0",
60+
"@types/react": "^16.14.11 || ^17.0.0 || ^18.0.0",
61+
"@types/react-dom": "^16.9.14 || ^17.0.0 || ^18.0.0",
6262
"@vitejs/plugin-react": "^2.0.0",
6363
"babel-loader": "^8.2.5",
6464
"husky": "^8.0.0",
6565
"jest": "^28.1.3",
6666
"lint-staged": "^13.0.3",
6767
"lottie-web": "^5.9.6",
6868
"prettier": "^2.7.1",
69-
"react": "^18.0.0",
70-
"react-dom": "^18.0.0",
69+
"react": "^16.14.0 || ^17.0.0 || ^18.0.0",
70+
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0",
7171
"rimraf": "^3.0.2",
7272
"rollup": "^2.76.0",
7373
"rollup-plugin-typescript2": "^0.32.1",

vite.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { defineConfig } from 'vite';
2-
import reactRefresh from '@vitejs/plugin-react';
1+
import { defineConfig } from "vite";
2+
import reactRefresh from "@vitejs/plugin-react";
33
// import typescript from "rollup-plugin-typescript2";
4-
import typescript from '@rollup/plugin-typescript';
4+
import typescript from "@rollup/plugin-typescript";
55

66
// https://vitejs.dev/config/
77
export default defineConfig({
@@ -10,27 +10,27 @@ export default defineConfig({
1010
build: {
1111
// Instruct Vite to bundle this project as a library
1212
lib: {
13-
entry: 'src/index.tsx',
14-
name: 'animated-dark-mode-toggle',
15-
formats: ['cjs', 'es'],
13+
entry: "src/index.tsx",
14+
name: "animated-dark-mode-toggle",
15+
formats: ["cjs", "es"],
1616
fileName: (format) => `index.${format}.js`,
1717
},
1818

1919
rollupOptions: {
2020
// Don't bundle react or react-dom
21-
external: ['react', 'react-dom'],
21+
external: ["react", "react-dom"],
2222

2323
output: {
2424
globals: {
2525
// Globally define React for UMD builds
26-
react: 'React',
26+
react: "React",
2727
},
2828
},
2929

3030
plugins: [
3131
typescript({
3232
// Ensure declaration files are outputted to our dist directory
33-
tsconfig: './tsconfig.lib.json',
33+
tsconfig: "./tsconfig.lib.json",
3434
}),
3535
],
3636
},

0 commit comments

Comments
 (0)