Skip to content

Instantly share code, notes, and snippets.

@c0bra
c0bra / compile.js
Last active November 18, 2019 17:05
Testing Svelte with Jest
const rollup = require('rollup');
const esm = require('esm');
const { config } = esm(module)('../rollup.config');
function generateOptions(filePath, name) {
return {
input: { input: filePath, plugins: config.plugins },
output: {
file: `./dist/test/${name}.js`,