Skip to content

v2.0.0

Choose a tag to compare

@internettrans internettrans released this 09 Dec 22:42

Breaking changes

  • The set-public-path.js file is no longer necesssary, and should be removed from existing projects (#23)

Note that vue-cli-plugin-single-spa@2 works with both Vue 2 and Vue 3.

Migration path

To migrate existing projects:

  1. Delete the set-public-path.js file.
  2. Uninstall systemjs-webpack-interop, as it's now included as part of vue-cli-plugin-single-spa:
npm uninstall systemjs-webpack-interop

yarn remove systemjs-webpack-interop

pnpm uninstall systemjs-webpack-interop
  1. Install the latest version of vue-cli-plugin-single-spa:
npm install --save-dev vue-cli-plugin-single-spa@latest

yarn add --dev vue-cli-plugin-single-spa@latest

pnpm install --save-dev vue-cli-plugin-single-spa
  1. Invoke the plugin generator:
vue invoke single-spa

Invoking the generator will perform the following tasks:

  • Create .env.standalone, which sets env variables for standalone mode
  • Add serve:standalone as a script to the package.json
  • Modify main.js to be the default template for single-spa applications. This will remove the import './set-public-path.js' import from existing projects.
  1. Test it out:
npm run serve

npm run serve:standalone

Features

Fixes

Maintenance

v1.3.2...v2.0.0