Skip to content
Permalink
Browse files

fix(www): stub out module since resolve-from uses it now

  • Loading branch information...
tivac committed Aug 13, 2019
1 parent 8d42035 commit e11947cc25d9cd0203375e81d138272d385d2270
Showing with 10 additions and 2 deletions.
  1. +3 −2 packages/www/rollup.config.js
  2. +7 −0 packages/www/stubs/module.js
@@ -133,8 +133,9 @@ module.exports = [

plugins : [
require("rollup-plugin-alias")({
fs : require.resolve("./stubs/fs.js"),
path : require.resolve("./stubs/path.js"),
fs : require.resolve("./stubs/fs.js"),
path : require.resolve("./stubs/path.js"),
module : require.resolve("./stubs/module.js"),
}),

require("rollup-plugin-node-resolve")({
@@ -0,0 +1,7 @@
"use strict";

// Nothing ever seems to actually call this, but resolve-from needs
// it to exist I guess...
module.exports = {
_resolveFileName : (tgt, { id, filename, paths }) => () => tgt,
};

0 comments on commit e11947c

Please sign in to comment.
You can’t perform that action at this time.