Closed flyfishwv closed 1 year ago
node_module package imports get the extension added to them.
Import a common NPM package like axios
axios
import axios from 'axios';
The output after running the build includes the file extension
import axios from 'axios.mjs';
The import should NOT have the extension added.
Duplicate of #6
Is there an existing issue for this?
Description of the bug
node_module package imports get the extension added to them.
Steps To Reproduce
Import a common NPM package like
axios
import axios from 'axios';
The output after running the build includes the file extension
import axios from 'axios.mjs';
Expected behavior
The import should NOT have the extension added.
import axios from 'axios';
Screenshots
Additional context
axios
to the 'externals' and that didn't work.