Bump esbuild and rollup

Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
This commit is contained in:
Vincenzo Scamporlino
2021-12-01 10:16:35 +01:00
parent ffc2797e29
commit 682eaa22e3
5 changed files with 144 additions and 137 deletions
+6 -6
View File
@@ -38,9 +38,9 @@
"@lerna/project": "^4.0.0",
"@octokit/request": "^5.4.12",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.0.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-yaml": "^3.0.0",
"@rollup/plugin-yaml": "^3.1.0",
"@spotify/eslint-config-base": "^12.0.0",
"@spotify/eslint-config-react": "^12.0.0",
"@spotify/eslint-config-typescript": "^12.0.0",
@@ -62,7 +62,7 @@
"css-loader": "^5.2.6",
"dashify": "^2.0.0",
"diff": "^5.0.0",
"esbuild": "^0.8.56",
"esbuild": "^0.14.1",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-formatter-friendly": "^7.0.0",
@@ -94,9 +94,9 @@
"react-hot-loader": "^4.12.21",
"recursive-readdir": "^2.2.2",
"replace-in-file": "^6.0.0",
"rollup": "2.44.x",
"rollup-plugin-dts": "^3.0.1",
"rollup-plugin-esbuild": "2.6.x",
"rollup": "^2.60.2",
"rollup-plugin-dts": "^4.0.1",
"rollup-plugin-esbuild": "^4.7.2",
"rollup-plugin-peer-deps-external": "^2.2.2",
"rollup-plugin-postcss": "^4.0.0",
"rollup-pluginutils": "^2.8.2",
+7 -3
View File
@@ -98,9 +98,13 @@ export const makeConfigs = async (
include: /\.icon\.svg$/,
template: svgrTemplate,
}),
esbuild({
target: 'es2019',
}),
esbuild(
options.esBuild || {
target: 'es2019',
// TODO: remove this
minify: true,
},
),
],
});
}
+3
View File
@@ -14,6 +14,8 @@
* limitations under the License.
*/
import type { Options } from 'rollup-plugin-esbuild';
export enum Output {
esm,
cjs,
@@ -22,4 +24,5 @@ export enum Output {
export type BuildOptions = {
outputs: Set<Output>;
esBuild: Options;
};