Skip to content

Commit 57ac055

Browse files
committed
replacing the plugin with an alias
1 parent cf5a2ec commit 57ac055

File tree

3 files changed

+3
-38
lines changed

3 files changed

+3
-38
lines changed

lib/WebpackConfig.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ class WebpackConfig {
130130
resolveUrlLoader: true,
131131
resolveUrlLoaderOptions: {}
132132
};
133-
this.stimulusOptions = {
134-
controllerJsonPath: null,
135-
};
136133
this.preactOptions = {
137134
preactCompat: false
138135
};
@@ -682,7 +679,9 @@ class WebpackConfig {
682679
this.addEntry(name, rootDir + '/' + controllersData.entrypoints[name]);
683680
}
684681

685-
this.stimulusOptions.controllersJsonPath = controllerJsonPath;
682+
this.addAliases({
683+
'@symfony/stimulus-bridge/controllers.json': path.resolve(controllerJsonPath),
684+
});
686685
}
687686

688687
enableReactPreset() {

lib/config-generator.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const friendlyErrorPluginUtil = require('./plugins/friendly-errors');
3838
const assetOutputDisplay = require('./plugins/asset-output-display');
3939
const notifierPluginUtil = require('./plugins/notifier');
4040
const PluginPriorities = require('./plugins/plugin-priorities');
41-
const stimulusBridge = require('./plugins/stimulus-bridge');
4241
const applyOptionsCallback = require('./utils/apply-options-callback');
4342
const copyEntryTmpName = require('./utils/copyEntryTmpName');
4443
const getVueVersion = require('./utils/get-vue-version');
@@ -422,8 +421,6 @@ class ConfigGenerator {
422421

423422
variableProviderPluginUtil(plugins, this.webpackConfig);
424423

425-
stimulusBridge(plugins, this.webpackConfig);
426-
427424
cleanPluginUtil(plugins, this.webpackConfig);
428425

429426
definePluginUtil(plugins, this.webpackConfig);

lib/plugins/stimulus-bridge.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)