From 648304aae144d0b31422ba3c7cad9506a5078174 Mon Sep 17 00:00:00 2001 From: Pascal Baljet Date: Tue, 30 Jan 2024 14:46:12 +0100 Subject: [PATCH] Prevent any protonemedia imports from generated Vue components --- app/package.json | 2 +- ...nentsTest__it_builds_the_components__2.vue | 8 ++--- ...nentsTest__it_builds_the_components__3.vue | 8 ++--- ...nentsTest__it_builds_the_components__4.vue | 6 ++-- ...nentsTest__it_builds_the_components__7.vue | 4 +-- ...nentsTest__it_builds_the_components__8.vue | 4 +-- lib/SpladeCorePlugin.js | 2 ++ lib/main.js | 4 +-- package.json | 4 +-- src/BladeViewExtractor.php | 30 +++++-------------- src/Commands/InstallNewApp.php | 2 +- 11 files changed, 29 insertions(+), 45 deletions(-) diff --git a/app/package.json b/app/package.json index 8892945..5234a32 100644 --- a/app/package.json +++ b/app/package.json @@ -7,7 +7,7 @@ }, "devDependencies": { "@headlessui/vue": "^1.7.17", - "@protonemedia/laravel-splade-core": "file:../protonemedia-laravel-splade-core-3.0.0.tgz", + "@protonemedia/laravel-splade-core": "file:../protonemedia-laravel-splade-core-4.0.0.tgz", "@protonemedia/laravel-splade-vite": "^1.0.3", "@vitejs/plugin-vue": "^4.3.4", "axios": "^1.1.2", diff --git a/app/tests/Unit/Console/__snapshots__/BuildComponentsTest__it_builds_the_components__2.vue b/app/tests/Unit/Console/__snapshots__/BuildComponentsTest__it_builds_the_components__2.vue index 90c75b8..0d8c2e7 100644 --- a/app/tests/Unit/Console/__snapshots__/BuildComponentsTest__it_builds_the_components__2.vue +++ b/app/tests/Unit/Console/__snapshots__/BuildComponentsTest__it_builds_the_components__2.vue @@ -1,10 +1,10 @@