Skip to content

Commit 2ff3aa7

Browse files
committed
replacing the plugin with an alias
1 parent f4b0627 commit 2ff3aa7

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
@@ -131,9 +131,6 @@ class WebpackConfig {
131131
resolveUrlLoader: true,
132132
resolveUrlLoaderOptions: {}
133133
};
134-
this.stimulusOptions = {
135-
controllerJsonPath: null,
136-
};
137134
this.preactOptions = {
138135
preactCompat: false
139136
};
@@ -685,7 +682,9 @@ class WebpackConfig {
685682
this.addEntry(name, rootDir + '/' + controllersData.entrypoints[name]);
686683
}
687684

688-
this.stimulusOptions.controllersJsonPath = controllerJsonPath;
685+
this.addAliases({
686+
'@symfony/stimulus-bridge/controllers.json': path.resolve(controllerJsonPath),
687+
});
689688
}
690689

691690
enableBuildCache(buildDependencies, callback = (cache) => {}) {

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');
@@ -423,8 +422,6 @@ class ConfigGenerator {
423422

424423
variableProviderPluginUtil(plugins, this.webpackConfig);
425424

426-
stimulusBridge(plugins, this.webpackConfig);
427-
428425
cleanPluginUtil(plugins, this.webpackConfig);
429426

430427
definePluginUtil(plugins, this.webpackConfig);

lib/plugins/stimulus-bridge.js

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

0 commit comments

Comments
 (0)