Skip to content

Commit 464ee47

Browse files
committed
refactor: add new entrypoint files for patternlab-pattern and patternlab-viewer JS
1 parent 23a216e commit 464ee47

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import './utils/postmessage';
2+
import './components/panels-util';
3+
import './components/modal-styleguide';
4+
5+
// WIP: new JS components for handling UI controls to toggle theme
6+
// import './components/toggle-theme-sg';
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import './components/typeahead';
2+
import './components/layout';
3+
import './components/modal-viewer';
4+
import './components/panels';
5+
import './components/panels-util';
6+
import './components/panels-viewer';
7+
import './components/pattern-finder';
8+
import './components/plugin-loader';
9+
import './components/styleguide';
10+
11+
// WIP: new JS components for handling UI controls to toggle theme + layout
12+
// import './components/toggle-layout';
13+
// import './components/toggle-theme';
14+
15+
//// Add hook to auto re-render the root component.
16+
if (typeof module.hot === 'object') {
17+
module.hot.accept(err => {
18+
if (err) {
19+
console.error('Cannot apply HMR update.', err);
20+
}
21+
});
22+
}

0 commit comments

Comments
 (0)