kn-cli 1.0.127 → 1.0.128

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.
@@ -178,7 +178,7 @@ if(process.env.build_env == 'localdebug'){
178
178
 
179
179
  const rules= [
180
180
  {
181
- test: /\.js[x]?$/,
181
+ test: /\.[m]?js[x]?$/,
182
182
  exclude: /node_modules/,
183
183
  use: LOADER_JS,
184
184
  },
@@ -289,7 +289,7 @@ if(CLI_CONFIG.rules){
289
289
  if(CLI_CONFIG.rules.compileNpmPackage){
290
290
  let JS_LIST= CLI_CONFIG.rules.compileNpmPackage.join('|');
291
291
  rules.push({
292
- test: /\.js[x]?$/,
292
+ test: /\.[m]?js[x]?$/,
293
293
  include: new RegExp(`(${JS_LIST})`),
294
294
  use: LOADER_JS
295
295
  },)
@@ -521,9 +521,9 @@ const config={
521
521
  output: output,
522
522
  resolve: {
523
523
  modules: [
524
+ 'node_modules',
524
525
  path.resolve(dirname,'node_modules'),
525
526
  path.resolve(webpackPath, 'node_modules'),
526
- 'node_modules',
527
527
  ],
528
528
  extensions: ['.jsx', '.js', '.json','.mjs'],
529
529
  alias: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-cli",
3
- "version": "1.0.127",
3
+ "version": "1.0.128",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {