Skip to content

Commit 0df64cf

Browse files
simonhaenischadamdbradley
authored andcommitted
fix: default export a function in global script (#720)
1 parent 444dc18 commit 0df64cf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"collection": "dist/collection/collection-manifest.json",
1414
"collection:main": "dist/collection/index.js",
1515
"scripts": {
16-
"build": "npm run lint.ts && npm run build.icon && npm run generate && npm run build.css && npm run copy.tasks && npm run test && npm run build.data",
16+
"build": "npm run lint.ts && npm run build.data && npm run build.icon && npm run generate && npm run build.css && npm run copy.tasks && npm run test",
1717
"build.css": "node scripts/build-css.js",
1818
"build.data": "node scripts/data.js",
1919
"build.icon": "stencil build",
@@ -32,7 +32,7 @@
3232
"test": "stencil test --spec"
3333
},
3434
"devDependencies": {
35-
"@stencil/core": "1.1.6",
35+
"@stencil/core": "1.3.0",
3636
"@stencil/sass": "^1.0.1",
3737
"@types/highlight.js": "^9.12.3",
3838
"@types/jest": "24.0.13",

src/components/global.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
import { setMode } from '@stencil/core';
22

3-
setMode((el: any) => el.tagName === 'ION-ICON' ? el.mode || el.getAttribute('mode') : null);
3+
export default () => {
4+
setMode((el: any) => el.tagName === 'ION-ICON' ? el.mode || el.getAttribute('mode') : null);
5+
};

0 commit comments

Comments
 (0)