From 0d5a2363ba875b4761e6cfb8af50abf71f50b51c Mon Sep 17 00:00:00 2001 From: "k.bigwheel (kazufumi nishida)" Date: Tue, 27 Sep 2022 03:12:32 +0900 Subject: [PATCH] Fix typo (#900) --- docs/esmodules.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/esmodules.md b/docs/esmodules.md index bfb51a19..acd35e00 100644 --- a/docs/esmodules.md +++ b/docs/esmodules.md @@ -12,9 +12,9 @@ import { nodeResolve } from "@rollup/plugin-node-resolve"; const extensions = [".ts", ".js"]; -const preventThreeShakingPlugin = () => { +const preventTreeShakingPlugin = () => { return { - name: 'no-threeshaking', + name: 'no-treeshaking', resolveId(id, importer) { if (!importer) { // let's not theeshake entry points, as we're not exporting anything in Apps Script files @@ -32,7 +32,7 @@ export default { format: "esm", }, plugins: [ - preventThreeShakingPlugin(), + preventTreeShakingPlugin(), nodeResolve({ extensions, }), @@ -78,4 +78,4 @@ node_modules/** Now you can push using your normal `clasp push`-command! -This should be enough to start developing a project using ES Modules. A complete example repo can be cloned from [atti187/esmodules](https://github.com/atti187/esmodules). \ No newline at end of file +This should be enough to start developing a project using ES Modules. A complete example repo can be cloned from [atti187/esmodules](https://github.com/atti187/esmodules).