We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88ecc2 commit b25a8e2Copy full SHA for b25a8e2
packages/venia-concept/webpack.config.js
@@ -119,6 +119,18 @@ module.exports = async env => {
119
/@adobe\/adobe\-client\-data\-layer/,
120
/braintree\-web\-drop\-in/
121
];
122
+
123
+ // Add extension directories to the babel-loader include paths
124
+ const jsRule = config.module.rules.find(
125
+ (rule) => rule.test && rule.test.toString().includes('jsx')
126
+ );
127
+ if (jsRule && jsRule.include) {
128
+ const extensionsPath = path.resolve(__dirname, '../extensions');
129
+ if (!jsRule.include.includes(extensionsPath)) {
130
+ jsRule.include.push(extensionsPath);
131
+ }
132
133
134
config.plugins = [
135
...config.plugins,
136
new DefinePlugin({
0 commit comments