Skip to content

v0.7.0 - Switch to esbuild

Choose a tag to compare

@stevygee stevygee released this 23 Mar 13:56
· 12 commits to master since this release

The package has been completely rewritten and now uses esbuild!

The build command is up to 12x faster!

  • Rewritten using ES modules and promises
  • Hello esbuild
  • Goodbye gulp!
  • Generate ESmodules with code splitting
  • Previous config files are supported

Upgrade notes:

  • In the existing config, you might want to ignore _component.scss files:
    "sourceFiles": ["./src/**/[!_]?*.scss"],
  • If you want to use code splitting, you need to specify a path for chunks:
	"scripts": {
		"chunkNames": "./js/chunks/[name]-[hash]",
	},
  • config.styles.sourceFiles still works, but only if the base dir is 'src/'. Going forward, you should use the new format. So this:
	"styles": {
		"sourceFiles": ["./example/src/scss/*.scss"],
		"destinationFolder": "./css",
	},

will become:

	"styles": {
		"files": [
			{
				"sourceFiles": ["*.scss"],
				"sourceFolder": "./example/src/scss/",
				"destinationFolder": "./css",
				"outputName": "[name].css"
			}
		],
	},
  • If you want to use globs for scripts, you need to specify a sourceFolder in that block as well.