Skip to content

Commit

Permalink
chore: update project config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Jan 27, 2024
1 parent 3f8496b commit 7221c02
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
playground-*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down
8 changes: 8 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020"],
"moduleResolution": "node16",
"module": "Node16"
}
}
2 changes: 1 addition & 1 deletion lib/webpack5/ChunkLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const AutoPublicPathRuntimeModule = require('./RuntimeModules/AutoPublicPath')
const ChunkLoaderFallbackRuntimeModule = require('./RuntimeModules/ChunkLoaderFallback')

module.exports = class WebExtensionChuckLoaderRuntimePlugin {
/** @param {undefined | import('../..').BackgroundOptions} options */
/** @param {undefined | import('../../index.d.ts').BackgroundOptions} options */
constructor(options, weakRuntimeCheck) {
this.options = options
this.weakRuntimeCheck = weakRuntimeCheck
Expand Down
1 change: 1 addition & 0 deletions lib/webpack5/RuntimeModules/ChunkLoaderFallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = function ChunkLoaderFallbackRuntimeModule(webpack) {
}
var browser
var chrome
var URL

const runtime = function () {
const isBrowser = !!(() => {
Expand Down
2 changes: 1 addition & 1 deletion lib/webpack5/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const HMRDevServerPlugin = require('./HMRDevServer')

module.exports = class WebExtensionPlugin {
/**
* @param {import('../../').WebExtensionPluginOptions} options
* @param {import('../../index.d.ts').WebExtensionPluginOptions} options
*/
constructor(options = {}) {
const { background } = options
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,10 @@
},
"peerDependencies": {
"webpack": "^5.0.0"
}
},
"files": [
"lib",
"index.js",
"index.d.ts"
]
}

0 comments on commit 7221c02

Please sign in to comment.