Skip to content

Releases: hasanayan/craco-plugin-single-spa-application

2.0.1 (2022-05-26)

27 May 01:48
a99681c
Compare
Choose a tag to compare

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

11 May 16:58
4354662
Compare
Choose a tag to compare

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 craco-plugin-single-spa-application@2.0.0

or

yarn add --exact craco-plugin-single-spa-application@2.0.0

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

1.0.8

06 Apr 09:16
ff07ce1
Compare
Choose a tag to compare
Update package.json

1.0.7

02 Apr 12:37
d2d2c4f
Compare
Choose a tag to compare
  • fixed a bug causing style-loader to run with an unknown option parameter

1.0.6

26 Feb 16:14
Compare
Choose a tag to compare
bugfix

1.0.5

26 Feb 16:04
Compare
Choose a tag to compare
  • added option to minimize the output

1.0.4

19 Feb 11:26
Compare
Choose a tag to compare
  • added externals arguement (see README)

1.0.3

19 Feb 06:22
Compare
Choose a tag to compare
added SystemJSPublicPathPlugin

1.0.2

18 Feb 09:35
Compare
Choose a tag to compare
  • excluded single-spa-react from externals list

1.0.1

18 Feb 08:29
9bb7f75
Compare
Choose a tag to compare
  • made marking react and react-dom as external optional.
  • resolved a bug on devServer config