Skip to content

Commit 6450309

Browse files
committed
fixing tests and linting
1 parent 2c7cb04 commit 6450309

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fixtures/stimulus/assets/controllers.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"controllers": {
33
"@symfony/mock-module": {
44
"mock": {
5-
"webpackMode": "lazy",
5+
"fetch": "lazy",
66
"enabled": true,
77
"autoimport": {
88
"@symfony/mock-module/dist/style.css": true

lib/plugins/stimulus-bridge.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = function(plugins, webpackConfig) {
2828
loaderFeatures.ensurePackagesExistAndAreCorrectVersion('stimulus');
2929

3030
try {
31-
require.resolve('@symfony/stimulus-bridge/webpack-helper'); // eslint-disable-line node/no-unpublished-require
31+
require.resolve('@symfony/stimulus-bridge/webpack-helper'); // eslint-disable-line node/no-unpublished-require, node/no-missing-require
3232
} catch (e) {
3333
// package is new and doesn't require this plugin
3434
const version = packageHelper.getPackageVersion('@symfony/stimulus-bridge');
@@ -39,7 +39,7 @@ module.exports = function(plugins, webpackConfig) {
3939
return;
4040
}
4141

42-
const createPlugin = require('@symfony/stimulus-bridge/webpack-helper'); // eslint-disable-line node/no-unpublished-require
42+
const createPlugin = require('@symfony/stimulus-bridge/webpack-helper'); // eslint-disable-line node/no-unpublished-require, node/no-missing-require
4343

4444
plugins.push({
4545
plugin: createPlugin(JSON.parse(fs.readFileSync(webpackConfig.stimulusOptions.controllersJsonPath))),

0 commit comments

Comments
 (0)