We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0da84d5 commit cc801f3Copy full SHA for cc801f3
packages/components/bolt-critical-fonts/index.js
@@ -0,0 +1,7 @@
1
+// import { polyfillLoader } from '@bolt/core';
2
+
3
+if (!bolt.config.prod){
4
+ import(/* webpackMode: 'lazy', webpackChunkName: 'bolt-font-loader' */ './src/critical-fonts.js');
5
+} else {
6
+ import( /* webpackMode: 'eager', webpackChunkName: 'bolt-font-loader' */ './src/critical-fonts.js');
7
+}
packages/components/bolt-critical-fonts/package.json
@@ -20,7 +20,7 @@
20
"publishConfig": {
21
"access": "public"
22
},
23
- "main": "src/critical-fonts.js",
+ "main": "index.js",
24
"style": "src/critical-fonts.scss",
25
"homepage": "https://bolt-design-system.com"
26
}
0 commit comments