Skip to content

Commit

Permalink
Downgrade Vue from v3 to v2
Browse files Browse the repository at this point in the history
Support for Vue 3 will be added in the v4 of this package.
  • Loading branch information
titouanmathis committed Mar 18, 2022
1 parent 72d13cd commit c428d67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/demo/meta.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createConfig } from '@studiometa/webpack-config';
import { defineConfig } from '@studiometa/webpack-config';

export default createConfig({
export default defineConfig({
presets: ['prototyping', 'yaml'],
// Exclude the `test.scss` file from the merge
mergeCSS: /^(?!.*css\/test\.scss).*$/,
Expand Down
1 change: 1 addition & 0 deletions packages/demo/src/js/Counter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</template>

<script>
// eslint-disable-next-line import/no-unresolved
import VueIcon from '../svg/icon.svg?as-vue-component';
export default {
Expand Down
4 changes: 2 additions & 2 deletions packages/demo/src/js/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Base, createApp } from '@studiometa/js-toolkit';
import { Cursor } from '@studiometa/ui';
import { createApp as createVueApp } from 'vue';
import Vue from 'vue';
import VueComponent from './VueComponent.vue';
import config from './config.yaml';

Expand Down Expand Up @@ -41,7 +41,7 @@ class App extends Base {
*/
async onClick() {
const { default: VueCounter } = await import(/* webpackPreload: true */ './Counter.vue');
this.vue = createVueApp({
this.vue = new Vue({
components: {
VueCounter,
},
Expand Down

0 comments on commit c428d67

Please sign in to comment.