https://github.com/ndabap/esm-babel-plugin-module-resolver-issue
See https://github.com/standard-things/esm/issues/810
https://github.com/ndabap/esm-babel-plugin-module-resolver-issue
Last synced: about 1 year ago
JSON representation
See https://github.com/standard-things/esm/issues/810
- Host: GitHub
- URL: https://github.com/ndabap/esm-babel-plugin-module-resolver-issue
- Owner: ndabAP
- Created: 2019-06-01T07:58:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-01T08:18:07.000Z (about 7 years ago)
- Last Synced: 2025-04-04T09:09:20.653Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esm-babel-plugin-module-resolver-issue
## Setup
```bash
npm i && npm run dev
```
## Issue
Either the module alias isn't available or top-level `await` does not work.
1st try (doesn't work):
```bash
nodemon -r esm -r @babel/register src/index.js
```
2nd try (doesn't work):
```bash
nodemon -r @babel/register -r esm src/index.js
```
3rd try (works, but no alias possible):
```bash
nodemon -r esm src/index.js
```
`src/router.js`
```diff
- import user from '@routes/hello-world.route'
+ import user from './routes/hello-world.route'
```