Add "smart" initialization behaviour #2
Manually merged
kytta
merged 3 commits from smart-autoinit
into main
3 months ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'smart-autoinit'
Deleting a branch is permanent. It CANNOT be undone. Continue?
This PR adds new (auto-)initialization behaviour, inspired by petite-vue. Here's how it works:
require
,import
, or<script>
with the default export to include Shareon without initializationuse exported default
initializeShareon()
function in Nodeuse
init
attribute inscript
to initialize Shareon in-browseror use exported default function
The default version of the package doesn't auto-initialize buttons any more.
noinit
version of the package is removed altogether.Some stuff is about to change in the future beta releases of Shareon 2, mainly the file names and format of the exported library code.
3226d8442d
into main manually 5 months ago3226d8442d
.