Inject lazy dependencies (#639)

Still TODO Find a nice way to expose WebampLazy as:

```JavaScript
import WebampLazy from 'webamp/lazy';
```
This commit is contained in:
Jordan Eldredge 2018-09-02 09:01:51 -07:00 committed by GitHub
parent 6591c98b40
commit 1bdb7d6345
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 324 additions and 273 deletions

View file

@ -7,7 +7,8 @@ module.exports = {
node: {
// Consider suggesting jsmediatags use: https://github.com/feross/is-buffer
// Cuts 22k
Buffer: false
Buffer: false,
fs: "empty"
},
module: {
rules: [
@ -64,7 +65,9 @@ module.exports = {
],
entry: {
bundle: "./js/webamp.js",
"bundle.min": "./js/webamp.js"
"bundle.min": "./js/webamp.js",
"lazy-bundle": "./js/webampLazy.js",
"lazy-bundle.min": "./js/webampLazy.js"
},
output: {
path: path.resolve(__dirname, "../built"),