Skip to content

Commit

Permalink
refactor: move vue dist import to webpack alias
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDog896 committed Dec 27, 2023
1 parent 3564a47 commit 9dfbdaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ const config = {
MCT: path.join(projectRootDir, 'src/MCT'),
testUtils: path.join(projectRootDir, 'src/utils/testUtils.js'),
objectUtils: path.join(projectRootDir, 'src/api/objects/object-utils.js'),
utils: path.join(projectRootDir, 'src/utils')
utils: path.join(projectRootDir, 'src/utils'),
vue: 'vue/dist/vue.esm-bundler'
}
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion src/MCT.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*****************************************************************************/
/* eslint-disable no-undef */
import EventEmitter from 'EventEmitter';
import { createApp, markRaw } from 'vue/dist/vue.esm-bundler';
import { createApp, markRaw } from 'vue';

import ActionsAPI from './api/actions/ActionsAPI';
import AnnotationAPI from './api/annotation/AnnotationAPI';
Expand Down

0 comments on commit 9dfbdaf

Please sign in to comment.