Skip to content

Commit 16acb67

Browse files
xp44mmsnitin315
andauthored
docs(guides): fix typos (#4171)
* del bra * typos * Update .gitignore Co-authored-by: Nitin Kumar <[email protected]> Co-authored-by: Nitin Kumar <[email protected]>
1 parent 7c9fd81 commit 16acb67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/guides/ecma-script-modules.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ import theDefaultValue from './module.js';
6363

6464
By default webpack will automatically detect whether a file is an ESM or a different module system.
6565

66-
Node.js estabilished a way of explicitly setting the module type of files by using a property in the `package.json`.
66+
Node.js established a way of explicitly setting the module type of files by using a property in the `package.json`.
6767
Setting `"type": "module"` in a package.json does force all files below this package.json to be ECMAScript Modules.
6868
Setting `"type": "commonjs"` will instead force them to be CommonJS Modules.
6969

@@ -75,11 +75,11 @@ Setting `"type": "commonjs"` will instead force them to be CommonJS Modules.
7575

7676
In addition to that, files can set the module type by using `.mjs` or `.cjs` extension. `.mjs` will force them to be ESM, `.cjs` force them to be CommonJs.
7777

78-
In DataURIs using the `text/javascript` or `application/javascript` mimetype will also force module type to ESM.
78+
In DataURIs using the `text/javascript` or `application/javascript` mime type will also force module type to ESM.
7979

8080
In addition to the module format, flagging modules as ESM also affect the resolving logic, interop logic and the available symbols in modules.
8181

82-
Imports in ESM are resolved more stictly. Relative requests must include a filename and file extension.
82+
Imports in ESM are resolved more strictly. Relative requests must include a filename and file extension.
8383

8484
T> Requests to packages e.g. `import "lodash"` are still supported.
8585

0 commit comments

Comments
 (0)