Skip to content

Commit

Permalink
Merge bda72cd into 791ab3f
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed Feb 24, 2020
2 parents 791ab3f + bda72cd commit 84a5add
Show file tree
Hide file tree
Showing 4 changed files with 702 additions and 702 deletions.
5 changes: 3 additions & 2 deletions index.js
Expand Up @@ -2,8 +2,9 @@

const {inspect} = require('util');
const {Transform} = require('stream');
const omit = require('lodash/omit');

const {compile, preprocess} = require('svelte');
const {compile, preprocess} = require('svelte/compiler');
const inspectWithKind = require('inspect-with-kind');
const isPlainObject = require('is-plain-object');
const {isVinyl} = require('vinyl');
Expand Down Expand Up @@ -115,7 +116,7 @@ ${errors.map((line, i) => `${i + 1}. ${line}`).join('\n')}`);
try {
result = compile(preprocessOption ? (await preprocess(file.contents.toString(), preprocessOption)).toString() : file.contents.toString(), {
filename: file.path,
...options
...omit(options, ['preprocess'])
});
} catch (err) {
if (file.path) {
Expand Down

0 comments on commit 84a5add

Please sign in to comment.