Skip to content
Open
Changes from all commits
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
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
* the License.
*/

import path from 'path';
import os from 'os';
import fs from 'fs';
import jsdom from 'jsdom';
import loaderUtils from 'loader-utils';
import LibraryTemplatePlugin from 'webpack/lib/LibraryTemplatePlugin';
Expand Down Expand Up @@ -96,7 +98,7 @@ async function prerender (parentCompilation, request, options, inject, loader) {

const outputOptions = {
// fix: some plugins ignore/bypass outputfilesystem, so use a temp directory and ignore any writes.
path: os.tmpdir(),
path: path.join(os.tmpdir(), fs.mkdtempSync('prerenderloader')),
filename: FILENAME
};

Expand Down