We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 42dbc20 + c6ed795 commit b974239Copy full SHA for b974239
index.js
@@ -59,9 +59,12 @@ module.exports = function(source, map) {
59
const isProduction = this.minimize || process.env.NODE_ENV === 'production';
60
61
options.filename = this.resourcePath;
62
- options.format = this.version === 1 ? options.format || 'cjs' : 'es';
63
- options.shared =
64
- options.format === 'es' && 'svelte/shared.js';
+ if (!options.format) {
+ options.format = this.version === 1 ? options.format || 'cjs' : 'es';
+ }
65
+ if (!options.shared) {
66
+ options.shared = options.format === 'es' && 'svelte/shared.js';
67
68
69
if (options.emitCss) options.css = false;
70
0 commit comments