Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit fc6abda

Browse files
committed
merging with latest master
1 parent 12b94e5 commit fc6abda

File tree

294 files changed

+8358
-2908
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

294 files changed

+8358
-2908
lines changed

.circleci/config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ jobs:
7777
command: yarn test:circulars
7878
- run:
7979
name: Flamegrill
80-
command: yarn perf:test
80+
command: |
81+
if [ $CIRCLE_BRANCH == 'master' ]; then
82+
yarn perf:test:base
83+
else
84+
yarn perf:test
85+
fi
8186
- run:
8287
name: Bundle Statistics (master only)
8388
command: |

CHANGELOG.md

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,44 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1717

1818
## [Unreleased]
1919

20+
### BREAKING CHANGES
21+
- Restricted prop sets in the `Checkbox`, `Icon`, `Label`, `Slider`, `Status`, `Text` components which are passed to styles functions @layershifter ([#2307](https://github.com/microsoft/fluent-ui-react/pull/2307))
22+
- Styles caching when no inline overrides are defined is enabled by default; use the `performance` prop on the `Provider` to opt out of this if needed @mnajdova ([#2309](https://github.com/microsoft/fluent-ui-react/pull/2309))
23+
- Styles for the `Animation` component are removed from Teams theme @layershifter ([#2258](https://github.com/microsoft/fluent-ui-react/pull/2258))
24+
- Styles from `Popup` were moved `PopupContent` component @layershifter ([#2333](https://github.com/microsoft/fluent-ui-react/pull/2333))
25+
- Styles from `Tooltip` were moved `TooltipContent` component @layershifter ([#2333](https://github.com/microsoft/fluent-ui-react/pull/2333))
26+
- `ProviderBox` component was removed @layershifter ([#2192](https://github.com/microsoft/fluent-ui-react/pull/2192))
27+
- Styles and variables from `ProviderBox` are moved to `Provider` @layershifter ([#2192](https://github.com/microsoft/fluent-ui-react/pull/2192))
28+
- Fix an issue with `offset` and `pointing` in `Popup` @layershifter ([#2361](https://github.com/microsoft/fluent-ui-react/pull/2361))
29+
- Restricted prop set in the `TooltipContent` component which is passed to styles functions @layershifter ([#2357](https://github.com/microsoft/fluent-ui-react/pull/2357))
30+
- Restricted prop sets in the `Chat`, `ChatItem`, `ChatMessage` components which are passed to styles functions @layershifter ([#2366](https://github.com/microsoft/fluent-ui-react/pull/2366))
31+
32+
### Fixes
33+
- Remove dependency on Lodash in TypeScript typings @layershifter ([#2323](https://github.com/microsoft/fluent-ui-react/pull/2323))
34+
- Fix missing aria-describedby in AlertBehavior @delprzemo ([#2208](https://github.com/microsoft/fluent-ui-react/pull/2208))
35+
- Fix page crash when `Tooltip` content is null @delprzemo ([#2332](https://github.com/microsoft/fluent-ui-react/pull/2332))
36+
- Fix `document` usage in `mergeProviderContexts` to get SSR working @layershifter ([#2330](https://github.com/microsoft/fluent-ui-react/pull/2330))
37+
- Fix `input` descenders being cropped in the Teams theme @bcalvery ([#2335](https://github.com/microsoft/fluent-ui-react/pull/2335))
38+
- Use referentially equal objects for `actions` in `useStateManager` @layershifter ([#2347](https://github.com/microsoft/fluent-ui-react/pull/2347))
39+
- Fix `Animation` component not to throw when `children` is not provided @mnajdova ([#2345](https://github.com/microsoft/fluent-ui-react/pull/2345))
40+
- Fix `loader` - adding labeling when loader get focus @kolaps33 ([#2352](https://github.com/microsoft/fluent-ui-react/pull/2352))
41+
- `setWhatInputSource()` changes DOM attribute in `whatInput` @layershifter ([#2359](https://github.com/microsoft/fluent-ui-react/pull/2359))
42+
- Styles from `Provider` are applied to components that rendered out of it in DOM @layershifter ([#2192](https://github.com/microsoft/fluent-ui-react/pull/2192))
43+
- Fix `Carousel` remove `CarouselItem` elements which are not visible @mnajdova ([#2356](https://github.com/microsoft/fluent-ui-react/pull/2356))
44+
45+
### Features
46+
- Added sourcemaps to the dist output to simplify debugging @miroslavstastny ([#2329](https://github.com/microsoft/fluent-ui-react/pull/2329))
47+
- Adding 'expand', 'collapse', 'companion', 'share-to' and 'settings-audio' icons @TanelVari ([#2343](https://github.com/microsoft/fluent-ui-react/pull/2343))
48+
- Add support for Children API in `List` component @layershifter ([#2207](https://github.com/microsoft/fluent-ui-react/pull/2207))
49+
50+
### Performance
51+
- Add styles caching when there aren't inline overrides defined @mnajdova ([#2309](https://github.com/microsoft/fluent-ui-react/pull/2309))
52+
- Styles for `Animation` component are computed again only on prop changes @layershifter ([#2258](https://github.com/microsoft/fluent-ui-react/pull/2258))
53+
54+
<!--------------------------------[ v0.44.0 ]------------------------------- -->
55+
## [v0.44.0](https://github.com/microsoft/fluent-ui-react/tree/v0.44.0) (2020-02-05)
56+
[Compare changes](https://github.com/microsoft/fluent-ui-react/compare/v0.43.2..v0.44.0)
57+
2058
### BREAKING CHANGES
2159
- Add `@fluentui/styles` package for all styles' related utilities and TS types @layershifter, @mnajdova ([#2222](https://github.com/microsoft/fluent-ui-react/pull/2222))
2260
- Remove `animation` prop from all components @joschect ([#2239](https://github.com/microsoft/fluent-ui-react/pull/2239))
@@ -27,25 +65,52 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
2765
- Restricted prop set in the `Button`, `Avatar`, `Box` and `Image` styles; changed `avatarBorderWidth` and `statusBorderWidth` avatar variables types from number to string and updated styles in Teams theme @mnajdova ([#2238](https://github.com/microsoft/fluent-ui-react/pull/2238))
2866
- Restricted prop set in the `List` & `ListItem` @layershifter ([#2238](https://github.com/microsoft/fluent-ui-react/pull/2238))
2967
- Remove `mountDocument` prop in `Popup` & `MenuButton` components @layershifter ([#2286](https://github.com/microsoft/fluent-ui-react/pull/2286))
68+
- Add typing `ComponentSlotStylesResolved`, that replaces the incorrect `ComponentSlotStylesPrepared` in the return value of `useStyles`, `renderComponent`, `createComponent` @mnajdova ([#2312](https://github.com/microsoft/fluent-ui-react/pull/2312))
3069

3170
### Fixes
32-
- Fix event listener leak in `FocusZone` @miroslavstastny ([#2227](https://github.com/microsoft/fluent-ui-react/pull/2227))
3371
- Fix styleParam to always be required in the styles functions @layershifter, @mnajdova ([#2235](https://github.com/microsoft/fluent-ui-react/pull/2235))
3472
- Check input and button refs exist before focus in `Dropdown` @silviuavram ([#2248](https://github.com/microsoft/fluent-ui-react/pull/2248))
3573
- Update iconOnly button hover, focus styles and add new `background5` and `backgroundHover2` design tokens in Teams theme @codepretty ([#2211](https://github.com/microsoft/fluent-ui-react/pull/2211))
3674
- Fix `forceUpdate` to get synced updates in React's Concurrent mode @layershifter ([#2268](https://github.com/microsoft/fluent-ui-react/pull/2268))
37-
- Fix element reference memory leaks @jurokapsiar ([#2270](https://github.com/microsoft/fluent-ui-react/pull/2270))
3875
- Adding actionable items into `Carousel` @kolaps33 ([#2271](https://github.com/microsoft/fluent-ui-react/pull/2271))
3976

4077
### Features
4178
- Allow `useRef` hook used for storing debugging data to be defined in any order with other hooks in functional components @layershifter, @mnajdova ([#2236](https://github.com/microsoft/fluent-ui-react/pull/2236))
4279
- Add `useStyles()` hook to use theming capabilities in custom components @layershifter, @mnajdova ([#2217](https://github.com/microsoft/fluent-ui-react/pull/2217))
4380
- Add optional wrapper function to `List` which can be used to inject custom scrollbars to `Dropdown` @jurokapsiar ([#2092](https://github.com/microsoft/fluent-ui-react/pull/2092))
4481
- Add `useTelemetry()` hook for adding telemetry information for the Fluent components and improve return types for the `useStyles` and `useStateManager` hooks @mnajdova ([#2257](https://github.com/microsoft/fluent-ui-react/pull/2257))
82+
- Add new `backgroundHover1` Red design tokens in Teams theme @codepretty ([#2297](https://github.com/microsoft/fluent-ui-react/pull/2297))
83+
- Add `target` prop to `EventListener` component and `useEventListener()` hook @layershifter ([#2287](https://github.com/microsoft/fluent-ui-react/pull/2287))
84+
- Add `disabled` prop accordion title @jurokapsiar ([#2290](https://github.com/microsoft/fluent-ui-react/pull/2290))
85+
- Allow custom values for `size` in `FlexItem` @silviuavram ([#2313](https://github.com/microsoft/fluent-ui-react/pull/2313))
86+
- Move `zIndex` values from default variable values and styles to siteVariables object in Teams theme @pompomon ([#2311](https://github.com/microsoft/fluent-ui-react/pull/2311))
4587

4688
### Documentation
4789
- Add per-component performance charts @miroslavstastny ([#2240](https://github.com/microsoft/fluent-ui-react/pull/2240))
4890

91+
<!--------------------------------[ v0.43.2 ]------------------------------- -->
92+
## [v0.43.2](https://github.com/microsoft/fluent-ui-react/tree/v0.43.2) (2020-02-05)
93+
[Compare changes](https://github.com/microsoft/fluent-ui-react/compare/v0.43.1..v0.43.2)
94+
95+
### BREAKING CHANGES
96+
- Remove `toRefObject` function @layershifter ([#2287](https://github.com/microsoft/fluent-ui-react/pull/2287))
97+
98+
### Fixes
99+
- Fix positioning fixes for `actions` in `ChatMessage` @layershifter ([#2300](https://github.com/microsoft/fluent-ui-react/pull/2300))
100+
- `FocusZone`: Cleanup DOM element references when the component is unmounted @johannao76 ([#2306](https://github.com/microsoft/fluent-ui-react/pull/2306))
101+
102+
### Documentation
103+
- Fix dependencies in project exported to codesandbox @miroslavstastny ([#2314](https://github.com/microsoft/fluent-ui-react/pull/2314))
104+
105+
<!--------------------------------[ v0.43.1 ]------------------------------- -->
106+
## [v0.43.1](https://github.com/microsoft/fluent-ui-react/tree/v0.43.1) (2020-01-30)
107+
[Compare changes](https://github.com/microsoft/fluent-ui-react/compare/v0.43.0..v0.43.1)
108+
109+
### Fixes
110+
- Fix event listener leak in `FocusZone` @miroslavstastny ([#2227](https://github.com/microsoft/fluent-ui-react/pull/2227))
111+
- Fix element reference memory leaks @jurokapsiar ([#2270](https://github.com/microsoft/fluent-ui-react/pull/2270))
112+
- Fix element leak in `refFindNode` @miroslavstastny ([#2288](https://github.com/microsoft/fluent-ui-react/pull/2288))
113+
49114
<!--------------------------------[ v0.43.0 ]------------------------------- -->
50115
## [v0.43.0](https://github.com/microsoft/fluent-ui-react/tree/v0.43.0) (2020-01-08)
51116
[Compare changes](https://github.com/microsoft/fluent-ui-react/compare/v0.42.0..v0.43.0)

build/babel/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ module.exports = api => {
3131
]
3232
const plugins = [
3333
'@babel/plugin-proposal-class-properties',
34+
'@babel/plugin-proposal-nullish-coalescing-operator',
3435
['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }],
36+
'@babel/plugin-proposal-optional-chaining',
3537
'@babel/plugin-syntax-dynamic-import',
3638
['@babel/plugin-transform-runtime', { useESModules }],
3739

build/dangerjs/checkPerfRegressions.ts

Lines changed: 80 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,7 @@ function linkToFlamegraph(value, filename) {
1818
)})`
1919
}
2020

21-
function fluentFabricComparision(danger, markdown, warn) {
22-
let perfCounts
23-
try {
24-
perfCounts = require(config.paths.packageDist('perf-test', 'perfCounts.json'))
25-
} catch {
26-
warn('No perf measurements available')
27-
return
28-
}
21+
function fluentFabricComparison(perfCounts, danger, markdown, warn) {
2922
const results = _.mapValues(
3023
_.pickBy(perfCounts, (value, key) => key.endsWith('.Fluent')),
3124
stats => {
@@ -66,7 +59,85 @@ function fluentFabricComparision(danger, markdown, warn) {
6659
].join('\n'),
6760
)
6861
}
62+
function currentToMasterComparison(perfCounts, danger, markdown, warn) {
63+
const results = _.map(
64+
_.pickBy(perfCounts, value => _.has(value, 'analysis.regression')),
65+
(stats, name) => {
66+
const currentTicks = _.get(stats, 'analysis.numTicks')
67+
const baselineTicks = _.get(stats, 'analysis.baseline.numTicks')
68+
69+
return {
70+
name,
71+
numTicks: currentTicks,
72+
flamegraphFile: _.get(stats, 'processed.output.flamegraphFile'),
73+
baseline: {
74+
numTicks: baselineTicks,
75+
flamegraphFile: _.get(stats, 'processed.baseline.output.flamegraphFile'),
76+
},
77+
isRegression: _.get(stats, 'analysis.regression.isRegression'),
78+
currentToBaseline: Math.round((currentTicks / baselineTicks) * 100) / 100,
79+
}
80+
},
81+
)
82+
83+
const regressions = _.sortBy(
84+
_.filter(results, 'isRegression'),
85+
stats => stats.currentToBaseline * -1,
86+
)
87+
88+
if (regressions.length > 0) {
89+
warn(`${regressions.length} perf regressions detected`)
90+
markdown(
91+
[
92+
'## Potential regressions comparing to master',
93+
'',
94+
'Scenario | Current PR Ticks | Baseline Ticks | Ratio',
95+
':--- | ---:| ---:| ---:',
96+
..._.map(regressions, (value, key) =>
97+
[
98+
value.name,
99+
linkToFlamegraph(value.numTicks, value.flamegraphFile),
100+
linkToFlamegraph(value.baseline.numTicks, value.baseline.flamegraphFile),
101+
`${value.currentToBaseline}:1`,
102+
].join(' | '),
103+
),
104+
].join('\n'),
105+
)
106+
}
107+
108+
const noRegressions = _.sortBy(
109+
_.filter(results, stats => !stats.isRegression),
110+
stats => stats.currentToBaseline * -1,
111+
)
112+
markdown(
113+
[
114+
'<details><summary>Perf tests with no regressions</summary>',
115+
'',
116+
'Scenario | Current PR Ticks | Baseline Ticks | Ratio',
117+
':--- | ---:| ---:| ---:',
118+
..._.map(noRegressions, (value, key) =>
119+
[
120+
value.name,
121+
linkToFlamegraph(value.numTicks, value.flamegraphFile),
122+
linkToFlamegraph(value.baseline.numTicks, value.baseline.flamegraphFile),
123+
`${value.currentToBaseline}:1`,
124+
].join(' | '),
125+
),
126+
'',
127+
'</details>',
128+
].join('\n'),
129+
)
130+
}
69131

70132
export default ({ danger, markdown, warn }: DangerJS) => {
71-
fluentFabricComparision(danger, markdown, warn)
133+
let perfCounts
134+
try {
135+
perfCounts = require(config.paths.packageDist('perf-test', 'perfCounts.json'))
136+
} catch {
137+
warn('No perf measurements available')
138+
return
139+
}
140+
141+
fluentFabricComparison(perfCounts, danger, markdown, warn)
142+
currentToMasterComparison(perfCounts, danger, markdown, warn)
72143
}

build/gulp/tasks/bundle.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { task, series, parallel, src, dest } from 'gulp'
22
import babel from 'gulp-babel'
3+
import sourcemaps from 'gulp-sourcemaps'
34
import { log, PluginError } from 'gulp-util'
45
import del from 'del'
56
import webpack from 'webpack'
@@ -34,13 +35,17 @@ const componentsSrc = [
3435

3536
task('bundle:package:commonjs', () =>
3637
src(componentsSrc)
38+
.pipe(sourcemaps.init())
3739
.pipe(babel())
40+
.pipe(sourcemaps.write('.'))
3841
.pipe(dest(paths.packageDist(packageName, 'commonjs'))),
3942
)
4043

4144
task('bundle:package:es', () =>
4245
src(componentsSrc)
46+
.pipe(sourcemaps.init())
4347
.pipe(babel({ caller: { useESModules: true } } as any))
48+
.pipe(sourcemaps.write('.'))
4449
.pipe(dest(paths.packageDist(packageName, 'es'))),
4550
)
4651

build/gulp/tasks/test-projects.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,35 @@ task('test:projects:rollup', async () => {
205205
logger(`✔️Browser test was passed`)
206206
})
207207

208+
task('test:projects:nextjs', async () => {
209+
const logger = log('test:projects:nextjs')
210+
211+
const scaffoldPath = paths.base.bind(null, 'build/gulp/tasks/test-projects/nextjs')
212+
const tmpDirectory = tmp.dirSync({ prefix: 'project-' }).name
213+
214+
logger(`✔️Temporary directory was created: ${tmpDirectory}`)
215+
216+
const dependencies = ['next', 'react', 'react-dom'].join(' ')
217+
await runIn(tmpDirectory)(`yarn add ${dependencies}`)
218+
logger(`✔️Dependencies were installed`)
219+
220+
const packedPackages = await packProjectPackages(logger)
221+
await addResolutionPathsForProjectPackages(tmpDirectory, packedPackages)
222+
await runIn(tmpDirectory)(`yarn add ${packedPackages['@fluentui/react']}`)
223+
logger(`✔️Fluent UI packages were added to dependencies`)
224+
225+
fs.mkdirSync(path.resolve(tmpDirectory, 'pages'))
226+
fs.copyFileSync(scaffoldPath('index.js'), path.resolve(tmpDirectory, 'pages', 'index.js'))
227+
logger(`✔️Source and bundler's config were created`)
228+
229+
await runIn(tmpDirectory)(`yarn next build`)
230+
await runIn(tmpDirectory)(`yarn next export`)
231+
logger(`✔️Example project was successfully built: ${tmpDirectory}`)
232+
233+
await performBrowserTest(path.resolve(tmpDirectory, 'out'), await portfinder.getPortPromise())
234+
logger(`✔️Browser test was passed`)
235+
})
236+
208237
task('test:projects:typings', async () => {
209238
const logger = log('test:projects:typings')
210239

@@ -242,6 +271,7 @@ task(
242271
series(
243272
'bundle:all-packages',
244273
'test:projects:cra-ts',
274+
'test:projects:nextjs',
245275
'test:projects:rollup',
246276
'test:projects:typings',
247277
),
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Button, Dropdown, Provider, themes } from '@fluentui/react'
2+
import React from 'react'
3+
4+
const Page = () => (
5+
<Provider theme={themes.teams}>
6+
<Dropdown items={['Foo', 'Bar', 'Baz', 'Qux']} />
7+
<Button>Welcome to Next.js!</Button>
8+
</Provider>
9+
)
10+
11+
export default Page

build/gulp/tasks/test-projects/typings/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"compilerOptions": {
33
"jsx": "react",
44
"lib": ["dom", "dom.iterable", "esnext"],
5-
"target": "es5"
5+
"target": "es5",
6+
"strict": true
67
},
78
"include": ["src"]
89
}

build/package.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
{
22
"name": "@fluentui/internal-tooling",
3-
"version": "0.43.0",
3+
"version": "0.44.0",
44
"license": "MIT",
55
"private": true,
66
"dependencies": {
7-
"@babel/core": "^7.6.4",
8-
"@babel/plugin-proposal-class-properties": "^7.5.5",
9-
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
10-
"@babel/plugin-transform-runtime": "^7.6.2",
11-
"@babel/preset-env": "^7.6.3",
12-
"@babel/preset-react": "^7.6.3",
13-
"@babel/preset-typescript": "^7.6.0",
14-
"@babel/register": "^7.4.4",
15-
"@babel/standalone": "^7.3.2",
16-
"@fluentui/eslint-plugin": "^0.43.0",
7+
"@babel/core": "^7.7.7",
8+
"@babel/plugin-proposal-class-properties": "^7.7.4",
9+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.7.4",
10+
"@babel/plugin-proposal-optional-chaining": "^7.7.5",
11+
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
12+
"@babel/plugin-transform-runtime": "^7.7.6",
13+
"@babel/preset-env": "^7.7.6",
14+
"@babel/preset-react": "^7.7.4",
15+
"@babel/preset-typescript": "^7.7.7",
16+
"@babel/register": "^7.7.7",
17+
"@babel/standalone": "^7.7.7",
18+
"@fluentui/eslint-plugin": "^0.44.0",
1719
"@mdx-js/loader": "^1.0.21",
1820
"@types/babel__traverse": "^7.0.4",
1921
"@types/express": "^4.16.1",
2022
"@types/gulp": "^4.0.6",
2123
"@types/gulp-babel": "6.1.29",
2224
"@types/gulp-cache": "^0.4.4",
23-
"@types/gulp-util": "^3.0.34",
2425
"@types/gulp-remember": "^0.0.31",
25-
"@types/jest-axe": "^3.2.1",
26+
"@types/gulp-util": "^3.0.34",
2627
"@types/jest": "^24.0.19",
28+
"@types/jest-axe": "^3.2.1",
2729
"@types/lerna-alias": "^3.0.0",
2830
"@types/node": "^10.3.2",
2931
"@types/puppeteer": "^1.11.1",
@@ -47,8 +49,8 @@
4749
"eslint-plugin-import": "^2.18.2",
4850
"eslint-plugin-jest": "^22.4.1",
4951
"eslint-plugin-jsx-a11y": "^6.2.1",
50-
"eslint-plugin-react-hooks": "^2.1.2",
5152
"eslint-plugin-react": "^7.16.0",
53+
"eslint-plugin-react-hooks": "^2.1.2",
5254
"express": "^4.15.4",
5355
"extract-comments": "^1.0.0",
5456
"fork-ts-checker-webpack-plugin": "^1.3.3",
@@ -57,6 +59,7 @@
5759
"gulp-babel": "^8.0.0",
5860
"gulp-cache": "^1.0.2",
5961
"gulp-remember": "^1.0.1",
62+
"gulp-sourcemaps": "^2.6.5",
6063
"gulp-util": "^3.0.8",
6164
"html-webpack-plugin": "^4.0.0-beta.5",
6265
"jest": "^24.9.0",
@@ -78,7 +81,7 @@
7881
"tmp": "^0.0.33",
7982
"tsconfig-paths": "^3.7.0",
8083
"webpack": "^4.35.0",
81-
"webpack-bundle-analyzer": "^3.3.2",
84+
"webpack-bundle-analyzer": "^3.6.0",
8285
"webpack-dev-middleware": "^3.6.2",
8386
"webpack-hot-middleware": "^2.24.3"
8487
},

build/webpack.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const webpackConfig: webpack.Configuration = {
141141
// Environment Configuration
142142
// ------------------------------------
143143
if (__DEV__) {
144-
const webpackHotPath = `${config.compiler_public_path}__compiler_hmr`
144+
const webpackHotPath = `${config.compiler_public_path}__webpack_hmr`
145145
const webpackHotMiddlewareEntry = `webpack-hot-middleware/client?${_.map(
146146
{
147147
path: webpackHotPath, // The path which the middleware is serving the event stream on

0 commit comments

Comments
 (0)