https://github.com/drwpow/example-standard-pkg-flow
https://github.com/drwpow/example-standard-pkg-flow
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/drwpow/example-standard-pkg-flow
- Owner: drwpow
- Created: 2019-03-11T02:13:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-11T02:13:56.000Z (over 7 years ago)
- Last Synced: 2025-02-10T04:17:25.101Z (over 1 year ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# standard-package-flow-example
## 🤓 Install
```bash
npm i
```
## 🐛 Bug
### Steps to Reproduce
1. Run `npm run build`. It will fail.
2. Delete `src/shared/package.json`. It will succeed.
### More info
This problem is highlighted using `@babel/preset-flow`, but may be a more
general problem with how `.babelrc` is loaded (it may even be an issue with
Babel). It seems that whenever a `package.json` is encountered, the `.babelrc`
no longer applies.
However, it doesn’t seem that adding a `.babelrc` inside `src/shared` fixes it.
The same error occurs.
Also, to get this to run, `**/*.json` has to be ignored in the setup config.