You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
The webpack 4 default is ['.wasm', '.mjs', '.js', '.json'].
Comparing the two, there are a few issues:
Neutrino's is missing .wasm
The order matters, and the order differs from the webpack default (for example a package might provide both an .mjs and a .js to simulataneously support both newer and older tooling, and the current Neutrino order would mean the legacy .js gets used instead of the .mjs).
(It's also unfortunate that we have to include unrelated file extensions such as .vue, but unless we completely overhaul the middleware API per #239 (comment) then there's no way to allow presets to declare additional extensions, without earlier presets then being configured incorrectly.)
The text was updated successfully, but these errors were encountered:
Running
neutrino --inspect
onmaster
with the@neutrinojs/react
preset, the resolve.extensions configuration is:The webpack 4 default is
['.wasm', '.mjs', '.js', '.json']
.Comparing the two, there are a few issues:
.wasm
.mjs
and a.js
to simulataneously support both newer and older tooling, and the current Neutrino order would mean the legacy.js
gets used instead of the.mjs
).(It's also unfortunate that we have to include unrelated file extensions such as
.vue
, but unless we completely overhaul the middleware API per #239 (comment) then there's no way to allow presets to declare additional extensions, without earlier presets then being configured incorrectly.)The text was updated successfully, but these errors were encountered: