This commit is contained in:
Michael Kohl 2021-11-02 12:52:47 +07:00 committed by GitHub
parent d3a29bcdce
commit 065f363b81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ const config = environment.toWebpackConfig();
config.devtool = 'eval-source-map';
// Inject the preact/debug import into all the webpacker pack files (webpack entry points) that reference at least one Preact component
// so that Preact compoonents can be debugged with the Preact DevTools.
// so that Preact components can be debugged with the Preact DevTools.
config.entry = Object.entries(config.entry).reduce(
(previous, [entryPointName, entryPointFileName]) => {
if (/\.jsx$/.test(entryPointFileName)) {