-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.js.snap
113 lines (73 loc) · 3.51 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`dynamic import (string template + relative paths) 1`] = `
"
import(\`../../base/\${page}\`)
↓ ↓ ↓ ↓ ↓ ↓
var _importCss = _interopRequireDefault(require(\\"babel-plugin-dual-import/importCss.js\\")).default;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
Promise.all([import( /* webpackChunkName: 'base/[request]' */\`../../base/\${page}\`), _importCss(\`base/\${page}\`)]).then(proms => proms[0]);
"
`;
exports[`dynamic import (string template - dynamic at 1st segment) 1`] = `
"
import(\`./\${page}\`)
↓ ↓ ↓ ↓ ↓ ↓
var _importCss = _interopRequireDefault(require(\\"babel-plugin-dual-import/importCss.js\\")).default;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
Promise.all([import( /* webpackChunkName: '[request]' */\`./\${page}\`), _importCss(\`\${page}\`)]).then(proms => proms[0]);
"
`;
exports[`dynamic import (string template) 1`] = `
"
import(\`./base/\${page}\`)
↓ ↓ ↓ ↓ ↓ ↓
var _importCss = _interopRequireDefault(require(\\"babel-plugin-dual-import/importCss.js\\")).default;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
Promise.all([import( /* webpackChunkName: 'base/[request]' */\`./base/\${page}\`), _importCss(\`base/\${page}\`)]).then(proms => proms[0]);
"
`;
exports[`static import (string template + relative paths) 1`] = `
"
import(\`../../base\`)
↓ ↓ ↓ ↓ ↓ ↓
var _importCss = _interopRequireDefault(require(\\"babel-plugin-dual-import/importCss.js\\")).default;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
Promise.all([import( /* webpackChunkName: 'base' */\`../../base\`), _importCss(\`base\`)]).then(proms => proms[0]);
"
`;
exports[`static import (string template) 1`] = `
"
import(\`./base\`)
↓ ↓ ↓ ↓ ↓ ↓
var _importCss = _interopRequireDefault(require(\\"babel-plugin-dual-import/importCss.js\\")).default;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
Promise.all([import( /* webpackChunkName: 'base' */\`./base\`), _importCss(\`base\`)]).then(proms => proms[0]);
"
`;
exports[`static import (with file extension) 1`] = `
"
import(\\"./Foo.js\\")
↓ ↓ ↓ ↓ ↓ ↓
var _importCss = _interopRequireDefault(require(\\"babel-plugin-dual-import/importCss.js\\")).default;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
Promise.all([import( /* webpackChunkName: 'Foo' */\\"./Foo.js\\"), _importCss(\\"Foo\\")]).then(proms => proms[0]);
"
`;
exports[`static import (with relative paths) 1`] = `
"
import(\\"../../Foo\\")
↓ ↓ ↓ ↓ ↓ ↓
var _importCss = _interopRequireDefault(require(\\"babel-plugin-dual-import/importCss.js\\")).default;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
Promise.all([import( /* webpackChunkName: 'Foo' */\\"../../Foo\\"), _importCss(\\"Foo\\")]).then(proms => proms[0]);
"
`;
exports[`static import 1`] = `
"
import(\\"./Foo\\")
↓ ↓ ↓ ↓ ↓ ↓
var _importCss = _interopRequireDefault(require(\\"babel-plugin-dual-import/importCss.js\\")).default;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
Promise.all([import( /* webpackChunkName: 'Foo' */\\"./Foo\\"), _importCss(\\"Foo\\")]).then(proms => proms[0]);
"
`;