Skip to content

Commit 5d8d5d7

Browse files
committed
Fix build to not babel modules inside js/react sdk
Adds 'src' to react-sdk & js-sdk babel test path so we don't run node modules inside js & react sdk through babel
1 parent 4c699d8 commit 5d8d5d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ module.exports = (env, argv) => {
112112
include: (f) => {
113113
// we use the original source files of react-sdk and js-sdk, so we need to
114114
// run them through babel.
115-
if (f.startsWith(path.resolve(__dirname, 'node_modules', 'matrix-js-sdk'))) return true;
116-
if (f.startsWith(path.resolve(__dirname, 'node_modules', 'matrix-react-sdk'))) return true;
115+
if (f.startsWith(path.resolve(__dirname, 'node_modules', 'matrix-js-sdk', 'src'))) return true;
116+
if (f.startsWith(path.resolve(__dirname, 'node_modules', 'matrix-react-sdk', 'src'))) return true;
117117
// but we can't run all of our dependencies through babel (many of them still
118118
// use module.exports which breaks if babel injects an 'include' for its
119119
// polyfills: probably fixable but babeling all our dependencies is probably

0 commit comments

Comments
 (0)