Skip to content

Commit 664bd02

Browse files
committed
updating stimulus-bridge plugin to work with proposed new loader
1 parent b7e25d2 commit 664bd02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/plugins/stimulus-bridge.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
const WebpackConfig = require('../WebpackConfig'); //eslint-disable-line no-unused-vars
1313
const loaderFeatures = require('../features');
14-
const fs = require('fs');
14+
const path = require('path');
1515

1616
/**
1717
* @param {Array} plugins
@@ -25,7 +25,7 @@ module.exports = function(plugins, webpackConfig) {
2525
const createPlugin = require('@symfony/stimulus-bridge/webpack-helper'); // eslint-disable-line node/no-unpublished-require
2626

2727
plugins.push({
28-
plugin: createPlugin(JSON.parse(fs.readFileSync(webpackConfig.stimulusOptions.controllersJsonPath))),
28+
plugin: createPlugin(path.resolve(webpackConfig.stimulusOptions.controllersJsonPath)),
2929
});
3030
}
3131
};

0 commit comments

Comments
 (0)