Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Jan 27, 2024
1 parent ccbae62 commit 7ceabc0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
7 changes: 2 additions & 5 deletions lib/webpack5/RuntimeModules/LoadScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,13 @@ module.exports = function LoadScriptRuntimeModule(webpack, supportDynamicImport,
`catch {`,
Template.indent([
`if (!bug816121warned) {`,
Template.indent([
'console.warn("Chrome bug https://bugs.chromium.org/p/chromium/issues/detail?id=816121 hit.")',
'bug816121warned = true',
]),
Template.indent(['console.warn("Chrome bug https://crbug.com/816121 hit.")', 'bug816121warned = true']),
`}`,
`return ${FALLBACK_LOADER}(url, done, key, chunkId)`,
]),
`}`,
])}, ${this.f('e', [
`console.warn('jsonp chunk loader failed to use dynamic import.', e)`,
`console.warn('Dynamic import loader failed. Using fallback loader (see https://github.com/awesome-webextension/webpack-target-webextension#content-script).', e)`,
`${FALLBACK_LOADER}(url, done, key, chunkId)`,
])})`,
])
Expand Down
4 changes: 2 additions & 2 deletions tests/snapshot/mv2-basic+esm/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@
/******/ }
/******/ catch {
/******/ if (!bug816121warned) {
/******/ console.warn("Chrome bug https://bugs.chromium.org/p/chromium/issues/detail?id=816121 hit.")
/******/ console.warn("Chrome bug https://crbug.com/816121 hit.")
/******/ bug816121warned = true
/******/ }
/******/ return fallbackLoader(url, done, key, chunkId)
/******/ }
/******/ }, (e) => {
/******/ console.warn('jsonp chunk loader failed to use dynamic import.', e)
/******/ console.warn('Dynamic import loader failed. Using fallback loader (see https://github.com/awesome-webextension/webpack-target-webextension#content-script).', e)
/******/ fallbackLoader(url, done, key, chunkId)
/******/ })
/******/ }
Expand Down
4 changes: 2 additions & 2 deletions tests/snapshot/mv2-basic+esm/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@
/******/ }
/******/ catch {
/******/ if (!bug816121warned) {
/******/ console.warn("Chrome bug https://bugs.chromium.org/p/chromium/issues/detail?id=816121 hit.")
/******/ console.warn("Chrome bug https://crbug.com/816121 hit.")
/******/ bug816121warned = true
/******/ }
/******/ return fallbackLoader(url, done, key, chunkId)
/******/ }
/******/ }, (e) => {
/******/ console.warn('jsonp chunk loader failed to use dynamic import.', e)
/******/ console.warn('Dynamic import loader failed. Using fallback loader (see https://github.com/awesome-webextension/webpack-target-webextension#content-script).', e)
/******/ fallbackLoader(url, done, key, chunkId)
/******/ })
/******/ }
Expand Down
4 changes: 2 additions & 2 deletions tests/snapshot/mv3-basic+esm/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@
/******/ }
/******/ catch {
/******/ if (!bug816121warned) {
/******/ console.warn("Chrome bug https://bugs.chromium.org/p/chromium/issues/detail?id=816121 hit.")
/******/ console.warn("Chrome bug https://crbug.com/816121 hit.")
/******/ bug816121warned = true
/******/ }
/******/ return fallbackLoader(url, done, key, chunkId)
/******/ }
/******/ }, (e) => {
/******/ console.warn('jsonp chunk loader failed to use dynamic import.', e)
/******/ console.warn('Dynamic import loader failed. Using fallback loader (see https://github.com/awesome-webextension/webpack-target-webextension#content-script).', e)
/******/ fallbackLoader(url, done, key, chunkId)
/******/ })
/******/ }
Expand Down

0 comments on commit 7ceabc0

Please sign in to comment.