Skip to content

Commit

Permalink
Merge pull request #56 from claudiucelfilip/himitsu
Browse files Browse the repository at this point in the history
Add support for new Wavelet (Himitsu)
  • Loading branch information
Claudiu Filip authored Dec 11, 2019
2 parents 6aabc00 + 6a1807f commit 4b74f2a
Show file tree
Hide file tree
Showing 49 changed files with 6,247 additions and 6,847 deletions.
34 changes: 34 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const path = require("path");
const CreateFileWebpack = require("create-file-webpack");

module.exports = function override(config, env) {
config.module.rules.push({
test: /\.worker\.js$/,
use: { loader: "worker-loader" }
});
config.resolve.alias = {
...config.resolve.alias,
["websocket$"]: path.resolve(
__dirname,
"src/reconnecting-websocket.ts"
),
/*
* we need the wavelet.client-cjs.js version to be loaded instead of
* wavelet-client.umd.js for which we can't overwrite dependencies
*/
["wavelet-client$"]: path.resolve(
__dirname,
"node_modules/wavelet-client/dist/wavelet-client.cjs.js"
)
};
if (process.env.REACT_APP_CNAME) {
config.plugins.push(
new CreateFileWebpack({
path: "./build",
fileName: "CNAME",
content: process.env.REACT_APP_CNAME
})
);
}
return config;
};
96 changes: 0 additions & 96 deletions config/env.js

This file was deleted.

14 changes: 0 additions & 14 deletions config/jest/cssTransform.js

This file was deleted.

12 changes: 0 additions & 12 deletions config/jest/fileTransform.js

This file was deleted.

7 changes: 0 additions & 7 deletions config/jest/typescriptTransform.js

This file was deleted.

58 changes: 0 additions & 58 deletions config/paths.js

This file was deleted.

22 changes: 0 additions & 22 deletions config/polyfills.js

This file was deleted.

Loading

0 comments on commit 4b74f2a

Please sign in to comment.