Skip to content

Commit 57d550e

Browse files
author
Larry Botha
committed
chore(rollup): use commonjs import to fix tests failing in Travis
1 parent 9af05ee commit 57d550e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rollup.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import resolve from 'rollup-plugin-node-resolve';
33
import svelte from 'rollup-plugin-svelte';
44
import typescript from '@rollup/plugin-typescript';
55

6-
import svelteConfig from './svelte.config';
6+
/**
7+
* Jest requires a CommonJs import
8+
*/
9+
const svelteConfig = require('./svelte.config');
710

811
export default {
912
input: './lib/index.js',

0 commit comments

Comments
 (0)