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 d1ecae6 commit c33282dCopy full SHA for c33282d
package.json
@@ -7,7 +7,7 @@
7
"author": "Tobias Koppers @sokra",
8
"homepage": "https://github.com/webpack/webpack-dev-middleware",
9
"bugs": "https://github.com/webpack/webpack-dev-middleware/issues",
10
- "main": "dist/index.js",
+ "main": "dist/cjs.js",
11
"funding": {
12
"type": "opencollective",
13
"url": "https://opencollective.com/webpack"
src/cjs.js
@@ -0,0 +1,3 @@
1
+const middleware = require('./index');
2
+
3
+module.exports = middleware.default;
test/cjs.test.js
@@ -0,0 +1,8 @@
+import src from '../src';
+import cjs from '../src/cjs';
4
+describe('cjs', () => {
5
+ it('should work', () => {
6
+ expect(cjs).toEqual(src);
+ });
+});
0 commit comments