Skip to content

Commit 95f91ba

Browse files
committed
Use require avoiding hoisted imports
1 parent 721f80e commit 95f91ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/javascript/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ import './turbo-migration';
9191

9292
// Import of Rails sprocket assets with minimal changes. After the initial migration these files should
9393
// be moved to an appropriate place after some adjustments to fit modern Rails JS.
94-
import 'sprocket-asset-import';
94+
require('sprocket-asset-import');
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import './flash';
2-
import './color-mode-picker';
1+
require('./flash');
2+
require('./color-mode-picker');
33

4-
import './request-for-comments';
4+
require('./request-for-comments');

0 commit comments

Comments
 (0)