diff --git a/src/Assets/FileAsset.php b/src/Assets/FileAsset.php index 7b9053f..f825cbc 100644 --- a/src/Assets/FileAsset.php +++ b/src/Assets/FileAsset.php @@ -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; }