From d08179c2154fd8e0664c44a87e98614e07fd48f7 Mon Sep 17 00:00:00 2001 From: jasonphillips Date: Tue, 24 May 2022 08:07:05 -0500 Subject: [PATCH] fix: transpile browser-fs-access in package build (#5041) --- src/packages/excalidraw/CHANGELOG.md | 6 ++++++ src/packages/excalidraw/webpack.dev.config.js | 2 +- src/packages/excalidraw/webpack.prod.config.js | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/packages/excalidraw/CHANGELOG.md b/src/packages/excalidraw/CHANGELOG.md index b6ab7443..72c616a5 100644 --- a/src/packages/excalidraw/CHANGELOG.md +++ b/src/packages/excalidraw/CHANGELOG.md @@ -91,6 +91,12 @@ In Browser :point_down: React.createElement(ExcalidrawLib.Excalidraw, opts); ``` +### Excalidraw Library + +#### Chore + +- Transpile `browser-fs-access` dependency so that its `for await` syntax doesn't force es2018 requirement onto dependent projects [#5041](https://github.com/excalidraw/excalidraw/pull/5041). + ## 0.11.0 (2022-02-17) ## Excalidraw API diff --git a/src/packages/excalidraw/webpack.dev.config.js b/src/packages/excalidraw/webpack.dev.config.js index fb752e24..9e8180f5 100644 --- a/src/packages/excalidraw/webpack.dev.config.js +++ b/src/packages/excalidraw/webpack.dev.config.js @@ -44,7 +44,7 @@ module.exports = { }, { test: /\.(ts|tsx|js|jsx|mjs)$/, - exclude: /node_modules/, + exclude: /node_modules\/(?!browser-fs-access)/, use: [ { loader: "ts-loader", diff --git a/src/packages/excalidraw/webpack.prod.config.js b/src/packages/excalidraw/webpack.prod.config.js index 00c57d83..0450d36f 100644 --- a/src/packages/excalidraw/webpack.prod.config.js +++ b/src/packages/excalidraw/webpack.prod.config.js @@ -46,7 +46,7 @@ module.exports = { }, { test: /\.(ts|tsx|js|jsx|mjs)$/, - exclude: /node_modules/, + exclude: /node_modules\/(?!browser-fs-access)/, use: [ { loader: "ts-loader",