Skip to content

Commit 25482a7

Browse files
7-zete-7weaverryan
authored andcommitted
[Turbo] Fix TypeScript compilation issue... again
1 parent e84a31b commit 25482a7

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/Turbo/Resources/assets/dist/turbo_controller.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Controller } from '@hotwired/stimulus';
2-
import * as Turbo from '@hotwired/turbo';
2+
import '@hotwired/turbo';
33

4-
window.Turbo = Turbo;
54
class turbo_controller extends Controller {
65
}
76

src/Turbo/Resources/assets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@hotwired/stimulus": "^3.0.0"
2020
},
2121
"devDependencies": {
22-
"@hotwired/turbo": "^7.0.1",
22+
"@hotwired/turbo": "^7.1.0",
2323
"@hotwired/stimulus": "^3.0.0"
2424
}
2525
}

src/Turbo/Resources/assets/src/turbo_controller.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
*/
99

1010
import { Controller } from '@hotwired/stimulus';
11-
import * as Turbo from '@hotwired/turbo';
12-
13-
// Expose Turbo to the rest of the app to allow for dynamic Turbo calls
14-
window.Turbo = Turbo;
11+
import '@hotwired/turbo';
1512

1613
/**
1714
* Empty Stimulus controller only used for Symfony Flex wiring.

0 commit comments

Comments
 (0)