@nuxt/webpack-builder 3.8.1 β†’ 3.8.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.
Files changed (3) hide show
  1. package/README.md +33 -2
  2. package/dist/index.mjs +11 -12
  3. package/package.json +19 -14
package/README.md CHANGED
@@ -17,8 +17,9 @@ It provides a number of features that make it easy to build fast, SEO-friendly,
17
17
  - Automatic routing with code-splitting
18
18
  - State management
19
19
  - SEO Optimization
20
- - Extensible with [100+ modules](https://nuxt.com/modules)
21
- - Deployment to a variety of hosting platforms
20
+ - Auto imports
21
+ - Extensible with [180+ modules](https://nuxt.com/modules)
22
+ - Deployment to a variety of [hosting platforms](https://nuxt.com/deploy)
22
23
  - ...[and much more](https://nuxt.com) πŸš€
23
24
 
24
25
  ## Getting Started
@@ -31,6 +32,36 @@ npx nuxi@latest init <my-project>
31
32
 
32
33
  Discover also [nuxt.new](https://nuxt.new): Open a Nuxt starter on CodeSandbox, StackBlitz or locally to get up and running in a few seconds.
33
34
 
35
+ ## Vue Development
36
+
37
+ Simple, intuitive and powerful, Nuxt lets you write Vue components in a way that makes sense. Every repetitive task is automated, so you can focus on writing your full-stack Vue application with confidence.
38
+
39
+ Example of an `app.vue`:
40
+
41
+ ```vue
42
+ <script setup>
43
+ useSeoMeta({
44
+ title: 'Meet Nuxt',
45
+ description: 'The Intuitive Vue Framework.'
46
+ })
47
+ </script>
48
+
49
+ <template>
50
+ <div id="app">
51
+ <AppHeader />
52
+ <NuxtPage />
53
+ <AppFooter />
54
+ </div>
55
+ </template>
56
+
57
+ <style>
58
+ #app {
59
+ background-color: #020420;
60
+ color: #00DC82;
61
+ }
62
+ </style>
63
+ ```
64
+
34
65
  ## Documentation
35
66
 
36
67
  We highly recommend you take a look at the [Nuxt documentation](https://nuxt.com/docs) to level up. It’s a great resource for learning more about the framework. It covers everything from getting started to advanced topics.
package/dist/index.mjs CHANGED
@@ -239,28 +239,27 @@ class ScopedVarsCollector {
239
239
  }
240
240
  const NUXT_IMPORT_RE = /nuxt|#app|#imports/;
241
241
  function detectImportNames(code, composableMeta) {
242
- const imports = findStaticImports(code);
243
242
  const names = /* @__PURE__ */ new Set();
244
- for (const i of imports) {
245
- let addName = function(name) {
246
- const source = composableMeta[name]?.source;
247
- if (source && matchWithStringOrRegex(i.specifier, source)) {
248
- return;
249
- }
250
- names.add(name);
251
- };
243
+ function addName(name, specifier) {
244
+ const source = composableMeta[name]?.source;
245
+ if (source && matchWithStringOrRegex(specifier, source)) {
246
+ return;
247
+ }
248
+ names.add(name);
249
+ }
250
+ for (const i of findStaticImports(code)) {
252
251
  if (NUXT_IMPORT_RE.test(i.specifier)) {
253
252
  continue;
254
253
  }
255
254
  const { namedImports, defaultImport, namespacedImport } = parseStaticImport(i);
256
255
  for (const name in namedImports || {}) {
257
- addName(namedImports[name]);
256
+ addName(namedImports[name], i.specifier);
258
257
  }
259
258
  if (defaultImport) {
260
- addName(defaultImport);
259
+ addName(defaultImport, i.specifier);
261
260
  }
262
261
  if (namespacedImport) {
263
- addName(namespacedImport);
262
+ addName(namespacedImport, i.specifier);
264
263
  }
265
264
  }
266
265
  return names;
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder",
3
- "version": "3.8.1",
4
- "repository": "nuxt/nuxt",
3
+ "version": "3.8.2",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/nuxt/nuxt.git",
7
+ "directory": "packages/webpack"
8
+ },
5
9
  "description": "Webpack bundler for Nuxt",
10
+ "homepage": "https://nuxt.com",
6
11
  "license": "MIT",
7
12
  "type": "module",
8
13
  "types": "./dist/index.d.ts",
@@ -29,7 +34,7 @@
29
34
  "file-loader": "^6.2.0",
30
35
  "fork-ts-checker-webpack-plugin": "^9.0.2",
31
36
  "fs-extra": "^11.1.1",
32
- "h3": "^1.8.2",
37
+ "h3": "^1.9.0",
33
38
  "hash-sum": "^2.0.0",
34
39
  "lodash-es": "4.17.21",
35
40
  "magic-string": "^0.30.5",
@@ -45,31 +50,31 @@
45
50
  "postcss-loader": "^7.3.3",
46
51
  "postcss-url": "^10.1.3",
47
52
  "pug-plain-loader": "^1.1.0",
48
- "std-env": "^3.4.3",
53
+ "std-env": "^3.5.0",
49
54
  "time-fix-plugin": "^2.0.7",
50
- "ufo": "^1.3.1",
51
- "unplugin": "^1.5.0",
55
+ "ufo": "^1.3.2",
56
+ "unplugin": "^1.5.1",
52
57
  "url-loader": "^4.1.1",
53
58
  "vue-bundle-renderer": "^2.0.0",
54
59
  "vue-loader": "^17.3.1",
55
60
  "webpack": "^5.89.0",
56
- "webpack-bundle-analyzer": "^4.9.1",
61
+ "webpack-bundle-analyzer": "^4.10.1",
57
62
  "webpack-dev-middleware": "^6.1.1",
58
63
  "webpack-hot-middleware": "^2.25.4",
59
64
  "webpack-virtual-modules": "^0.6.0",
60
65
  "webpackbar": "^5.0.2",
61
- "@nuxt/kit": "3.8.1"
66
+ "@nuxt/kit": "3.8.2"
62
67
  },
63
68
  "devDependencies": {
64
- "@types/fs-extra": "11.0.3",
65
- "@types/hash-sum": "1.0.1",
66
- "@types/pify": "5.0.3",
67
- "@types/webpack-bundle-analyzer": "4.6.2",
68
- "@types/webpack-hot-middleware": "2.25.8",
69
+ "@types/fs-extra": "11.0.4",
70
+ "@types/hash-sum": "1.0.2",
71
+ "@types/pify": "5.0.4",
72
+ "@types/webpack-bundle-analyzer": "4.6.3",
73
+ "@types/webpack-hot-middleware": "2.25.9",
69
74
  "@types/webpack-virtual-modules": "0.1.3",
70
75
  "unbuild": "latest",
71
76
  "vue": "3.3.8",
72
- "@nuxt/schema": "3.8.1"
77
+ "@nuxt/schema": "3.8.2"
73
78
  },
74
79
  "peerDependencies": {
75
80
  "vue": "^3.3.4"