npm i
./node_modules/.bin/webpack main.js --output-filename bundle.js
- Observation:
ERROR in ./main.js
Module not found: Error: Can't resolve 'Root/mod' in '/Users/tong/tmp/reexport-alias'
@ ./main.js 1:0-29
- Modification:
- In
main.js: commentexport {a} from 'Root/mod', uncommentexport a from 'Root/mod'
- In
- Observation:
build passed
- Modification:
- In
main.js: revert what was done in case 2 - In
.babelrc: remove the line"modules": false
- In
- Observation:
build passed
- Modification:
- In
main.js: commentexport {a} from 'Root/mod', uncommentexport {a} from './mod'
- In
- Observation:
build passed