vite 2.0.4 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of vite might be problematic. Click here for more details.

package/CHANGELOG.md CHANGED
@@ -1,3 +1,63 @@
1
+ ## [2.1.2](https://github.com/vitejs/vite/compare/v2.1.1...v2.1.2) (2021-03-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update esbuild target to allow destructuring ([#2566](https://github.com/vitejs/vite/issues/2566)) ([da49782](https://github.com/vitejs/vite/commit/da497823e249aaf4d3a7da80e2211501f6159e1e))
7
+ * **manifest:** do not fail when using rollupOtions.external ([#2532](https://github.com/vitejs/vite/issues/2532)) ([e44cc11](https://github.com/vitejs/vite/commit/e44cc11bcf265d0bc4eaf5679c3b84d4b31d10ad))
8
+
9
+
10
+
11
+ ## [2.1.1](https://github.com/vitejs/vite/compare/v2.1.0...v2.1.1) (2021-03-16)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * decode path before reading sourcemap source content ([73b80d5](https://github.com/vitejs/vite/commit/73b80d5da99bbf35afe95c588d30c5b38655e225)), closes [#2524](https://github.com/vitejs/vite/issues/2524)
17
+ * **scan:** handle await replacement edge case ([cbfc3e9](https://github.com/vitejs/vite/commit/cbfc3e9dbabc4b4863a7f659b59d2e5115a81481)), closes [#2528](https://github.com/vitejs/vite/issues/2528)
18
+ * enable latest syntax when parsing for ssr ([407ce3b](https://github.com/vitejs/vite/commit/407ce3b7c5c07a51b5e20e97bc2fff2f173c74c0)), closes [#2526](https://github.com/vitejs/vite/issues/2526)
19
+
20
+
21
+
22
+ # [2.1.0](https://github.com/vitejs/vite/compare/v2.0.5...v2.1.0) (2021-03-15)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **json:** support importing json with ?url and ?raw queries ([fd0a0d9](https://github.com/vitejs/vite/commit/fd0a0d9bcaf0fd9098c5eb1a0c53226575fdcccb)), closes [#2455](https://github.com/vitejs/vite/issues/2455)
28
+ * **ssr:** fix mistakenly overwriting destructure variables as import bindings ([#2417](https://github.com/vitejs/vite/issues/2417)) ([24c866f](https://github.com/vitejs/vite/commit/24c866f0de4fddec45fd6aa757185d5e74d0e7f3)), closes [#2409](https://github.com/vitejs/vite/issues/2409)
29
+ * correctly handle explicit ts config file ([#2515](https://github.com/vitejs/vite/issues/2515)) ([e8f3c78](https://github.com/vitejs/vite/commit/e8f3c784b338a87a274dce44c73230d621cecb62))
30
+ * **hmr:** never invalidate an accepting importer ([#2457](https://github.com/vitejs/vite/issues/2457)) ([63bd250](https://github.com/vitejs/vite/commit/63bd2502781b87a2c04a375d9e7b770f63d8857c))
31
+ * **ssr:** handle empty sourcemaps (fix [#2391](https://github.com/vitejs/vite/issues/2391)) ([#2441](https://github.com/vitejs/vite/issues/2441)) ([103dec9](https://github.com/vitejs/vite/commit/103dec9fe80c333e1e8daec53fb08ab597f1120b))
32
+ * fix early logger definiton in resolveConfig ([#2425](https://github.com/vitejs/vite/issues/2425)) ([96ea9f4](https://github.com/vitejs/vite/commit/96ea9f4ad4522548248a951ed0cded46413b6193))
33
+ * Improve how [@fs](https://github.com/fs) urls are printed ([#2362](https://github.com/vitejs/vite/issues/2362)) ([5d4e82d](https://github.com/vitejs/vite/commit/5d4e82d90238b0d52ded1eea6359947eefc5e054))
34
+ * Improve injectQuery path handling ([#2435](https://github.com/vitejs/vite/issues/2435)) ([a5412f8](https://github.com/vitejs/vite/commit/a5412f86be80fa55cf41ac286b0a9675098c6ab8)), closes [#2422](https://github.com/vitejs/vite/issues/2422)
35
+ * keep process running when fail to load config in restarting server ([#2510](https://github.com/vitejs/vite/issues/2510)) ([b18af15](https://github.com/vitejs/vite/commit/b18af15fe83d1fcea7800fab9b550018476f740f)), closes [#2496](https://github.com/vitejs/vite/issues/2496)
36
+ * make import resolution failures easier to track down ([#2450](https://github.com/vitejs/vite/issues/2450)) ([f6ac860](https://github.com/vitejs/vite/commit/f6ac8600d944a5ce92df92c0cbef162a165c6b94))
37
+ * respect cors and proxy options in preview command ([f7d85ae](https://github.com/vitejs/vite/commit/f7d85ae4c25e7f9481261d691696554113c2d58b)), closes [#2279](https://github.com/vitejs/vite/issues/2279)
38
+ * url linked to wmr rollup-plugin-container.js found 404 ([#2368](https://github.com/vitejs/vite/issues/2368)) ([209232c](https://github.com/vitejs/vite/commit/209232cc0417f46ea73458650efa5bf6d9306e65))
39
+ * **build:** respect rollupOtions.external at generate manifest([#2353](https://github.com/vitejs/vite/issues/2353)) ([b05a567](https://github.com/vitejs/vite/commit/b05a5676eb4c46852c0833cc5ff264533d8053ef))
40
+
41
+
42
+ ### Features
43
+
44
+ * allow custom websocket server ([#2338](https://github.com/vitejs/vite/issues/2338)) ([9243cc9](https://github.com/vitejs/vite/commit/9243cc9e8ea6271eb5d548ff459eb7cc5f260598))
45
+ * bundle vite config file with esbuild instead of rollup ([#2517](https://github.com/vitejs/vite/issues/2517)) ([e034ee2](https://github.com/vitejs/vite/commit/e034ee2d9c7ef1497d1c9248ef05cdd8e0efb6ad))
46
+ * **dev:** support keepNames for dependencies ([#2376](https://github.com/vitejs/vite/issues/2376)) ([b5cd8c8](https://github.com/vitejs/vite/commit/b5cd8c8dc33e920a301ef03c097147d841d08200))
47
+
48
+
49
+
50
+ ## [2.0.5](https://github.com/vitejs/vite/compare/v2.0.4...v2.0.5) (2021-03-02)
51
+
52
+
53
+ ### Bug Fixes
54
+
55
+ * serving static files from root ([#2309](https://github.com/vitejs/vite/issues/2309)) ([4f942be](https://github.com/vitejs/vite/commit/4f942bef3ee2dc496a3a6854de9ea7b208829ff6))
56
+ * **scan:** handle race condition for tempDir removal ([#2299](https://github.com/vitejs/vite/issues/2299)) ([67e56e4](https://github.com/vitejs/vite/commit/67e56e48dac7875a2916845614bfb970722744a0))
57
+ * await bundle close ([#2313](https://github.com/vitejs/vite/issues/2313)) ([c988574](https://github.com/vitejs/vite/commit/c988574c3253ff133c2395c1d3884945e67641aa))
58
+
59
+
60
+
1
61
  ## [2.0.4](https://github.com/vitejs/vite/compare/v2.0.3...v2.0.4) (2021-02-26)
2
62
 
3
63
 
package/LICENSE.md CHANGED
@@ -25,9 +25,218 @@ SOFTWARE.
25
25
 
26
26
  # Licenses of bundled dependencies
27
27
  The published Vite artifact additionally contains code with the following licenses:
28
- MIT, ISC, BSD-2-Clause, Apache-2.0, (BSD-3-Clause OR GPL-2.0), BSD-3-Clause, CC0-1.0
28
+ Apache-2.0, MIT, ISC, BSD-2-Clause, (BSD-3-Clause OR GPL-2.0), BSD-3-Clause, CC0-1.0
29
29
 
30
30
  # Bundled dependencies:
31
+ ## @ampproject/remapping
32
+ License: Apache-2.0
33
+ By: Justin Ridgewell
34
+ Repository: git+https://github.com/ampproject/remapping.git
35
+
36
+ > Apache License
37
+ > Version 2.0, January 2004
38
+ > http://www.apache.org/licenses/
39
+ >
40
+ > TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
41
+ >
42
+ > 1. Definitions.
43
+ >
44
+ > "License" shall mean the terms and conditions for use, reproduction,
45
+ > and distribution as defined by Sections 1 through 9 of this document.
46
+ >
47
+ > "Licensor" shall mean the copyright owner or entity authorized by
48
+ > the copyright owner that is granting the License.
49
+ >
50
+ > "Legal Entity" shall mean the union of the acting entity and all
51
+ > other entities that control, are controlled by, or are under common
52
+ > control with that entity. For the purposes of this definition,
53
+ > "control" means (i) the power, direct or indirect, to cause the
54
+ > direction or management of such entity, whether by contract or
55
+ > otherwise, or (ii) ownership of fifty percent (50%) or more of the
56
+ > outstanding shares, or (iii) beneficial ownership of such entity.
57
+ >
58
+ > "You" (or "Your") shall mean an individual or Legal Entity
59
+ > exercising permissions granted by this License.
60
+ >
61
+ > "Source" form shall mean the preferred form for making modifications,
62
+ > including but not limited to software source code, documentation
63
+ > source, and configuration files.
64
+ >
65
+ > "Object" form shall mean any form resulting from mechanical
66
+ > transformation or translation of a Source form, including but
67
+ > not limited to compiled object code, generated documentation,
68
+ > and conversions to other media types.
69
+ >
70
+ > "Work" shall mean the work of authorship, whether in Source or
71
+ > Object form, made available under the License, as indicated by a
72
+ > copyright notice that is included in or attached to the work
73
+ > (an example is provided in the Appendix below).
74
+ >
75
+ > "Derivative Works" shall mean any work, whether in Source or Object
76
+ > form, that is based on (or derived from) the Work and for which the
77
+ > editorial revisions, annotations, elaborations, or other modifications
78
+ > represent, as a whole, an original work of authorship. For the purposes
79
+ > of this License, Derivative Works shall not include works that remain
80
+ > separable from, or merely link (or bind by name) to the interfaces of,
81
+ > the Work and Derivative Works thereof.
82
+ >
83
+ > "Contribution" shall mean any work of authorship, including
84
+ > the original version of the Work and any modifications or additions
85
+ > to that Work or Derivative Works thereof, that is intentionally
86
+ > submitted to Licensor for inclusion in the Work by the copyright owner
87
+ > or by an individual or Legal Entity authorized to submit on behalf of
88
+ > the copyright owner. For the purposes of this definition, "submitted"
89
+ > means any form of electronic, verbal, or written communication sent
90
+ > to the Licensor or its representatives, including but not limited to
91
+ > communication on electronic mailing lists, source code control systems,
92
+ > and issue tracking systems that are managed by, or on behalf of, the
93
+ > Licensor for the purpose of discussing and improving the Work, but
94
+ > excluding communication that is conspicuously marked or otherwise
95
+ > designated in writing by the copyright owner as "Not a Contribution."
96
+ >
97
+ > "Contributor" shall mean Licensor and any individual or Legal Entity
98
+ > on behalf of whom a Contribution has been received by Licensor and
99
+ > subsequently incorporated within the Work.
100
+ >
101
+ > 2. Grant of Copyright License. Subject to the terms and conditions of
102
+ > this License, each Contributor hereby grants to You a perpetual,
103
+ > worldwide, non-exclusive, no-charge, royalty-free, irrevocable
104
+ > copyright license to reproduce, prepare Derivative Works of,
105
+ > publicly display, publicly perform, sublicense, and distribute the
106
+ > Work and such Derivative Works in Source or Object form.
107
+ >
108
+ > 3. Grant of Patent License. Subject to the terms and conditions of
109
+ > this License, each Contributor hereby grants to You a perpetual,
110
+ > worldwide, non-exclusive, no-charge, royalty-free, irrevocable
111
+ > (except as stated in this section) patent license to make, have made,
112
+ > use, offer to sell, sell, import, and otherwise transfer the Work,
113
+ > where such license applies only to those patent claims licensable
114
+ > by such Contributor that are necessarily infringed by their
115
+ > Contribution(s) alone or by combination of their Contribution(s)
116
+ > with the Work to which such Contribution(s) was submitted. If You
117
+ > institute patent litigation against any entity (including a
118
+ > cross-claim or counterclaim in a lawsuit) alleging that the Work
119
+ > or a Contribution incorporated within the Work constitutes direct
120
+ > or contributory patent infringement, then any patent licenses
121
+ > granted to You under this License for that Work shall terminate
122
+ > as of the date such litigation is filed.
123
+ >
124
+ > 4. Redistribution. You may reproduce and distribute copies of the
125
+ > Work or Derivative Works thereof in any medium, with or without
126
+ > modifications, and in Source or Object form, provided that You
127
+ > meet the following conditions:
128
+ >
129
+ > (a) You must give any other recipients of the Work or
130
+ > Derivative Works a copy of this License; and
131
+ >
132
+ > (b) You must cause any modified files to carry prominent notices
133
+ > stating that You changed the files; and
134
+ >
135
+ > (c) You must retain, in the Source form of any Derivative Works
136
+ > that You distribute, all copyright, patent, trademark, and
137
+ > attribution notices from the Source form of the Work,
138
+ > excluding those notices that do not pertain to any part of
139
+ > the Derivative Works; and
140
+ >
141
+ > (d) If the Work includes a "NOTICE" text file as part of its
142
+ > distribution, then any Derivative Works that You distribute must
143
+ > include a readable copy of the attribution notices contained
144
+ > within such NOTICE file, excluding those notices that do not
145
+ > pertain to any part of the Derivative Works, in at least one
146
+ > of the following places: within a NOTICE text file distributed
147
+ > as part of the Derivative Works; within the Source form or
148
+ > documentation, if provided along with the Derivative Works; or,
149
+ > within a display generated by the Derivative Works, if and
150
+ > wherever such third-party notices normally appear. The contents
151
+ > of the NOTICE file are for informational purposes only and
152
+ > do not modify the License. You may add Your own attribution
153
+ > notices within Derivative Works that You distribute, alongside
154
+ > or as an addendum to the NOTICE text from the Work, provided
155
+ > that such additional attribution notices cannot be construed
156
+ > as modifying the License.
157
+ >
158
+ > You may add Your own copyright statement to Your modifications and
159
+ > may provide additional or different license terms and conditions
160
+ > for use, reproduction, or distribution of Your modifications, or
161
+ > for any such Derivative Works as a whole, provided Your use,
162
+ > reproduction, and distribution of the Work otherwise complies with
163
+ > the conditions stated in this License.
164
+ >
165
+ > 5. Submission of Contributions. Unless You explicitly state otherwise,
166
+ > any Contribution intentionally submitted for inclusion in the Work
167
+ > by You to the Licensor shall be under the terms and conditions of
168
+ > this License, without any additional terms or conditions.
169
+ > Notwithstanding the above, nothing herein shall supersede or modify
170
+ > the terms of any separate license agreement you may have executed
171
+ > with Licensor regarding such Contributions.
172
+ >
173
+ > 6. Trademarks. This License does not grant permission to use the trade
174
+ > names, trademarks, service marks, or product names of the Licensor,
175
+ > except as required for reasonable and customary use in describing the
176
+ > origin of the Work and reproducing the content of the NOTICE file.
177
+ >
178
+ > 7. Disclaimer of Warranty. Unless required by applicable law or
179
+ > agreed to in writing, Licensor provides the Work (and each
180
+ > Contributor provides its Contributions) on an "AS IS" BASIS,
181
+ > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
182
+ > implied, including, without limitation, any warranties or conditions
183
+ > of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
184
+ > PARTICULAR PURPOSE. You are solely responsible for determining the
185
+ > appropriateness of using or redistributing the Work and assume any
186
+ > risks associated with Your exercise of permissions under this License.
187
+ >
188
+ > 8. Limitation of Liability. In no event and under no legal theory,
189
+ > whether in tort (including negligence), contract, or otherwise,
190
+ > unless required by applicable law (such as deliberate and grossly
191
+ > negligent acts) or agreed to in writing, shall any Contributor be
192
+ > liable to You for damages, including any direct, indirect, special,
193
+ > incidental, or consequential damages of any character arising as a
194
+ > result of this License or out of the use or inability to use the
195
+ > Work (including but not limited to damages for loss of goodwill,
196
+ > work stoppage, computer failure or malfunction, or any and all
197
+ > other commercial damages or losses), even if such Contributor
198
+ > has been advised of the possibility of such damages.
199
+ >
200
+ > 9. Accepting Warranty or Additional Liability. While redistributing
201
+ > the Work or Derivative Works thereof, You may choose to offer,
202
+ > and charge a fee for, acceptance of support, warranty, indemnity,
203
+ > or other liability obligations and/or rights consistent with this
204
+ > License. However, in accepting such obligations, You may act only
205
+ > on Your own behalf and on Your sole responsibility, not on behalf
206
+ > of any other Contributor, and only if You agree to indemnify,
207
+ > defend, and hold each Contributor harmless for any liability
208
+ > incurred by, or claims asserted against, such Contributor by reason
209
+ > of your accepting any such warranty or additional liability.
210
+ >
211
+ > END OF TERMS AND CONDITIONS
212
+ >
213
+ > APPENDIX: How to apply the Apache License to your work.
214
+ >
215
+ > To apply the Apache License to your work, attach the following
216
+ > boilerplate notice, with the fields enclosed by brackets "[]"
217
+ > replaced with your own identifying information. (Don't include
218
+ > the brackets!) The text should be enclosed in the appropriate
219
+ > comment syntax for the file format. We also recommend that a
220
+ > file or class name and description of purpose be included on the
221
+ > same "printed page" as the copyright notice for easier
222
+ > identification within third-party archives.
223
+ >
224
+ > Copyright 2019 Google LLC
225
+ >
226
+ > Licensed under the Apache License, Version 2.0 (the "License");
227
+ > you may not use this file except in compliance with the License.
228
+ > You may obtain a copy of the License at
229
+ >
230
+ > http://www.apache.org/licenses/LICENSE-2.0
231
+ >
232
+ > Unless required by applicable law or agreed to in writing, software
233
+ > distributed under the License is distributed on an "AS IS" BASIS,
234
+ > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
235
+ > See the License for the specific language governing permissions and
236
+ > limitations under the License.
237
+
238
+ ---------------------------------------
239
+
31
240
  ## @babel/code-frame
32
241
  License: MIT
33
242
  By: Sebastian McKenzie
@@ -2678,35 +2887,6 @@ Repository: https://github.com/rich-harris/magic-string
2678
2887
 
2679
2888
  ---------------------------------------
2680
2889
 
2681
- ## merge-source-map
2682
- License: MIT
2683
- By: keik
2684
- Repository: git+https://github.com/keik/merge-source-map.git
2685
-
2686
- > The MIT License (MIT)
2687
- >
2688
- > Copyright (c) keik <k4t0.kei@gmail.com>
2689
- >
2690
- > Permission is hereby granted, free of charge, to any person obtaining a copy
2691
- > of this software and associated documentation files (the "Software"), to deal
2692
- > in the Software without restriction, including without limitation the rights
2693
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2694
- > copies of the Software, and to permit persons to whom the Software is
2695
- > furnished to do so, subject to the following conditions:
2696
- >
2697
- > The above copyright notice and this permission notice shall be included in
2698
- > all copies or substantial portions of the Software.
2699
- >
2700
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2701
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2702
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2703
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2704
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2705
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2706
- > THE SOFTWARE.
2707
-
2708
- ---------------------------------------
2709
-
2710
2890
  ## merge-stream
2711
2891
  License: MIT
2712
2892
  By: Stephen Sugden
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var build = require('./dep-1bdbec90.js');
3
+ var build = require('./dep-efe32886.js');
4
4
 
5
5
  /**
6
6
  * Make a map and return a function for checking if a key
@@ -440,33 +440,33 @@ const isReservedProp = /*#__PURE__*/ makeMap(
440
440
  'onVnodeBeforeMount,onVnodeMounted,' +
441
441
  'onVnodeBeforeUpdate,onVnodeUpdated,' +
442
442
  'onVnodeBeforeUnmount,onVnodeUnmounted');
443
- const cacheStringFunction = (fn) => {
443
+ const cacheStringFunction$1 = (fn) => {
444
444
  const cache = Object.create(null);
445
445
  return ((str) => {
446
446
  const hit = cache[str];
447
447
  return hit || (cache[str] = fn(str));
448
448
  });
449
449
  };
450
- const camelizeRE = /-(\w)/g;
450
+ const camelizeRE$1 = /-(\w)/g;
451
451
  /**
452
452
  * @private
453
453
  */
454
- const camelize = cacheStringFunction((str) => {
455
- return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
454
+ const camelize$1 = cacheStringFunction$1((str) => {
455
+ return str.replace(camelizeRE$1, (_, c) => (c ? c.toUpperCase() : ''));
456
456
  });
457
457
  const hyphenateRE = /\B([A-Z])/g;
458
458
  /**
459
459
  * @private
460
460
  */
461
- const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());
461
+ const hyphenate = cacheStringFunction$1((str) => str.replace(hyphenateRE, '-$1').toLowerCase());
462
462
  /**
463
463
  * @private
464
464
  */
465
- const capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
465
+ const capitalize = cacheStringFunction$1((str) => str.charAt(0).toUpperCase() + str.slice(1));
466
466
  /**
467
467
  * @private
468
468
  */
469
- const toHandlerKey = cacheStringFunction((str) => (str ? `on${capitalize(str)}` : ``));
469
+ const toHandlerKey = cacheStringFunction$1((str) => (str ? `on${capitalize(str)}` : ``));
470
470
  // compare whether a value has changed, accounting for NaN.
471
471
  const hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue);
472
472
  const invokeArrayFns = (fns, arg) => {
@@ -508,7 +508,7 @@ var shared_esmBundler = {
508
508
  NOOP: NOOP,
509
509
  PatchFlagNames: PatchFlagNames,
510
510
  babelParserDefaultPlugins: babelParserDefaultPlugins,
511
- camelize: camelize,
511
+ camelize: camelize$1,
512
512
  capitalize: capitalize,
513
513
  def: def,
514
514
  escapeHtml: escapeHtml,
@@ -2039,7 +2039,7 @@ function createTransformContext(root, { filename = '', prefixIdentifiers = false
2039
2039
  const nameMatch = filename.replace(/\?.*$/, '').match(/([^/\\]+)\.\w+$/);
2040
2040
  const context = {
2041
2041
  // options
2042
- selfName: nameMatch && capitalize(camelize(nameMatch[1])),
2042
+ selfName: nameMatch && capitalize(camelize$1(nameMatch[1])),
2043
2043
  prefixIdentifiers,
2044
2044
  hoistStatic,
2045
2045
  cacheHandlers,
@@ -3996,19 +3996,19 @@ function stringifyDynamicPropNames(props) {
3996
3996
  ? Object.freeze({})
3997
3997
  : {};
3998
3998
  (process.env.NODE_ENV !== 'production') ? Object.freeze([]) : [];
3999
- const cacheStringFunction$1 = (fn) => {
3999
+ const cacheStringFunction = (fn) => {
4000
4000
  const cache = Object.create(null);
4001
4001
  return ((str) => {
4002
4002
  const hit = cache[str];
4003
4003
  return hit || (cache[str] = fn(str));
4004
4004
  });
4005
4005
  };
4006
- const camelizeRE$1 = /-(\w)/g;
4006
+ const camelizeRE = /-(\w)/g;
4007
4007
  /**
4008
4008
  * @private
4009
4009
  */
4010
- const camelize$1 = cacheStringFunction$1((str) => {
4011
- return str.replace(camelizeRE$1, (_, c) => (c ? c.toUpperCase() : ''));
4010
+ const camelize = cacheStringFunction((str) => {
4011
+ return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
4012
4012
  });
4013
4013
 
4014
4014
  const transformSlotOutlet = (node, context) => {
@@ -4043,7 +4043,7 @@ function processSlotOutlet(node, context) {
4043
4043
  slotName = JSON.stringify(p.value.content);
4044
4044
  }
4045
4045
  else {
4046
- p.name = camelize$1(p.name);
4046
+ p.name = camelize(p.name);
4047
4047
  nonNameProps.push(p);
4048
4048
  }
4049
4049
  }
@@ -4055,7 +4055,7 @@ function processSlotOutlet(node, context) {
4055
4055
  }
4056
4056
  else {
4057
4057
  if (p.name === 'bind' && p.arg && isStaticExp(p.arg)) {
4058
- p.arg.content = camelize$1(p.arg.content);
4058
+ p.arg.content = camelize(p.arg.content);
4059
4059
  }
4060
4060
  nonNameProps.push(p);
4061
4061
  }
@@ -4085,7 +4085,7 @@ const transformOn = (dir, node, context, augmentor) => {
4085
4085
  if (arg.isStatic) {
4086
4086
  const rawName = arg.content;
4087
4087
  // for all event listeners, auto convert it to camelCase. See issue #2249
4088
- eventName = createSimpleExpression(toHandlerKey(camelize(rawName)), true, arg.loc);
4088
+ eventName = createSimpleExpression(toHandlerKey(camelize$1(rawName)), true, arg.loc);
4089
4089
  }
4090
4090
  else {
4091
4091
  // #2388
@@ -4162,7 +4162,7 @@ const transformBind = (dir, node, context) => {
4162
4162
  if (modifiers.includes('camel')) {
4163
4163
  if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
4164
4164
  if (arg.isStatic) {
4165
- arg.content = camelize(arg.content);
4165
+ arg.content = camelize$1(arg.content);
4166
4166
  }
4167
4167
  else {
4168
4168
  arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;
@@ -3,9 +3,9 @@
3
3
  var path$1 = require('path');
4
4
  var resolve$1 = require('resolve');
5
5
  var fs = require('fs');
6
- var build = require('./dep-1bdbec90.js');
6
+ var build = require('./dep-efe32886.js');
7
7
  var _postcss = require('postcss');
8
- var index$1 = require('./dep-2192e50e.js');
8
+ var index$1 = require('./dep-685e7ba2.js');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
11
11
 
@@ -11,7 +11,7 @@ var colon = ":".charCodeAt(0);
11
11
  var star = "*".charCodeAt(0);
12
12
  var uLower = "u".charCodeAt(0);
13
13
  var uUpper = "U".charCodeAt(0);
14
- var plus = "+".charCodeAt(0);
14
+ var plus$1 = "+".charCodeAt(0);
15
15
  var isUnicodeRange = /^[a-f0-9?-]+$/i;
16
16
 
17
17
  var parse = function(input) {
@@ -278,7 +278,7 @@ var parse = function(input) {
278
278
  name = token;
279
279
  } else if (
280
280
  (uLower === token.charCodeAt(0) || uUpper === token.charCodeAt(0)) &&
281
- plus === token.charCodeAt(1) &&
281
+ plus$1 === token.charCodeAt(1) &&
282
282
  isUnicodeRange.test(token.slice(2))
283
283
  ) {
284
284
  tokens.push({
@@ -378,7 +378,7 @@ function stringify(nodes, custom) {
378
378
  var stringify_1 = stringify;
379
379
 
380
380
  var minus = "-".charCodeAt(0);
381
- var plus$1 = "+".charCodeAt(0);
381
+ var plus = "+".charCodeAt(0);
382
382
  var dot = ".".charCodeAt(0);
383
383
  var exp = "e".charCodeAt(0);
384
384
  var EXP = "E".charCodeAt(0);
@@ -389,7 +389,7 @@ function likeNumber(value) {
389
389
  var code = value.charCodeAt(0);
390
390
  var nextCode;
391
391
 
392
- if (code === plus$1 || code === minus) {
392
+ if (code === plus || code === minus) {
393
393
  nextCode = value.charCodeAt(1);
394
394
 
395
395
  if (nextCode >= 48 && nextCode <= 57) {
@@ -437,7 +437,7 @@ var unit = function(value) {
437
437
 
438
438
  code = value.charCodeAt(pos);
439
439
 
440
- if (code === plus$1 || code === minus) {
440
+ if (code === plus || code === minus) {
441
441
  pos++;
442
442
  }
443
443
 
@@ -475,11 +475,11 @@ var unit = function(value) {
475
475
  if (
476
476
  (code === exp || code === EXP) &&
477
477
  ((nextCode >= 48 && nextCode <= 57) ||
478
- ((nextCode === plus$1 || nextCode === minus) &&
478
+ ((nextCode === plus || nextCode === minus) &&
479
479
  nextNextCode >= 48 &&
480
480
  nextNextCode <= 57))
481
481
  ) {
482
- pos += nextCode === plus$1 || nextCode === minus ? 3 : 2;
482
+ pos += nextCode === plus || nextCode === minus ? 3 : 2;
483
483
 
484
484
  while (pos < length) {
485
485
  code = value.charCodeAt(pos);