chore: update config

pull/2682/head
tangjinzhou 2020-07-26 21:35:41 +08:00
parent 735183f8c6
commit 05e34009e6
5 changed files with 21 additions and 3 deletions

@ -1 +1 @@
Subproject commit da9df8ad1ca2592994b34b5cecdc813dff94bc77
Subproject commit 0946782cced82b75cd9a75a80fa97814381e9d19

View File

@ -7,7 +7,7 @@ import antd from 'ant-design-vue/index.js';
// eslint-disable-next-line no-console
console.log('Vue version: ', version);
const basic = (_, { slots }) => {
return slots?.default();
return slots && slots.default && slots.default();
};
const app = createApp(App);
app

13
loader.js Normal file
View File

@ -0,0 +1,13 @@
function loader() {
return `
<script>
export default {
render() {
return null;
}
}
</script>
`;
}
module.exports = loader;

View File

@ -139,7 +139,7 @@
"prettier": "^1.18.2",
"pretty-quick": "^2.0.0",
"querystring": "^0.2.0",
"raw-loader": "^4.0.0",
"raw-loader": "^4.0.1",
"reqwest": "^2.0.5",
"rimraf": "^3.0.0",
"rucksack-css": "^1.0.2",

View File

@ -14,6 +14,11 @@ module.exports = {
{
test: /\.(vue|md)$/,
loader: 'vue-loader',
exclude: /\.(en-US.md|zh-CN.md)$/,
},
{
test: /\.(en-US.md|zh-CN.md)$/,
use: [{ loader: 'vue-loader' }, { loader: './loader.js' }],
},
{
test: /\.(js|jsx)$/,