Skip to content

Commit

Permalink
Update generator.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 19, 2024
1 parent fd17b29 commit 9fcdf13
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion generators/vue/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,15 @@ export default class VueGenerator extends BaseApplicationGenerator {
get postWriting() {
return this.asPostWritingTaskGroup({
addIndexAsset({ source, application }) {
if (application.microfrontend) return;
if (application.microfrontend) {
this.packageJson.merge({
devDependencies: {
'@rsbuild/plugin-vue': 'latest',
},
});
return;
}

source.addExternalResourceToRoot!({
resource: '<script>const global = globalThis;</script>',
comment: 'Workaround https://github.com/axios/axios/issues/5622',
Expand Down

0 comments on commit 9fcdf13

Please sign in to comment.