meteorlxy / vssue

:mailbox: A Vue-powered Issue-based Comment Plugin
https://vssue.js.org
MIT License
769 stars 105 forks source link

打包 vssue 警告,打包文件异常。 #115

Closed nuochong closed 3 years ago

nuochong commented 3 years ago

Environment

What's your question?

clone 代码并安装好依赖执行如下命令

"build": "cross-env NODE_ENV=production gulp",

过程中警告

untimeplugin-vue
ormalize.js' is imported by src\components\VssueComment.vue, but could not be resolved – treating it as an external dependency
'D:OpenSourcexxx.com-workspace
                                     ssue-build
untimeplugin-vue
ormalize.js' is imported by src\components\VssuePagination.vue, but could not be resolved – treating it as an external dependency
'D:OpenSourcexxx.com-workspace
                                     ssue-build
untimeplugin-vue
ormalize.js' is imported by src\components\VssueButton.vue, but could not be resolved – treating it as an external dependency

在生成的vssue.js中出现如下异常片段

import { Prop, Inject, Component, Vue as Vue$1, Watch, Provide } from 'vue-property-decorator';
import Vue from 'vue';
import __vue_normalize__ from 'D:OpenSourceluzhaoyang.com-workspacessue-build
ode_modules
ollup-plugin-vue
untime
ormalize.js';
import { formatDateTime, getCleanURL } from '@vssue/utils';
import VueI18n from 'vue-i18n';

在浏览器运行报错。

执行dev环境正常。

不知道如何正确打包。