Skip to content

Commit

Permalink
Fix typo (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigwheel authored Sep 26, 2022
1 parent 9f3e5ea commit 0d5a236
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/esmodules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,7 +32,7 @@ export default {
format: "esm",
},
plugins: [
preventThreeShakingPlugin(),
preventTreeShakingPlugin(),
nodeResolve({
extensions,
}),
Expand Down Expand Up @@ -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).
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).

0 comments on commit 0d5a236

Please sign in to comment.