Skip to content

Commit 39fc86f

Browse files
committed
feat: switch to explicit type: module
1 parent 9e12432 commit 39fc86f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1574
-348
lines changed

acorn-loose/package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acorn-loose/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "acorn-loose",
33
"description": "Error-tolerant ECMAScript parser",
44
"homepage": "https://github.com/acornjs/acorn",
5+
"type": "module",
56
"main": "dist/acorn-loose.js",
6-
"module": "dist/acorn-loose.mjs",
77
"types": "dist/acorn-loose.d.ts",
88
"exports": {
99
".": [
File renamed without changes.

acorn-walk/package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acorn-walk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "acorn-walk",
33
"description": "ECMAScript (ESTree) AST walker",
44
"homepage": "https://github.com/acornjs/acorn",
5+
"type": "module",
56
"main": "dist/walk.js",
67
"types": "dist/walk.d.ts",
7-
"module": "dist/walk.mjs",
88
"exports": {
99
".": [
1010
{
File renamed without changes.

acorn/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ on the extended version of the class. To extend a parser with plugins,
257257
you can use its static `extend` method.
258258

259259
```javascript
260-
var acorn = require("acorn")
261-
var jsx = require("acorn-jsx")
260+
import * as acorn from "acorn"
261+
import jsx from "acorn-jsx"
262262
var JSXParser = acorn.Parser.extend(jsx())
263263
JSXParser.parse("foo(<bar/>)", {ecmaVersion: 2020})
264264
```

acorn/package-lock.json

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acorn/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "acorn",
33
"description": "ECMAScript parser",
44
"homepage": "https://github.com/acornjs/acorn",
5+
"type": "module",
56
"main": "dist/acorn.js",
67
"types": "dist/acorn.d.ts",
7-
"module": "dist/acorn.mjs",
88
"exports": {
99
".": [
1010
{
File renamed without changes.

0 commit comments

Comments
 (0)