forked from faceyspacey/babel-plugin-dual-import
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js.snap
89 lines (65 loc) · 2.49 KB
/
index.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`1. static import 1`] = `
"
import(\\"./Foo\\")
↓ ↓ ↓ ↓ ↓ ↓
import _importCss from \\"babel-plugin-dual-import/importCss.js\\";
Promise.all([import( /* webpackChunkName: 'Foo' */\\"./Foo\\"), _importCss(\\"Foo\\")]).then(proms => proms[0]);
"
`;
exports[`2. static import (with relative paths) 1`] = `
"
import(\\"../../Foo\\")
↓ ↓ ↓ ↓ ↓ ↓
import _importCss from \\"babel-plugin-dual-import/importCss.js\\";
Promise.all([import( /* webpackChunkName: 'Foo' */\\"../../Foo\\"), _importCss(\\"Foo\\")]).then(proms => proms[0]);
"
`;
exports[`3. static import (with file extension) 1`] = `
"
import(\\"./Foo.js\\")
↓ ↓ ↓ ↓ ↓ ↓
import _importCss from \\"babel-plugin-dual-import/importCss.js\\";
Promise.all([import( /* webpackChunkName: 'Foo' */\\"./Foo.js\\"), _importCss(\\"Foo\\")]).then(proms => proms[0]);
"
`;
exports[`4. static import (string template) 1`] = `
"
import(\`./base\`)
↓ ↓ ↓ ↓ ↓ ↓
import _importCss from \\"babel-plugin-dual-import/importCss.js\\";
Promise.all([import( /* webpackChunkName: 'base' */\`./base\`), _importCss(\`base\`)]).then(proms => proms[0]);
"
`;
exports[`5. static import (string template + relative paths) 1`] = `
"
import(\`../../base\`)
↓ ↓ ↓ ↓ ↓ ↓
import _importCss from \\"babel-plugin-dual-import/importCss.js\\";
Promise.all([import( /* webpackChunkName: 'base' */\`../../base\`), _importCss(\`base\`)]).then(proms => proms[0]);
"
`;
exports[`6. dynamic import (string template) 1`] = `
"
import(\`./base/\${page}\`)
↓ ↓ ↓ ↓ ↓ ↓
import _importCss from \\"babel-plugin-dual-import/importCss.js\\";
Promise.all([import( /* webpackChunkName: 'base/[request]' */\`./base/\${page}\`), _importCss(\`base/\${page}\`)]).then(proms => proms[0]);
"
`;
exports[`7. dynamic import (string template - dynamic at 1st segment) 1`] = `
"
import(\`./\${page}\`)
↓ ↓ ↓ ↓ ↓ ↓
import _importCss from \\"babel-plugin-dual-import/importCss.js\\";
Promise.all([import( /* webpackChunkName: '[request]' */\`./\${page}\`), _importCss(\`\${page}\`)]).then(proms => proms[0]);
"
`;
exports[`8. dynamic import (string template + relative paths) 1`] = `
"
import(\`../../base/\${page}\`)
↓ ↓ ↓ ↓ ↓ ↓
import _importCss from \\"babel-plugin-dual-import/importCss.js\\";
Promise.all([import( /* webpackChunkName: 'base/[request]' */\`../../base/\${page}\`), _importCss(\`base/\${page}\`)]).then(proms => proms[0]);
"
`;