@shijiu/jsview 2.1.428 → 2.1.435

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.
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  const TargetRevision = {
6
- "CoreRevision": 1021744,
7
- "CoreRevisionAndBranch": "1021744",
6
+ "CoreRevision": 1021746,
7
+ "CoreRevisionAndBranch": "1021746",
8
8
  "JseRevision": "1.0.950",
9
9
  "JseUrl":
10
10
  "http://cdn.release.qcast.cn/forge_js/master/JsViewES6_js2c_r950.jsv.33b8f0af.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shijiu/jsview",
3
- "version": "2.1.428",
3
+ "version": "2.1.435",
4
4
  "bin": {
5
5
  "jsview-post-build": "./tools/jsview-post-build.js",
6
6
  "jsview-post-install": "./tools/jsview-post-install.js"
@@ -183,8 +183,8 @@ function makeMainJsvMjs(options, framework)
183
183
 
184
184
  const sourceContent = fs.readFileSync(jsEntryFilePath, 'utf8');
185
185
  const hash = sourceContent.replace(/\n/g, '').replace(/.*\/\*jsvmd5:([a-fA-F0-9]{8})[a-fA-F0-9]*\*\/.*/, '$1');
186
- const newEntryFileName = `main.jsv.${hash}.mjs`;
187
- const newEntryFilePath = path.resolve(path.dirname(jsEntryFilePath), `main.jsv.${hash}.mjs`);
186
+ const newEntryFileName = `main.jsv.${hash}.js`;
187
+ const newEntryFilePath = path.resolve(path.dirname(jsEntryFilePath), newEntryFileName);
188
188
  Logger.Info(' -> ' + path.relative(options.projectDir, newEntryFilePath));
189
189
  fs.renameSync(jsEntryFilePath, newEntryFilePath);
190
190
 
@@ -192,6 +192,9 @@ function makeMainJsvMjs(options, framework)
192
192
  indexContent = indexContent.replace(path.basename(jsEntryFilePath), newEntryFileName);
193
193
  Logger.Info(' -> ' + path.relative(options.projectDir, options.distJsIndexFile));
194
194
  fs.writeFileSync(options.distJsIndexFile, indexContent, 'utf8');
195
+
196
+ const moduleEntryFilePath = newEntryFilePath.replace(/\.js$/, '.mjs');
197
+ fs.copyFileSync(newEntryFilePath, moduleEntryFilePath);
195
198
  }
196
199
 
197
200
  function makeDebugMap(options, framework)