@zimbra/zimlet-cli 12.11.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +1 -0
- package/dist/cli.js +11 -17
- package/dist/commands/create.js +206 -324
- package/dist/commands/package.js +62 -90
- package/dist/entry.js +14 -12
- package/dist/index.js +89 -114
- package/dist/lib/async-command.js +8 -14
- package/dist/lib/setup.js +55 -133
- package/dist/lib/webpack/transform-config.js +8 -8
- package/dist/shims/@apollo/client/index.js +92 -82
- package/dist/shims/@apollo/client/react/components/index.js +6 -6
- package/dist/shims/@apollo/client/react/hoc/index.js +8 -8
- package/dist/shims/@apollo/client/react/index.js +16 -16
- package/dist/shims/@zimbra-client/blocks/index.js +28 -28
- package/dist/shims/@zimbra-client/browser/index.js +4 -4
- package/dist/shims/@zimbra-client/components/index.js +53 -49
- package/dist/shims/@zimbra-client/constants/index.js +7 -7
- package/dist/shims/@zimbra-client/enhancers/index.js +11 -9
- package/dist/shims/@zimbra-client/errors/index.js +5 -5
- package/dist/shims/@zimbra-client/graphql/index.js +32 -26
- package/dist/shims/@zimbra-client/hooks/graphql/index.js +8 -8
- package/dist/shims/@zimbra-client/hooks/index.js +10 -6
- package/dist/shims/@zimbra-client/platform/index.js +5 -5
- package/dist/shims/@zimbra-client/util/contacts/index.js +4 -4
- package/dist/shims/@zimbra-client/util/index.js +15 -11
- package/dist/shims/@zimbra-client/util/redux/index.js +8 -8
- package/dist/shims/clipboard-polyfill/index.js +4 -4
- package/dist/shims/index.js +2 -2
- package/dist/shims/moment/index.js +43 -43
- package/dist/shims/preact/compat/index.js +40 -52
- package/dist/shims/preact/hooks/index.js +14 -14
- package/dist/shims/preact/index.js +15 -15
- package/dist/shims/preact-context-provider/index.js +6 -6
- package/dist/shims/preact-i18n/index.js +12 -12
- package/dist/shims/preact-pwa-install/index.js +3 -3
- package/dist/shims/preact-render-to-string/index.js +5 -5
- package/dist/shims/preact-router/index.js +9 -9
- package/dist/shims/preact-router/match/index.js +4 -4
- package/dist/shims/react-redux/index.js +16 -16
- package/dist/shims/recompose/index.js +46 -46
- package/dist/shims/redux-actions/index.js +9 -9
- package/dist/util.js +11 -11
- package/dist/zimlet-style-loader.js +8 -4
- package/package-lock.json +5460 -5944
- package/package.json +44 -47
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.shallowRender = exports.render = exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../");
|
|
9
9
|
|
|
@@ -13,11 +13,11 @@ var _ = require("../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact-render-to-string'], 'preact-render-to-string');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const render = wrap('render');
|
|
19
19
|
exports.render = render;
|
|
20
|
-
|
|
20
|
+
const shallowRender = wrap('shallowRender');
|
|
21
21
|
exports.shallowRender = shallowRender;
|
|
22
22
|
var _default = global.shims['preact-render-to-string'];
|
|
23
|
-
exports
|
|
23
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.subscribers = exports.route = exports.getCurrentUrl = exports.default = exports.Router = exports.Route = exports.Link = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../");
|
|
9
9
|
|
|
@@ -13,19 +13,19 @@ var _ = require("../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact-router'], 'preact-router');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const subscribers = wrap('subscribers');
|
|
19
19
|
exports.subscribers = subscribers;
|
|
20
|
-
|
|
20
|
+
const getCurrentUrl = wrap('getCurrentUrl');
|
|
21
21
|
exports.getCurrentUrl = getCurrentUrl;
|
|
22
|
-
|
|
22
|
+
const route = wrap('route');
|
|
23
23
|
exports.route = route;
|
|
24
|
-
|
|
24
|
+
const Router = wrap('Router');
|
|
25
25
|
exports.Router = Router;
|
|
26
|
-
|
|
26
|
+
const Route = wrap('Route');
|
|
27
27
|
exports.Route = Route;
|
|
28
|
-
|
|
28
|
+
const Link = wrap('Link');
|
|
29
29
|
exports.Link = Link;
|
|
30
30
|
var _default = global.shims['preact-router'];
|
|
31
|
-
exports
|
|
31
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = exports.Match = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../");
|
|
9
9
|
|
|
@@ -13,9 +13,9 @@ var _ = require("../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact-router/match'], 'preact-router/match');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const Match = wrap('Match');
|
|
19
19
|
exports.Match = Match;
|
|
20
20
|
var _default = global.shims['preact-router/match'];
|
|
21
|
-
exports
|
|
21
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.useStore = exports.useSelector = exports.useDispatch = exports.shallowEqual = exports.default = exports.createStoreHook = exports.createSelectorHook = exports.createDispatchHook = exports.connectAdvanced = exports.connect = exports.batch = exports.ReactReduxContext = exports.Provider = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../");
|
|
9
9
|
|
|
@@ -13,31 +13,31 @@ var _ = require("../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['react-redux'], 'react-redux');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const Provider = wrap('Provider');
|
|
19
19
|
exports.Provider = Provider;
|
|
20
|
-
|
|
20
|
+
const connectAdvanced = wrap('connectAdvanced');
|
|
21
21
|
exports.connectAdvanced = connectAdvanced;
|
|
22
|
-
|
|
22
|
+
const ReactReduxContext = wrap('ReactReduxContext');
|
|
23
23
|
exports.ReactReduxContext = ReactReduxContext;
|
|
24
|
-
|
|
24
|
+
const connect = wrap('connect');
|
|
25
25
|
exports.connect = connect;
|
|
26
|
-
|
|
26
|
+
const useDispatch = wrap('useDispatch');
|
|
27
27
|
exports.useDispatch = useDispatch;
|
|
28
|
-
|
|
28
|
+
const createDispatchHook = wrap('createDispatchHook');
|
|
29
29
|
exports.createDispatchHook = createDispatchHook;
|
|
30
|
-
|
|
30
|
+
const useSelector = wrap('useSelector');
|
|
31
31
|
exports.useSelector = useSelector;
|
|
32
|
-
|
|
32
|
+
const createSelectorHook = wrap('createSelectorHook');
|
|
33
33
|
exports.createSelectorHook = createSelectorHook;
|
|
34
|
-
|
|
34
|
+
const useStore = wrap('useStore');
|
|
35
35
|
exports.useStore = useStore;
|
|
36
|
-
|
|
36
|
+
const createStoreHook = wrap('createStoreHook');
|
|
37
37
|
exports.createStoreHook = createStoreHook;
|
|
38
|
-
|
|
39
|
-
exports.batch = batch;
|
|
40
|
-
var shallowEqual = wrap('shallowEqual');
|
|
38
|
+
const shallowEqual = wrap('shallowEqual');
|
|
41
39
|
exports.shallowEqual = shallowEqual;
|
|
40
|
+
const batch = wrap('batch');
|
|
41
|
+
exports.batch = batch;
|
|
42
42
|
var _default = global.shims['react-redux'];
|
|
43
|
-
exports
|
|
43
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.wrapDisplayName = exports.withStateHandlers = exports.withState = exports.withReducer = exports.withPropsOnChange = exports.withProps = exports.withHandlers = exports.withContext = exports.toRenderProps = exports.toClass = exports.shouldUpdate = exports.shallowEqual = exports.setStatic = exports.setPropTypes = exports.setObservableConfig = exports.setDisplayName = exports.renderNothing = exports.renderComponent = exports.renameProps = exports.renameProp = exports.pure = exports.onlyUpdateForPropTypes = exports.onlyUpdateForKeys = exports.nest = exports.mapPropsStreamWithConfig = exports.mapPropsStream = exports.mapProps = exports.lifecycle = exports.isClassComponent = exports.hoistStatics = exports.getDisplayName = exports.getContext = exports.fromRenderProps = exports.flattenProp = exports.defaultProps = exports.default = exports.createSink = exports.createEventHandlerWithConfig = exports.createEventHandler = exports.compose = exports.componentFromStreamWithConfig = exports.componentFromStream = exports.componentFromProp = exports.branch = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../");
|
|
9
9
|
|
|
@@ -13,93 +13,93 @@ var _ = require("../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['recompose'], 'recompose');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const mapProps = wrap('mapProps');
|
|
19
19
|
exports.mapProps = mapProps;
|
|
20
|
-
|
|
20
|
+
const withProps = wrap('withProps');
|
|
21
21
|
exports.withProps = withProps;
|
|
22
|
-
|
|
22
|
+
const withPropsOnChange = wrap('withPropsOnChange');
|
|
23
23
|
exports.withPropsOnChange = withPropsOnChange;
|
|
24
|
-
|
|
24
|
+
const withHandlers = wrap('withHandlers');
|
|
25
25
|
exports.withHandlers = withHandlers;
|
|
26
|
-
|
|
26
|
+
const defaultProps = wrap('defaultProps');
|
|
27
27
|
exports.defaultProps = defaultProps;
|
|
28
|
-
|
|
28
|
+
const renameProp = wrap('renameProp');
|
|
29
29
|
exports.renameProp = renameProp;
|
|
30
|
-
|
|
30
|
+
const renameProps = wrap('renameProps');
|
|
31
31
|
exports.renameProps = renameProps;
|
|
32
|
-
|
|
32
|
+
const flattenProp = wrap('flattenProp');
|
|
33
33
|
exports.flattenProp = flattenProp;
|
|
34
|
-
|
|
34
|
+
const withState = wrap('withState');
|
|
35
35
|
exports.withState = withState;
|
|
36
|
-
|
|
36
|
+
const withStateHandlers = wrap('withStateHandlers');
|
|
37
37
|
exports.withStateHandlers = withStateHandlers;
|
|
38
|
-
|
|
38
|
+
const withReducer = wrap('withReducer');
|
|
39
39
|
exports.withReducer = withReducer;
|
|
40
|
-
|
|
40
|
+
const branch = wrap('branch');
|
|
41
41
|
exports.branch = branch;
|
|
42
|
-
|
|
42
|
+
const renderComponent = wrap('renderComponent');
|
|
43
43
|
exports.renderComponent = renderComponent;
|
|
44
|
-
|
|
44
|
+
const renderNothing = wrap('renderNothing');
|
|
45
45
|
exports.renderNothing = renderNothing;
|
|
46
|
-
|
|
46
|
+
const shouldUpdate = wrap('shouldUpdate');
|
|
47
47
|
exports.shouldUpdate = shouldUpdate;
|
|
48
|
-
|
|
48
|
+
const pure = wrap('pure');
|
|
49
49
|
exports.pure = pure;
|
|
50
|
-
|
|
50
|
+
const onlyUpdateForKeys = wrap('onlyUpdateForKeys');
|
|
51
51
|
exports.onlyUpdateForKeys = onlyUpdateForKeys;
|
|
52
|
-
|
|
52
|
+
const onlyUpdateForPropTypes = wrap('onlyUpdateForPropTypes');
|
|
53
53
|
exports.onlyUpdateForPropTypes = onlyUpdateForPropTypes;
|
|
54
|
-
|
|
54
|
+
const withContext = wrap('withContext');
|
|
55
55
|
exports.withContext = withContext;
|
|
56
|
-
|
|
56
|
+
const getContext = wrap('getContext');
|
|
57
57
|
exports.getContext = getContext;
|
|
58
|
-
|
|
58
|
+
const lifecycle = wrap('lifecycle');
|
|
59
59
|
exports.lifecycle = lifecycle;
|
|
60
|
-
|
|
60
|
+
const toClass = wrap('toClass');
|
|
61
61
|
exports.toClass = toClass;
|
|
62
|
-
|
|
62
|
+
const toRenderProps = wrap('toRenderProps');
|
|
63
63
|
exports.toRenderProps = toRenderProps;
|
|
64
|
-
|
|
64
|
+
const fromRenderProps = wrap('fromRenderProps');
|
|
65
65
|
exports.fromRenderProps = fromRenderProps;
|
|
66
|
-
|
|
66
|
+
const setStatic = wrap('setStatic');
|
|
67
67
|
exports.setStatic = setStatic;
|
|
68
|
-
|
|
68
|
+
const setPropTypes = wrap('setPropTypes');
|
|
69
69
|
exports.setPropTypes = setPropTypes;
|
|
70
|
-
|
|
70
|
+
const setDisplayName = wrap('setDisplayName');
|
|
71
71
|
exports.setDisplayName = setDisplayName;
|
|
72
|
-
|
|
72
|
+
const compose = wrap('compose');
|
|
73
73
|
exports.compose = compose;
|
|
74
|
-
|
|
74
|
+
const getDisplayName = wrap('getDisplayName');
|
|
75
75
|
exports.getDisplayName = getDisplayName;
|
|
76
|
-
|
|
76
|
+
const wrapDisplayName = wrap('wrapDisplayName');
|
|
77
77
|
exports.wrapDisplayName = wrapDisplayName;
|
|
78
|
-
|
|
78
|
+
const shallowEqual = wrap('shallowEqual');
|
|
79
79
|
exports.shallowEqual = shallowEqual;
|
|
80
|
-
|
|
80
|
+
const isClassComponent = wrap('isClassComponent');
|
|
81
81
|
exports.isClassComponent = isClassComponent;
|
|
82
|
-
|
|
82
|
+
const createSink = wrap('createSink');
|
|
83
83
|
exports.createSink = createSink;
|
|
84
|
-
|
|
84
|
+
const componentFromProp = wrap('componentFromProp');
|
|
85
85
|
exports.componentFromProp = componentFromProp;
|
|
86
|
-
|
|
86
|
+
const nest = wrap('nest');
|
|
87
87
|
exports.nest = nest;
|
|
88
|
-
|
|
88
|
+
const hoistStatics = wrap('hoistStatics');
|
|
89
89
|
exports.hoistStatics = hoistStatics;
|
|
90
|
-
|
|
90
|
+
const componentFromStream = wrap('componentFromStream');
|
|
91
91
|
exports.componentFromStream = componentFromStream;
|
|
92
|
-
|
|
92
|
+
const componentFromStreamWithConfig = wrap('componentFromStreamWithConfig');
|
|
93
93
|
exports.componentFromStreamWithConfig = componentFromStreamWithConfig;
|
|
94
|
-
|
|
94
|
+
const mapPropsStream = wrap('mapPropsStream');
|
|
95
95
|
exports.mapPropsStream = mapPropsStream;
|
|
96
|
-
|
|
96
|
+
const mapPropsStreamWithConfig = wrap('mapPropsStreamWithConfig');
|
|
97
97
|
exports.mapPropsStreamWithConfig = mapPropsStreamWithConfig;
|
|
98
|
-
|
|
98
|
+
const createEventHandler = wrap('createEventHandler');
|
|
99
99
|
exports.createEventHandler = createEventHandler;
|
|
100
|
-
|
|
100
|
+
const createEventHandlerWithConfig = wrap('createEventHandlerWithConfig');
|
|
101
101
|
exports.createEventHandlerWithConfig = createEventHandlerWithConfig;
|
|
102
|
-
|
|
102
|
+
const setObservableConfig = wrap('setObservableConfig');
|
|
103
103
|
exports.setObservableConfig = setObservableConfig;
|
|
104
104
|
var _default = global.shims['recompose'];
|
|
105
|
-
exports
|
|
105
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.handleActions = exports.handleAction = exports.default = exports.createCurriedAction = exports.createActions = exports.createAction = exports.combineActions = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../");
|
|
9
9
|
|
|
@@ -13,19 +13,19 @@ var _ = require("../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['redux-actions'], 'redux-actions');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const combineActions = wrap('combineActions');
|
|
19
19
|
exports.combineActions = combineActions;
|
|
20
|
-
|
|
20
|
+
const createAction = wrap('createAction');
|
|
21
21
|
exports.createAction = createAction;
|
|
22
|
-
|
|
22
|
+
const createActions = wrap('createActions');
|
|
23
23
|
exports.createActions = createActions;
|
|
24
|
-
|
|
24
|
+
const createCurriedAction = wrap('createCurriedAction');
|
|
25
25
|
exports.createCurriedAction = createCurriedAction;
|
|
26
|
-
|
|
26
|
+
const handleAction = wrap('handleAction');
|
|
27
27
|
exports.handleAction = handleAction;
|
|
28
|
-
|
|
28
|
+
const handleActions = wrap('handleActions');
|
|
29
29
|
exports.handleActions = handleActions;
|
|
30
30
|
var _default = global.shims['redux-actions'];
|
|
31
|
-
exports
|
|
31
|
+
exports.default = _default;
|
package/dist/util.js
CHANGED
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.crossPlatformPathRegex = crossPlatformPathRegex;
|
|
7
|
-
exports.
|
|
7
|
+
exports.error = error;
|
|
8
8
|
exports.hasCommand = hasCommand;
|
|
9
|
-
exports.trim = trim;
|
|
10
|
-
exports.success = success;
|
|
11
9
|
exports.info = info;
|
|
10
|
+
exports.isDir = isDir;
|
|
11
|
+
exports.success = success;
|
|
12
|
+
exports.trim = trim;
|
|
12
13
|
exports.warn = warn;
|
|
13
|
-
exports.error = error;
|
|
14
14
|
|
|
15
15
|
var _chalk = _interopRequireDefault(require("chalk"));
|
|
16
16
|
|
|
@@ -22,10 +22,10 @@ var _which = _interopRequireDefault(require("which"));
|
|
|
22
22
|
|
|
23
23
|
var _path = _interopRequireDefault(require("path"));
|
|
24
24
|
|
|
25
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
25
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
26
|
|
|
27
27
|
function crossPlatformPathRegex(regexp) {
|
|
28
|
-
if (_path
|
|
28
|
+
if (_path.default.sep === '\\') {
|
|
29
29
|
regexp = new RegExp(regexp.source.replace(/(^|[^\\])\\\//g, '$1\\\\'), regexp.flags);
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -37,7 +37,7 @@ function isDir(str) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
function hasCommand(str) {
|
|
40
|
-
return !!_which
|
|
40
|
+
return !!_which.default.sync(str, {
|
|
41
41
|
nothrow: true
|
|
42
42
|
});
|
|
43
43
|
}
|
|
@@ -47,21 +47,21 @@ function trim(str) {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
function success(text, code) {
|
|
50
|
-
process.stderr.write(_logSymbols
|
|
50
|
+
process.stderr.write(_logSymbols.default.success + ' ' + text + '\n');
|
|
51
51
|
code && process.exit(code);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
function info(text, code) {
|
|
55
|
-
process.stderr.write(_logSymbols
|
|
55
|
+
process.stderr.write(_logSymbols.default.info + _chalk.default.blue(' INFO ') + text + '\n');
|
|
56
56
|
code && process.exit(code);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function warn(text, code) {
|
|
60
|
-
process.stdout.write(_logSymbols
|
|
60
|
+
process.stdout.write(_logSymbols.default.warning + _chalk.default.yellow(' WARN ') + text + '\n');
|
|
61
61
|
code && process.exit(code);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
function error(text, code) {
|
|
65
|
-
process.stderr.write(_logSymbols
|
|
65
|
+
process.stderr.write(_logSymbols.default.error + _chalk.default.red(' ERROR ') + text + '\n');
|
|
66
66
|
code && process.exit(code);
|
|
67
67
|
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = ZimletStyleLoader;
|
|
7
7
|
|
|
8
8
|
var _loaderUtils = _interopRequireDefault(require("loader-utils"));
|
|
9
9
|
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
12
|
/** zimlet-style-loader is a replacement for style-loader.
|
|
13
13
|
* Instead of injecting CSS stylesheets into the a style tag in the document,
|
|
@@ -19,10 +19,14 @@ function ZimletStyleLoader() {}
|
|
|
19
19
|
ZimletStyleLoader.pitch = function (request) {
|
|
20
20
|
if (this.cacheable) this.cacheable();
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
const stringified = _loaderUtils.default.stringifyRequest(this, '!!' + request); // Add the styles to global.ZIMLET_STYLES and then return the generated classnames.
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
return
|
|
25
|
+
return `
|
|
26
|
+
var styles = require(${stringified}).default;
|
|
27
|
+
ZIMLET_STYLES.push(styles);
|
|
28
|
+
module.exports = styles.locals;
|
|
29
|
+
`;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
module.exports = exports.default;
|