@vocab/webpack 1.2.8 → 1.2.9

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.
@@ -113,11 +113,11 @@ async function vocabLoader(source) {
113
113
  const esmExports = findExportNames(source, 'esm');
114
114
  if (esmExports.length > 0) {
115
115
  const exportName = esmExports[0];
116
- trace(`Found ESM export '${exportName}' in ${this.resourcePath}`);
116
+ trace(`Found ESM export '${exportName.n}' in ${this.resourcePath}`);
117
117
  result = /* ts */`
118
118
  import { createLanguage, createTranslationFile } from '@vocab/webpack/${target}';
119
119
  ${translations}
120
- export { translations as ${exportName} };
120
+ export { translations as ${exportName.n} };
121
121
  `;
122
122
  } else {
123
123
  // init needs to be called and waited upon
@@ -113,11 +113,11 @@ async function vocabLoader(source) {
113
113
  const esmExports = findExportNames(source, 'esm');
114
114
  if (esmExports.length > 0) {
115
115
  const exportName = esmExports[0];
116
- trace(`Found ESM export '${exportName}' in ${this.resourcePath}`);
116
+ trace(`Found ESM export '${exportName.n}' in ${this.resourcePath}`);
117
117
  result = /* ts */`
118
118
  import { createLanguage, createTranslationFile } from '@vocab/webpack/${target}';
119
119
  ${translations}
120
- export { translations as ${exportName} };
120
+ export { translations as ${exportName.n} };
121
121
  `;
122
122
  } else {
123
123
  // init needs to be called and waited upon
@@ -85,11 +85,11 @@ async function vocabLoader(source) {
85
85
  const esmExports = findExportNames(source, 'esm');
86
86
  if (esmExports.length > 0) {
87
87
  const exportName = esmExports[0];
88
- trace(`Found ESM export '${exportName}' in ${this.resourcePath}`);
88
+ trace(`Found ESM export '${exportName.n}' in ${this.resourcePath}`);
89
89
  result = /* ts */`
90
90
  import { createLanguage, createTranslationFile } from '@vocab/webpack/${target}';
91
91
  ${translations}
92
- export { translations as ${exportName} };
92
+ export { translations as ${exportName.n} };
93
93
  `;
94
94
  } else {
95
95
  // init needs to be called and waited upon
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "@vocab/webpack",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/seek-oss/vocab.git",
7
+ "directory": "packages/webpack"
8
+ },
4
9
  "main": "dist/vocab-webpack.cjs.js",
5
10
  "module": "dist/vocab-webpack.esm.js",
6
11
  "exports": {
@@ -42,7 +47,7 @@
42
47
  "@vocab/core": "^1.6.2",
43
48
  "cjs-module-lexer": "^1.2.2",
44
49
  "debug": "^4.3.1",
45
- "es-module-lexer": "^0.10.0",
50
+ "es-module-lexer": "^1.0.0",
46
51
  "picocolors": "^1.0.0",
47
52
  "virtual-resource-loader": "^1.0.1"
48
53
  },