Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devversion/webpack2-bug-no-exports
Webpack 2 Bug - Exporting * from a file with no exports
https://github.com/devversion/webpack2-bug-no-exports
Last synced: about 1 month ago
JSON representation
Webpack 2 Bug - Exporting * from a file with no exports
- Host: GitHub
- URL: https://github.com/devversion/webpack2-bug-no-exports
- Owner: devversion
- Created: 2016-12-26T17:35:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-26T17:39:56.000Z (about 8 years ago)
- Last Synced: 2024-11-11T06:12:29.449Z (2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack2-bug-no-exports
Webpack 2 Bug - Exporting * from a file with no exports### Steps to reproduce
- `npm install`
- `$(npm bin)/webpack && live-server dist`Now look at the console and see that the test failed (simple `console.log`)
---
The test can be fixed, by just uncommenting the line in [this file](https://github.com/DevVersion/webpack2-bug-no-exports/blob/master/%40material/core/no-exports.js#L2)
> This way the file will have an export and Webpack is able to continue proceeding.### What's happening?
Having a file that exports **everything** from another file
```js
export * from './my-exports';
```But the file `my-exports.js` does not export anything will cause that Webpack is not able to proceed parsing the other files.
**Note**: You can see the issue by looking at the folder `@material`.