Skip to content

Commit 84e93b4

Browse files
authored
build: Exclude svelte from Rollup’s external module list (#767)
Fixes #766
1 parent 72ed591 commit 84e93b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ import pkg from './package.json';
1717
import typescript from 'rollup-plugin-typescript2';
1818
const subpackages = require('./subpackages');
1919

20+
const internalDeps = ['svelte'];
2021
const external = [
21-
...Object.keys(pkg.dependencies),
22+
...Object.keys(pkg.dependencies).filter(name => !internalDeps.includes(name)),
2223
'react',
2324
'socket.io-client',
2425
];

0 commit comments

Comments
 (0)