Releases: hasanayan/craco-plugin-single-spa-application
2.0.1 (2022-05-26)
Version 2.0.1 is a patch release with a fix for CRA5 users.
🐛 Fixes Invalid parser object on CRA5 projects #23 (thank you @fupengl and @orkisz for helping reproduce and fix the issue)
Note: from this version onwards you need to explicitly install it as CRACO, so in case you don't have it installed in your project you can fix it by running npm i @craco/craco
Committers: 1
Felipe Plets (@felipeplets)
2.0.0
2.0.0 (2022-05-11)
Version 2.0.0 is a major plugin release with new features and breaking changes.
Highlights
- Added support to CRA5 / WebPack 5
- Added new option
outputFilename
to rename the output file - Remove
externals
option
Migrating from 1.0.X to 2.0.0
Inside any project using Create React App (CRA) and CRACO, run:
npm install --save --save-exact [email protected]
or
yarn add --exact [email protected]
Please read the breaking changes section.
Breaking changes
The externals
options has been removed so if you had anything set on the externals option from the plugin you now need to migrate it to use the default webpack externals option offered by CRACO.
Before:
singleSpaApplicationPlugin = require('craco-plugin-single-spa-application');
const singleSpaApplicationPlugin = {
plugin: singleSpaApplicationPlugin,
options: {
orgName: "my-org",
projectName: "my-app",
externals: [{
jquery: 'jQuery',
}]
},
}
// Keep any other configuration you are exporting from CRACO and add the plugin to the plugins array
module.exports = {
plugins: [singleSpaApplicationPlugin]
}
After:
singleSpaApplicationPlugin = require('craco-plugin-single-spa-application');
const singleSpaApplicationPlugin = {
plugin: singleSpaApplicationPlugin,
options: {
orgName: "my-org",
projectName: "my-app"
},
}
// Keep any other configuration you are exporting from CRACO and add the plugin to the plugins array
module.exports = {
plugins: [singleSpaApplicationPlugin],
webpack: {
configure: {
externals: [{
jquery: 'jQuery',
}]
},
}
}
Committers: 2
- Felipe Plets (@felipeplets)
- Ben Oakenfull (@boakenfull)