@s-ui/bundler 9.72.0 → 9.74.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-ui/bundler",
3
- "version": "9.72.0",
3
+ "version": "9.74.0",
4
4
  "description": "Config-free bundler for ES6 React apps.",
5
5
  "bin": {
6
6
  "sui-bundler": "./bin/sui-bundler.js"
@@ -21,7 +21,7 @@ const createCompilerRules = require('./shared/module-rules-compiler.js')
21
21
 
22
22
  const outputPath = path.join(process.cwd(), '.sui/public')
23
23
 
24
- const {CI = false, PWD = '', CDN} = process.env
24
+ const {CI = false, CDN} = process.env
25
25
 
26
26
  process.env.NODE_ENV = 'development'
27
27
 
@@ -30,7 +30,7 @@ process.env.NODE_ENV = 'development'
30
30
  const webpackConfig = {
31
31
  name: 'client',
32
32
  mode: 'development',
33
- context: path.resolve(PWD, 'src'),
33
+ context: path.resolve(process.cwd(), 'src'),
34
34
  resolve: {
35
35
  alias: {
36
36
  ...defaultAlias,
@@ -16,7 +16,7 @@ const createCompilerRules = require('./shared/module-rules-compiler.js')
16
16
 
17
17
  const outputPath = path.join(process.cwd(), 'dist')
18
18
 
19
- const {CI = false, PWD = ''} = process.env
19
+ const {CI = false} = process.env
20
20
 
21
21
  process.env.NODE_ENV = 'development'
22
22
 
@@ -25,7 +25,7 @@ process.env.NODE_ENV = 'development'
25
25
  const webpackConfig = {
26
26
  name: 'client-local',
27
27
  mode: 'development',
28
- context: path.resolve(PWD, 'src'),
28
+ context: path.resolve(process.cwd(), 'src'),
29
29
  resolve: {
30
30
  alias: {
31
31
  ...defaultAlias,
@@ -23,7 +23,6 @@ const minifyJs = require('./shared/minify-js.js')
23
23
 
24
24
  const CWD = process.cwd()
25
25
  const PUBLIC_PATH = process.env.CDN || config.cdn || '/'
26
- const PWD = process.env.PWD ?? ''
27
26
 
28
27
  const filename = config.onlyHash ? '[contenthash:8].js' : '[name].[contenthash:8].js'
29
28
 
@@ -59,7 +58,7 @@ const webpackConfig = {
59
58
  output: {
60
59
  chunkFilename: filename,
61
60
  filename,
62
- path: path.resolve(PWD, 'public'),
61
+ path: path.resolve(CWD, 'public'),
63
62
  publicPath: PUBLIC_PATH
64
63
  },
65
64
  optimization: {