Skip to content

Commit 89ae425

Browse files
committed
chore: externalize emotion
1 parent 844837e commit 89ae425

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

vite.config.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,20 @@ export default defineConfig({
1212
fileName: (format) => `react-section-dividers.${format}.js`,
1313
},
1414
rollupOptions: {
15-
external: ['react', 'react-dom', '@emotion/react'],
15+
external: [
16+
'react',
17+
'react-dom',
18+
'@emotion/cache',
19+
'@emotion/hash',
20+
'@emotion/is-prop-valid',
21+
'@emotion/memoize',
22+
'@emotion/react',
23+
'@emotion/serialize',
24+
'@emotion/styled',
25+
'@emotion/styled/base',
26+
'@emotion/unitless',
27+
'@emotion/utils',
28+
],
1629
output: {
1730
globals: {
1831
react: 'React',

0 commit comments

Comments
 (0)