Skip to content

Commit 131a6b7

Browse files
committed
chore: externalize emotion
1 parent 55b3ad4 commit 131a6b7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

vite.config.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,7 @@ export default defineConfig({
1212
fileName: (format) => `react-section-dividers.${format}.js`,
1313
},
1414
rollupOptions: {
15-
external: [
16-
'react',
17-
'react-dom',
18-
'@emotion/core',
19-
'@emotion/react',
20-
'@emotion/css',
21-
'@emotion/styled',
22-
'@emotion/cache',
23-
'@emotion/serialize',
24-
'@emotion/utils',
25-
],
15+
external: ['react', 'react-dom', '@emotion/core', '@emotion/react', '@emotion/styled', '@emotion/css'],
2616
output: {
2717
globals: {
2818
react: 'React',

0 commit comments

Comments
 (0)