svelte-accmod-patch Svelte Themes

Svelte Accmod Patch

Patch for existing Svelte projects making them use svelte-accmod 'under the hood'.

⚠️ DEVELOPMENT HALTED ⚠️
svelte-accmod (an experimental version of Svelte) was primarily developed for usage with svelthree. Since svelthree is now "default Svelte first" (not "svelte-accmod first" as before), the development of svelte-accmod and svelte-accmod-patch has been halted! (may be continued at some point in future, though).

svelte-accmod-patch

svelte-accmod patch for Svelte projects: can be used with any existing project depending on Svelte (installed locally), like e.g. SvelteKit or standard Svelte starter based projects etc.

The patch replaces original Svelte files (see svelte directory inside node_modules) with corresponding svelte-accmod files. This way svelte-accmod doesn't have to be installed as a dependency, it's simply 'under the hood', so there's no need to change anything concerning your existing development environment / project setup.

Apply the patch without installing it locally:

npx svelte-accmod-patch

Install the patch locally and apply it:

This may make more sense, because it will add an "svelte-accmod-patch": ... entry to "devDependencies": {...} in your package.json, so it'll be clearly visible you may not be using the original Svelte compiler etc. Otherwise there will be no obvious indication the patch has been used.

npm install svelte-accmod-patch --save-dev
npx svelte-accmod-patch

Arguments

-apply default

Replaces original Svelte files with corresponding svelte-accmod files:

npx svelte-accmod-patch -apply

which has the same effect as:

npx svelte-accmod-patch

-revert

Reverts the patch / re-installs the original Svelte:

npx svelte-accmod-patch -revert

Top categories

Loading Svelte Themes