mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 23:55:08 +00:00
chore: bump prettier v3 and format all code (#12111)
* chore: bump prettier v3 and format all code * chore: mjs config * chore: revert * chore: revert * chore: update lock
This commit is contained in:
@@ -35,7 +35,7 @@ const transformSFC = (code, path) => {
|
||||
if (descriptor.script) {
|
||||
const content = descriptor.script.content.replace(
|
||||
'export default',
|
||||
'const script ='
|
||||
'const script =',
|
||||
);
|
||||
output.push(content);
|
||||
} else if (descriptor.scriptSetup) {
|
||||
@@ -88,7 +88,7 @@ module.exports = {
|
||||
code = transformJsx(code, path);
|
||||
}
|
||||
return {
|
||||
code: transformScript(code)
|
||||
code: transformScript(code),
|
||||
};
|
||||
},
|
||||
};
|
||||
|
@@ -14,14 +14,12 @@ function getPostcssPlugins(rootConfig) {
|
||||
const plugins = rootConfig.plugins || [];
|
||||
|
||||
if (Array.isArray(plugins)) {
|
||||
const hasAutoprefixerPlugin = plugins.find(
|
||||
(plugin) => {
|
||||
if (typeof plugin === 'object') {
|
||||
return plugin.postcssPlugin === 'autoprefixer';
|
||||
}
|
||||
return plugin === 'autoprefixer';
|
||||
const hasAutoprefixerPlugin = plugins.find((plugin) => {
|
||||
if (typeof plugin === 'object') {
|
||||
return plugin.postcssPlugin === 'autoprefixer';
|
||||
}
|
||||
);
|
||||
return plugin === 'autoprefixer';
|
||||
});
|
||||
if (hasAutoprefixerPlugin) {
|
||||
return plugins;
|
||||
}
|
||||
|
Reference in New Issue
Block a user