Jan Drewniak
dbb58da86b
[Storybook] Upgrade Storybook to v6.2.9
...
This removes the webpack.config.js file, moving the webpack config
into main.js, which replaces config.js.
- Moves the global jQuery into the webpack config in main.js.
- Removes the outdates .nvmrc file in the webpack folder.
- Moves the mockMediaWiki initialization from config.js into
index.stories.js
- Upgrades webpack to 4.22.2
Bug: T271763
Change-Id: Ie008d69e992625113ae98d52ad6d37186eb933de
2021-07-16 15:38:29 +00:00
Nicholas Ray
53001bee4c
Move browserslist targets to new file and change targets
...
Make targets consistent with Mobile Frontend's .babelrc
and put them into a .browserslistrc file.
This did not change the build files.
Change-Id: Ic4fe13c9e4423d4bb5e6da5fce9039d04a9a215f
2019-02-11 17:37:03 -07:00
Shreyas Minocha
22226f3367
Switch from babel-preset-env to @babel/preset-env
...
Replace:
- babel-preset-env@1.6.0 with @babel/preset-env@7.2.0
- babel-register@6.24.1 with @babel/register@7.0.0
- babel-loader@7.1.4 with babel-loader@8.0.4
Add:
- @babel/core@7.2.0
---
- babel-preset-env, @babel/preset-env
babel-preset-env moved to @babel/preset-env in the Babel monorepo.
This appears to have incremented the version from v1.6.0[0] to 7.x to
match the rest of the Babel packages but appears to otherwise be
undocumented.[1,3]
[0] https://github.com/babel/babel-preset-env/blob/24b99ec/README.md
[1] https://github.com/babel/babel/blob/efa571a/CHANGELOG.md
- @babel/preset-env, @babel/register
*Many* changes as identified by package [2] and summarized [3].
Node.js v6 or above now required.
New dependency on @babel/core.
Support for ES2018 and browserslist v4.
`modules: false` is now the default for preset-env + babel-loader. The
.babelrc has been updated.
New babel-upgrade tool.
babel.config.js can replace .babelrc. Popups doesn't seem to need it.
TypeScript and JSX fragment support.
[2] https://github.com/babel/babel/blob/efa571a/CHANGELOG.md
[3] https://babeljs.io/blog/2018/08/27/7.0.0
- babel-loader
Support for Babel 7.x.
The following warning is printed when building but perhaps this is due
to another dependency:
(node:14559) DeprecationWarning: loaderUtils.parseQuery() received a
non-string value which can be problematic, see
https://github.com/webpack/loader-utils/issues/56 parseQuery() will
be replaced with getOptions() in the next major version of
loader-utils.
https://github.com/webpack/loader-utils/issues/56#issuecomment-286117000
https://github.com/babel/babel-loader/releases/tag/v7.1.5
https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.0
https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.1
https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.2
https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.3
https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.4
(v8.0.0-beta.5 was erroneous.)
https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.6
https://github.com/babel/babel-loader/releases/tag/v8.0.0
https://github.com/babel/babel-loader/releases/tag/v8.0.1
https://github.com/babel/babel-loader/releases/tag/v8.0.2
https://github.com/babel/babel-loader/releases/tag/v8.0.3
https://github.com/babel/babel-loader/releases/tag/v8.0.4
Bug: T197883
Change-Id: Ie3a5404630fde87ea7fe618a842950ed8c0c6494
2018-12-11 13:09:45 +05:30
Stephen Niedzielski
e5df865d51
Hygiene: enable Babel transpilation
...
Enable the Babel transpiler so that ES6 template literals,
destructuring, and arrow functions can be used in production.
"last n versions" syntax was not used so that builds are more
reproducible.
Bug: T165036
Change-Id: I553b6d14cc368c7b4366f68d13038c3d505f5429
2018-03-20 07:59:14 -05:00