We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d670654 commit c6ed795Copy full SHA for c6ed795
index.js
@@ -24,9 +24,12 @@ module.exports = function(source, map) {
24
const callback = this.async();
25
26
options.filename = this.resourcePath;
27
- options.format = this.version === 1 ? options.format || 'cjs' : 'es';
28
- options.shared =
29
- options.format === 'es' && 'svelte/shared.js';
+ if (!options.format) {
+ options.format = this.version === 1 ? options.format || 'cjs' : 'es';
+ }
30
+ if (!options.shared) {
31
+ options.shared = options.format === 'es' && 'svelte/shared.js';
32
33
34
if (options.emitCss) options.css = false;
35
0 commit comments