Skip to content

Commit

Permalink
Externalize react-trix
Browse files Browse the repository at this point in the history
  • Loading branch information
thestephenmarshall committed Jul 22, 2024
1 parent d3e0230 commit 00e1616
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions playbook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-is": "^17.0.2",
"react-trix": "^0.9.0",
"trix": "^1.3.0",
"webpacker-react": "^0.3.2"
},
Expand Down
10 changes: 9 additions & 1 deletion playbook/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ export default defineConfig({
],
},
},
external: ['react', 'react/jsx-runtime', 'react-dom', 'react-is', 'trix', 'webpacker-react'],
external: [
'react',
'react/jsx-runtime',
'react-dom',
'react-is',
'trix',
'react-trix',
'webpacker-react',
],
},
},
css: {
Expand Down

0 comments on commit 00e1616

Please sign in to comment.