Skip to content

Commit

Permalink
Do not switch mjs to js extension
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk committed Apr 24, 2024
1 parent cd8580c commit 31af242
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Assets/FileAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ class FileAsset implements Asset

public function __construct(string $file, string $ext)
{
if ($ext === 'mjs') {
$this->isModule = true;
$ext = 'js';
}

$this->isModule = $ext == 'mjs';
$this->file = $file;
$this->ext = $ext;
}
Expand Down

0 comments on commit 31af242

Please sign in to comment.