@dcloudio/uni-cli-shared 2.0.1-alpha-35220220719002 → 2.0.1-alpha-35320220727002

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.
package/lib/source-map.js CHANGED
@@ -28,11 +28,11 @@ function getSourceRoot () {
28
28
  }
29
29
 
30
30
  function moduleFilenameTemplate (info) {
31
- if (
31
+ if (
32
32
  info.resourcePath &&
33
33
  (
34
34
  !info.allLoaders ||
35
- info.query.includes('type=script&lang=ts') ||
35
+ info.query.includes('type=script&lang=ts') ||
36
36
  info.resourcePath.endsWith('.ts')
37
37
  )
38
38
  ) {
@@ -46,14 +46,15 @@ function moduleFilenameTemplate (info) {
46
46
  const exclude = [/pages\.json/, /node_modules/, /vue&type=template/, /vue&type=style/]
47
47
 
48
48
  module.exports = {
49
- createSourceMapDevToolPlugin (filename = false) {
49
+ createSourceMapDevToolPlugin (filename = false, args) {
50
50
  const options = {
51
51
  test: [/\.js$/],
52
52
  exclude,
53
- moduleFilenameTemplate
53
+ moduleFilenameTemplate,
54
+ ...args
54
55
  }
55
56
  if (filename) {
56
- options.filename = '../.sourcemap/' + process.env.UNI_PLATFORM + '/[name].js.map'
57
+ options.filename = '../.sourcemap/' + process.env.UNI_PLATFORM + '/[file].map'
57
58
  }
58
59
  return new webpack.SourceMapDevToolPlugin(options)
59
60
  },
@@ -64,4 +65,4 @@ module.exports = {
64
65
  moduleFilenameTemplate
65
66
  })
66
67
  }
67
- }
68
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "2.0.1-alpha-35220220719002",
3
+ "version": "2.0.1-alpha-35320220727002",
4
4
  "description": "uni-cli-shared",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -23,5 +23,5 @@
23
23
  "postcss-urlrewrite": "^0.2.2",
24
24
  "strip-json-comments": "^2.0.1"
25
25
  },
26
- "gitHead": "6f2fdbfa632fd7b9da6cbdf4faea5ac863f0eb67"
26
+ "gitHead": "91c99b6c5328a5844d3f7a75637675d681ec5695"
27
27
  }