Skip to content

Commit

Permalink
Don't re-normalize slashes in a webpack request
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Jan 10, 2020
1 parent 4a11aa8 commit 7e9c723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ loader.pitch = function (request) {
import {Comlink} from 'comlinkjs';
${multi ? '' : 'var inst;'}
export default function f() {
${multi ? 'var inst =' : 'inst = inst ||'} Comlink.proxy(require('!worker-loader?${JSON.stringify(options)}!${slash(path.resolve(__dirname, 'comlink-worker-loader.js'))}!${slash(request)}')());
${multi ? 'var inst =' : 'inst = inst ||'} Comlink.proxy(require('!worker-loader?${JSON.stringify(options)}!${slash(path.resolve(__dirname, 'comlink-worker-loader.js'))}!${request}')());
return this instanceof f ? new inst : inst;
}
`.replace(/\n\s*/g, '');
Expand Down

0 comments on commit 7e9c723

Please sign in to comment.