Skip to content

Commit 3f4fb24

Browse files
committed
npm: Set package's type to module
This ensure NodeJS treats all JS files as ES6 modules. See https://nodejs.org/api/esm.html#esm_code_package_json_code_code_type_code_field
1 parent 4727e7f commit 3f4fb24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"license": "MIT",
55
"homepage": "https://github.com/PlanitarInc/msg-switch",
66
"main": "src/index.js",
7+
"type": "module",
78
"sideEffects": false,
89
"scripts": {
910
"serve": "vue-cli-service serve",

0 commit comments

Comments
 (0)