aurelia / aurelia/webpack-plugin
unable to use "lazy" in html, "Can't resolve 'bundle'
- Dominant language
- TypeScript
- Stars
- 89
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
**I'm submitting a bug report**
* **Library Version:**
1.2.0
**Please tell us about your environment:**
* **Operating System:**
Windows 7
* **Node Version:**
6.9.4
* **NPM Version:**
3.10.10
* **Webpack AND Version**
webpack 2.2.0
* **Browser:**
all
* **Language:**
TypeScript
**Current behavior:**
When I specify "lazy" to "require" tag in html.
``
And perform webpack bundle, no split bundle created, and can observe the following warning:
`WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'bundle' in 'C:\Users\Jin\IdeaProjects\TestAurelia\src'
BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.
You need to specify 'bundle-loader' instead of 'bundle'.
@ ./src ^\.\/.*$
@ ./~/aurelia-loader-webpack/dist/commonjs/aurelia-loader-webpack.js`
Maybe the following source code at line 50 and 51
` if (lazy || bundle)
output += `bundle?`;`
should be fixed to
` if (lazy || bundle)
output += `bundle-loader?`;`
**Expected/desired behavior:**
chunk bundle should be created for my component, like 1.chunk.js, 2.chunk.js and etc ...
* **What is the expected behavior?**
* **What is the motivation / use case for changing the behavior?**
Contributor guide
Assessment
This issue has not been assessed yet.