alpha
Login
or
Join now
danielroe.dev
/
native-esm
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/danielroe/native-esm.
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
chore: add esm module example
author
Daniel Roe
date
4 years ago
(Oct 27, 2021, 1:20 PM +0100)
commit
72a707fd
72a707fd2ed67cbe059df14d20f6cd32e85ce85c
parent
dc1e61f0
dc1e61f0f86a70d31d04fe647f57e58929bf9b8d
+9
-1
3 changed files
Expand all
Collapse all
Unified
Split
index.mjs
node_modules
esm-module
index.js
package.json
+2
-1
index.mjs
View file
Reviewed
···
1
1
import esm from 'esm'
2
2
import cjs from 'cjs'
3
3
import jsCjs from 'js-cjs'
4
4
+
import esmModule from 'esm-module'
4
5
// import jsEsm from 'js-esm'
5
6
6
6
-
console.log({ esm, cjs, jsCjs, /* jsEsm */ })
7
7
+
console.log({ esm, cjs, jsCjs, esmModule, /* jsEsm */ })
+1
node_modules/esm-module/index.js
View file
Reviewed
···
1
1
+
export default 'esm-module'
+6
node_modules/esm-module/package.json
View file
Reviewed
···
1
1
+
{
2
2
+
"name": "esm-module",
3
3
+
"version": "1.0.0",
4
4
+
"type": "module",
5
5
+
"main": "index.js"
6
6
+
}