Open DrSensor opened 1 year ago
By default this framework operate on loose mode where __MODE__ === "loose". All scripts that only have strict mode have smaller bundle size and it's organized on strict/ folder. For example,
__MODE__ === "loose"
strict/
<script async src="https://esm.run/nusa/strict/render-scope"></script>
will define <render-scope> that only operate on strict mode.
<render-scope>
strict
@bind
<script>
<style>
type=module/*
accessor
get
set
traverse-depth=<uint>
class extends traverse(...Classes).extends(Class)
💡 Hint: traverse binding and binding class field can be implemented at the same time if (name in instance) { desc[name].set = function(value) { super[name] = databank[index] = value } } Object.defineProperties(instance, desc)
💡 Hint: traverse binding and binding class field can be implemented at the same time
if (name in instance) { desc[name].set = function(value) { super[name] = databank[index] = value } } Object.defineProperties(instance, desc)
By default this framework operate on loose mode where
__MODE__ === "loose"
. All scripts that only have strict mode have smaller bundle size and it's organized onstrict/
folder. For example,will define
<render-scope>
that only operate on strict mode.strict
mode@bind
decorator (unlike controlled loose mode, binding work on class parent and ancestors too without traversing)strict
attribute when using default (loose) scripts<render-scope>
doesn't handle inline<script>
and<style>
module (where it has attributetype=module/*
)loose mode
accessor
get
ter/set
tertraverse-depth=<uint>
attribute orclass extends traverse(...Classes).extends(Class)
helper