Skip to content

Commit 1f229db

Browse files
style: linting
1 parent e999313 commit 1f229db

File tree

7 files changed

+29
-16
lines changed

7 files changed

+29
-16
lines changed

src/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,7 @@ class CssModule extends webpack.Module {
9393
}
9494

9595
class CssModuleFactory {
96-
create(
97-
{
98-
dependencies: [dependency],
99-
},
100-
callback
101-
) {
96+
create({ dependencies: [dependency] }, callback) {
10297
callback(null, new CssModule(dependency));
10398
}
10499
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
2+
/* 0 */,
3+
/* 1 */
4+
/***/ (function(module, exports, __webpack_require__) {
5+
6+
// extracted by mini-css-extract-plugin
7+
8+
/***/ })
9+
]]);

test/cases/insert-function/expected/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
/******/
4949
/******/ // script path function
5050
/******/ function jsonpScriptSrc(chunkId) {
51-
/******/ return __webpack_require__.p + "" + {"1":"26572b08b02e3c023d0d"}[chunkId] + ".js"
51+
/******/ return __webpack_require__.p + "" + {"1":"34d4fd5d27505249daf2"}[chunkId] + ".js"
5252
/******/ }
5353
/******/
5454
/******/ // The require function
@@ -81,7 +81,7 @@
8181
/******/ var promises = [];
8282
/******/
8383
/******/
84-
/******/ // extract-css-chunks-webpack-plugin CSS loading
84+
/******/ // mini-css-extract-plugin CSS loading
8585
/******/ var cssChunks = {"1":1};
8686
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
8787
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
@@ -123,7 +123,7 @@
123123
/******/ if (reference) {
124124
/******/ reference.parentNode.insertBefore(linkTag, reference);
125125
/******/ }
126-
/******/ }; console.log('insert',insert)
126+
/******/ };
127127
/******/ if (typeof insert === 'function') { insert(linkTag); }
128128
/******/ else { var target = document.querySelector(function insert(linkTag) {
129129
/******/ const reference = document.querySelector('.hot-reload');

test/cases/insert-function/insert-function.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* global page, document, getComputedStyle */
22

3-
const { setup: setupDevServer } = require('jest-dev-server');
4-
53
const childProcess = require('child_process').exec;
64

5+
const { setup: setupDevServer } = require('jest-dev-server');
6+
77
describe('insert-string', () => {
88
beforeAll(async () => {
99
jest.setTimeout(30000);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
2+
/* 0 */,
3+
/* 1 */
4+
/***/ (function(module, exports, __webpack_require__) {
5+
6+
// extracted by mini-css-extract-plugin
7+
8+
/***/ })
9+
]]);

test/cases/insert-string/expected/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
/******/
4949
/******/ // script path function
5050
/******/ function jsonpScriptSrc(chunkId) {
51-
/******/ return __webpack_require__.p + "" + {"1":"26572b08b02e3c023d0d"}[chunkId] + ".js"
51+
/******/ return __webpack_require__.p + "" + {"1":"34d4fd5d27505249daf2"}[chunkId] + ".js"
5252
/******/ }
5353
/******/
5454
/******/ // The require function
@@ -81,7 +81,7 @@
8181
/******/ var promises = [];
8282
/******/
8383
/******/
84-
/******/ // extract-css-chunks-webpack-plugin CSS loading
84+
/******/ // mini-css-extract-plugin CSS loading
8585
/******/ var cssChunks = {"1":1};
8686
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
8787
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
@@ -117,7 +117,7 @@
117117
/******/ if (linkTag.href.indexOf(window.location.origin + '/') !== 0) {
118118
/******/ linkTag.crossOrigin = "anonymous";
119119
/******/ }
120-
/******/ var insert = "body"; console.log('insert',insert)
120+
/******/ var insert = "body";
121121
/******/ if (typeof insert === 'function') { insert(linkTag); }
122122
/******/ else { var target = document.querySelector("body"); target && insert === 'body' ? target && target.insertBefore(linkTag,target.firstChild) : target.appendChild(linkTag); }
123123
/******/ }).then(function() {

test/cases/insert-string/inject-string.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* global page, document, getComputedStyle */
22

3-
const { setup: setupDevServer } = require('jest-dev-server');
4-
53
const childProcess = require('child_process').exec;
64

5+
const { setup: setupDevServer } = require('jest-dev-server');
6+
77
describe('insert-string', () => {
88
beforeAll(async () => {
99
jest.setTimeout(30000);

0 commit comments

Comments
 (0)