Fix module resolving for chai
Eslint was not able to load chai with webpack import loader due error: Package path . is not exported from package /node_modules/chai (see exports field in chai/package.json) Pointing directly to node_modules/chai/index.js bypasses checking exports property in package.json [MAILPOET-3214]
This commit is contained in:
committed by
Veljko V
parent
84e67088e5
commit
9bb9e424f4
@@ -55,6 +55,7 @@ const baseConfig = {
|
||||
'spectrum$': 'spectrum-colorpicker/spectrum.js',
|
||||
'wp-js-hooks': path.resolve(__dirname, 'assets/js/src/hooks.js'),
|
||||
'blob$': 'blob-tmp/Blob.js',
|
||||
'chai': 'chai/index.js',
|
||||
'papaparse': 'papaparse/papaparse.min.js',
|
||||
'html2canvas': 'html2canvas/dist/html2canvas.js',
|
||||
'asyncqueue': 'vendor/jquery.asyncqueue.js',
|
||||
|
Reference in New Issue
Block a user