I have some problem with source code........
See original GitHub issuein ‘./src/tools/start.js’
let handleBundleComplete = async () => {
//I don't know what this assign operation means ?
handleBundleComplete = stats => !stats.stats[1].compilation.errors.length && runServer();
const server = await runServer();
const bs = browserSync.create();
bs.init({
...isDebug ? {} : { notify: false, ui: false },
proxy: {
target: server.host,
middleware: [wpMiddleware, hotMiddleware],
proxyOptions: {
xfwd: true,
},
},
}, resolve);
};
bundler.plugin('done', stats => handleBundleComplete(stats));
Is syntax like this ?
let handleBundleComplete = async ( ) => { handleBundleComplete = (...) => {...} do something.. }
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
10 Mistakes You're Probably Baking Into Your Source Code
Mistake 1: No Configurable Logging Level. Basically, you should have different levels of logging. Some common logging levels include Debug, ...
Read more >3 Things you should do to quickly fix your problem in a open ...
If you still cannot get your problems fixed, don't forget it is open source and you can always dive into the source code...
Read more >What is Source Code in Programming and How Does It Work?
Source code is the fundamental component of a computer program that is created by a programmer. It can be read and easily understood...
Read more >Source Code Leaks: The Real Problem Nobody Is Paying ...
Isolated, most of the source code is deemed to have no real value or use unless the attackers have other pieces of technology...
Read more >Identifying design problems in the source code
Due to missing, informal or outdated design documentation, developers often have to rely on the source code to identify design problems.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@weishijun14 Oh got it!
When it is run for the first time it does some extra stuff:
For 2nd, 3rd,… it is overridden to
@almeynman I found it, call Lazy loading function…