Skip to content

Commit

Permalink
fixing tests and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Feb 2, 2021
1 parent 2c7cb04 commit 6450309
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fixtures/stimulus/assets/controllers.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"controllers": {
"@symfony/mock-module": {
"mock": {
"webpackMode": "lazy",
"fetch": "lazy",
"enabled": true,
"autoimport": {
"@symfony/mock-module/dist/style.css": true
Expand Down
4 changes: 2 additions & 2 deletions lib/plugins/stimulus-bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = function(plugins, webpackConfig) {
loaderFeatures.ensurePackagesExistAndAreCorrectVersion('stimulus');

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

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

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

0 comments on commit 6450309

Please sign in to comment.