Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: ssr in webworker target
  • Loading branch information
chancehudson committed Jan 28, 2021
commit b2d56acca46af560ec12ef9e2caba39404f15aaa
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var qs = require('querystring')
module.exports = function () {}

module.exports.pitch = function (remainingRequest) {
var isServer = this.target === 'node'
var isServer = this.target === 'node' || this.target === 'webworker'
var isProduction = this.minimize || process.env.NODE_ENV === 'production'
var addStylesClientPath = loaderUtils.stringifyRequest(this, '!' + path.join(__dirname, 'lib/addStylesClient.js'))
var addStylesServerPath = loaderUtils.stringifyRequest(this, '!' + path.join(__dirname, 'lib/addStylesServer.js'))
Expand Down