Skip to content

Commit e15b642

Browse files
committed
rename option to strictOrder
1 parent 7ebc1ab commit e15b642

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export default {
4747
},
4848

4949
// Preprocessors will be applied in the order passed down to preprocess
50-
// Default is (markup, then script, then style)
51-
orderPreprocessors: false,
50+
// Default is markup, then script, then style
51+
strictOrder: false,
5252

5353
// Emit CSS as "files" for other plugins to process
5454
emitCss: true,

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const pluginOptions = {
3131
extensions: true,
3232
emitCss: true,
3333
preprocess: true,
34-
orderPreprocessors: true,
34+
strictOrder: true,
3535

3636
// legacy — we might want to remove/change these in a future version
3737
onwarn: true,
@@ -228,7 +228,7 @@ module.exports = function svelte(options = {}) {
228228
Object.assign(preprocessOptions, { filename: id })
229229
).then(code => code.toString());
230230
} else {
231-
if (options.orderPreprocessors) {
231+
if (options.strictOrder) {
232232
preprocessPromise = options.preprocess.reduce((acc, cur) => {
233233
return Promise.resolve(acc).then(code => {
234234
return preprocess(

0 commit comments

Comments
 (0)