[JSライブラリ][新着情報][いいね][ブログ][フレーム編集][フォーム][データベース][スライドショー][ページ管理][サイト管理][グループ管理] vue.js 2 → 3にアップデート対応 OW-2521 #2173
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
npm run dev
で再ビルド+ Chrome拡張機能 でデバッグできました。npmライブラリ コマンド
※ vue-loader = 17使ってたので、作業不要
※ vue-template-compilerは、@vue/compiler-sfcに置き換わりました。
※ dayjsは、日付フォーマットのライブラリです。vueとの依存はありません。
対応中のみ @vue/compat を使いました
※ @vue/compatはVue 2 互換性ライブラリです。Vue 2とVue 3両方の書き方がほぼ使えます。
webpack.mix.js に追記
npmライブラリ コマンド(@vue/compat)
npm i -D @vue/compat # app.js, app.cssの最新化 npm run prod
対応終わったらアンインストール
npm uninstall @vue/compat # app.js, app.cssの最新化 npm run prod
github actionsで簡易テスト
https://github.com/opensource-workshop/connect-cms/actions/runs/14698904354
レビュー完了希望日
なし
関連Pull requests/Issues
なし
参考
https://v3-migration.vuejs.org/ja/migration-build
https://blog.capilano-fw.com/?p=6393#Vue
https://qiita.com/taisei-ide-lyd/items/4bdfdf6cd9345001795b
https://qiita.com/ison12/items/6b5b3e0d8338b3baac83
@change
について学ぼう | kamibloghttps://god48.com/vue-change
https://ja.vuejs.org/guide/essentials/event-handling
https://qiita.com/trapple/items/a8a91f9ba8d550c49ccf
DB変更の有無
無し
チェックリスト