mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
26bd4002d0
8
dist/htmx.js
vendored
8
dist/htmx.js
vendored
@ -1,10 +1,16 @@
|
|||||||
//AMD insanity
|
// UMD insanity
|
||||||
|
// This code sets up support for (in order) AMD, ES6 modules, and globals.
|
||||||
(function (root, factory) {
|
(function (root, factory) {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
define([], factory);
|
define([], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// Node. Does not work with strict CommonJS, but
|
||||||
|
// only CommonJS-like environments that support module.exports,
|
||||||
|
// like Node.
|
||||||
|
module.exports = factory();
|
||||||
} else {
|
} else {
|
||||||
// Browser globals
|
// Browser globals
|
||||||
root.htmx = root.htmx || factory();
|
root.htmx = root.htmx || factory();
|
||||||
|
2
dist/htmx.min.js
vendored
2
dist/htmx.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/htmx.min.js.gz
vendored
BIN
dist/htmx.min.js.gz
vendored
Binary file not shown.
@ -1,10 +1,16 @@
|
|||||||
//AMD insanity
|
// UMD insanity
|
||||||
|
// This code sets up support for (in order) AMD, ES6 modules, and globals.
|
||||||
(function (root, factory) {
|
(function (root, factory) {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
define([], factory);
|
define([], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// Node. Does not work with strict CommonJS, but
|
||||||
|
// only CommonJS-like environments that support module.exports,
|
||||||
|
// like Node.
|
||||||
|
module.exports = factory();
|
||||||
} else {
|
} else {
|
||||||
// Browser globals
|
// Browser globals
|
||||||
root.htmx = root.htmx || factory();
|
root.htmx = root.htmx || factory();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user