Skip to content

Commit 06d47ea

Browse files
committed
build: vue plugin before others for sfc
1 parent 44ae437 commit 06d47ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const rootConfig = {
3636
"prismjs/components/prism-javascript",
3737
"prismjs/components/prism-jsx",
3838
"@vue/compiler-core/dist/compiler-core.cjs",
39-
"vue"
39+
"vue",
4040
],
4141
};
4242

@@ -48,7 +48,7 @@ export default [
4848
format: "esm",
4949
file: pkg.module,
5050
},
51-
plugins: [...rootConfig.plugins, vue({ css: false })],
51+
plugins: [vue({ css: false }), ...rootConfig.plugins],
5252
},
5353
// SSR build.
5454
{
@@ -59,8 +59,8 @@ export default [
5959
exports: "named", // remove warning about mixed exports
6060
},
6161
plugins: [
62-
...rootConfig.plugins,
6362
vue({ css: false, template: { optimizeSSR: true } }),
63+
...rootConfig.plugins,
6464
],
6565
},
6666
];

0 commit comments

Comments
 (0)