Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 94ec5ae

Browse files
committed
feat(rollup): pass params to svelte compilers
1 parent babbefb commit 94ec5ae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

rollup/svelte2.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ module.exports = (args = {}) => {
3333
const { js } = compile(result.toString(), {
3434
onwarn : (warning) => this.warn(warning),
3535

36-
...options.options,
36+
...defaults.options,
37+
...(args.options || {}),
3738

3839
filename,
3940
});

rollup/svelte3.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ module.exports = (args = {}) => {
3232
dependencies.forEach((dep) => this.addWatchFile(dep));
3333

3434
const { js, warnings } = compile(processed, {
35-
...options.options,
35+
...defaults.options,
36+
...(args.options || {}),
3637

3738
filename,
3839
});

0 commit comments

Comments
 (0)