Skip to content

Commit

Permalink
Generated build files
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinsingh30 committed Nov 26, 2022
1 parent 448cb30 commit ffa52d1
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 30 deletions.
22 changes: 15 additions & 7 deletions dist/esm/silkrouter.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/silkrouter.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/silkrouter.esm.min.js

Large diffs are not rendered by default.

24 changes: 16 additions & 8 deletions dist/render/silkrouter.iife.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/render/silkrouter.iife.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/render/silkrouter.iife.min.js

Large diffs are not rendered by default.

22 changes: 15 additions & 7 deletions dist/umd/silkrouter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/umd/silkrouter.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/umd/silkrouter.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"start": "env-cmd -f ./.env.start rollup -c --watch",
"dev": "env-cmd -f ./.env.dev rollup -c",
"dev:serve": "env-cmd -f ./.env.start.prod rollup -c",
"dist": "npm run dev && npm run dev:serve && npm run prod",
"prod": "env-cmd rollup -c",
"build": "npm run test && npm run dev && npm run dev:serve && npm run prod",
"build": "npm run check:sanity && npm run test && npm run dist",
"test": "jest tests/*",
"deploy": "gh-pages -d dist",
"format": "rome format ./src --write",
Expand Down
3 changes: 2 additions & 1 deletion src/js/utils/triggerEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export function trigger(target, eventType, data) {
target = Array.from(target instanceof Node ? [target] : target);
if (target.length && typeof eventType === TYPEOF_STR) {
each(target, (el) => {
const customEvent = new getGlobal().CustomEvent(eventType, {
const win = getGlobal();
const customEvent = new win.CustomEvent(eventType, {
bubbles: true,
cancelable: true,
detail: data || [],
Expand Down

0 comments on commit ffa52d1

Please sign in to comment.