v2.0.0
Breaking changes
- The
set-public-path.jsfile 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:
- Delete the
set-public-path.jsfile. - 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- 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- Invoke the plugin generator:
vue invoke single-spaInvoking the generator will perform the following tasks:
- Create
.env.standalone, which sets env variables for standalone mode - Add
serve:standaloneas 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.
- Test it out:
npm run serve
npm run serve:standaloneFeatures
npm run serve:standalonenow runs with single-spa standalone mode (#23)- Use SystemJSPublicPathPlugin to set webpack public path (#23)
- Set webpack output.devtoolNamespace for improved source maps (#23)
Fixes
Maintenance
- Switch to pnpm 6b0a75d