mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 18:45:03 +08:00
2b1c9aea78
* IE11 support * fix: types and tests * chore+fix: optimise polyfills and bugfixes for ie11 * chore+fix: fix docz, radically cleanup babel configs * fix: ie11 proxy bug * feat: normalize rte html * fix: css issues in ie11 * chore: improve bundle size * chore: upgrade coral rte * feat: make counts work in ie11 * fix: remove native password reveal in ie11 * fix: markdowneditor icons in ie11 * fix: ie11 brittleness in auth popup * fix: callout width in ie11 * test: fix snapshots
21 lines
551 B
JavaScript
21 lines
551 B
JavaScript
/**
|
|
* This is a project wide babel configuration.
|
|
* https://babeljs.io/docs/en/config-files#project-wide-configuration
|
|
*/
|
|
|
|
// Note: If Webpack env is set, we are building for the client.
|
|
|
|
const plugins =
|
|
process.env.WEBPACK === "true" ? ["use-lodash-es", "lodash"] : [];
|
|
|
|
const environment =
|
|
process.env.WEBPACK === "true"
|
|
? { targets: "IE 11", modules: false }
|
|
: { targets: { node: "current" }, modules: "commonjs" };
|
|
|
|
module.exports = {
|
|
babelrcRoots: ["./src/core/client/*"],
|
|
plugins,
|
|
presets: [["@babel/env", environment]],
|
|
};
|