Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9352145

Browse files
committed
feat: add im, imm, imu, and imd
1 parent 48affe1 commit 9352145

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

‎README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,20 @@ Related snippets share a same namespace, like every `for` loop prefix start with
129129
| `prt` | Promise type (TypeScript) | `Promise<0ドル>` |
130130

131131
### ES2015 Modules
132-
| Prefix | Desc | Body |
133-
| ------: | ------------------------- | ----------------------------------------- |
134-
| `exp` | export (ES2015) | `export 0ドル` |
135-
| `expd` | export default (ES2015) | `export default 0ドル` |
136-
| `expas` | export as (ES2015) | `export { 1ドル as 2ドル };0ドル` |
137-
| `expf` | export from (ES2015) | `export ${2:name} from '1ドル';0ドル` |
138-
| `expaf` | export all from (ES2015) | `export *2ドル from '1ドル';0ドル` |
139-
| `imp` | import module (ES2015) | `import ${2:name} from '1ドル';0ドル` |
140-
| `imf` | import file (ES2015) | `import '1ドル';0ドル` |
141-
| `impas` | import module as (ES2015) | `import ${2:*} as ${3:name} from '1ドル';0ドル` |
132+
| Prefix | Desc | Body |
133+
| ------: | ---------------------------------- | ----------------------------------------- |
134+
| `exp` | export (ES2015) | `export 0ドル` |
135+
| `expd` | export default (ES2015) | `export default 0ドル` |
136+
| `expas` | export as (ES2015) | `export { 1ドル as 2ドル };0ドル` |
137+
| `expf` | export from (ES2015) | `export ${2:name} from '1ドル';0ドル` |
138+
| `expaf` | export all from (ES2015) | `export *2ドル from '1ドル';0ドル` |
139+
| `im` | import (ES2015) | `import0ドル` |
140+
| `imm` | import.meta (ES2015) | `import.meta0ドル` |
141+
| `imu` | import.meta.url (ES2015) | `import.meta.url0ドル` |
142+
| `imp` | import module (ES2015) | `import ${2:name} from '1ドル';0ドル` |
143+
| `imd` | import module dynamically (ES2020) | `import(1ドル)0ドル` |
144+
| `imf` | import file (ES2015) | `import '1ドル';0ドル` |
145+
| `impas` | import module as (ES2015) | `import ${2:*} as ${3:name} from '1ドル';0ドル` |
142146

143147
### Node.js
144148
| Prefix | Desc | Body |

‎src/snippet/javascript.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,26 @@ export const javascript = createXSnippets({
218218
name: 'export all from (ES2015)',
219219
body: "export *2ドル from '1ドル';0ドル",
220220
},
221+
im: {
222+
name: 'import (ES2015)',
223+
body: 'import0ドル',
224+
},
225+
imm: {
226+
name: 'import.meta (ES2015)',
227+
body: 'import.meta0ドル',
228+
},
229+
imu: {
230+
name: 'import.meta.url (ES2015)',
231+
body: 'import.meta.url0ドル',
232+
},
221233
imp: {
222234
name: 'import module (ES2015)',
223235
body: "import ${2:name} from '1ドル';0ドル",
224236
},
237+
imd: {
238+
name: 'import module dynamically (ES2020)',
239+
body: 'import(1ドル)0ドル',
240+
},
225241
imf: {
226242
name: 'import file (ES2015)',
227243
body: "import '1ドル';0ドル",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /