fix: source map url in prod files but the sourceMap files not published (#6511)

* fix: source map url in prod files

* chore: changeset
This commit is contained in:
luhc228 2023-09-06 10:09:59 +08:00 committed by GitHub
parent 7194c75c0e
commit b8b1d5e41f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
38 changed files with 91 additions and 36 deletions

View File

@ -0,0 +1,36 @@
---
'@ice/plugin-css-assets-local': patch
'@ice/plugin-moment-locales': patch
'@ice/miniapp-react-dom': patch
'@ice/plugin-rax-compat': patch
'@ice/miniapp-runtime': patch
'@ice/plugin-icestark': patch
'@ice/plugin-jsx-plus': patch
'@ice/miniapp-loader': patch
'@ice/plugin-miniapp': patch
'@ice/plugin-request': patch
'@ice/route-manifest': patch
'@ice/webpack-config': patch
'@ice/webpack-modify': patch
'@ice/plugin-canvas': patch
'@ice/plugin-fusion': patch
'@ice/rspack-config': patch
'@ice/shared-config': patch
'@ice/cache-canvas': patch
'@ice/plugin-store': patch
'@ice/style-import': patch
'@ice/jsx-runtime': patch
'@ice/plugin-antd': patch
'@ice/plugin-auth': patch
'@ice/plugin-i18n': patch
'create-ice': patch
'@ice/plugin-pha': patch
'rax-compat': patch
'@ice/bundles': patch
'@ice/runtime': patch
'@ice/appear': patch
'@ice/shared': patch
'@ice/app': patch
---
fix: sourceMap url in prod files but not publish with sourceMap file

View File

@ -5,7 +5,7 @@
"main": "./esm/index.js",
"types": "./esm/index.d.ts",
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc",
"prepublishOnly": "npm run build"
},

View File

@ -9,7 +9,7 @@
"compiled"
],
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsx scripts/build.ts && tsc"
},
"main": "./esm/index.js",

View File

@ -5,7 +5,7 @@
"main": "./esm/index.js",
"types": "./esm/index.d.ts",
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc",
"prepublishOnly": "npm run build"
},

View File

@ -20,7 +20,7 @@
"npm": ">=3.0.0"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"dependencies": {

View File

@ -27,7 +27,7 @@
"npm": ">=3.0.0"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc",
"postinstall": "node ./scripts/postinstall.mjs"
},

View File

@ -4,4 +4,5 @@ export default defineConfig({
transform: {
formats: ['esm'],
},
sourceMaps: process.env.NODE_ENV === 'development',
});

View File

@ -24,8 +24,8 @@
"*.css"
],
"scripts": {
"watch": "ice-pkg start",
"build": "ice-pkg build",
"watch": "cross-env NODE_ENV=development ice-pkg start",
"build": "cross-env NODE_ENV=production ice-pkg build",
"prepublishOnly": "npm run build"
},
"keywords": [
@ -40,6 +40,7 @@
"@ice/pkg": "^1.5.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"cross-env": "^7.0.3",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},

View File

@ -13,7 +13,7 @@
"bugs": "https://github.com/alibaba/ice/issues",
"homepage": "https://v3.ice.work",
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"sideEffects": false,

View File

@ -18,7 +18,7 @@
"bugs": "https://github.com/alibaba/ice/issues",
"homepage": "https://v3.ice.work",
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"sideEffects": false,

View File

@ -20,7 +20,7 @@
"bugs": "https://github.com/alibaba/ice/issues",
"homepage": "https://v3.ice.work",
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"sideEffects": false,

View File

@ -4,7 +4,7 @@
"description": "ice.js plugin for use antd",
"type": "module",
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"main": "./esm/index.js",

View File

@ -54,7 +54,7 @@
"url": "https://github.com/alibaba/ice/tree/master/packages/plugin-auth"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"publishConfig": {

View File

@ -40,7 +40,7 @@
"url": "https://github.com/alibaba/ice/tree/master/packages/plugin-canvas"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"publishConfig": {

View File

@ -28,7 +28,7 @@
"@ice/app": "^3.1.2"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"publishConfig": {

View File

@ -24,7 +24,7 @@
"access": "public"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
}
}

View File

@ -5,4 +5,5 @@ export default defineConfig({
transform: {
formats: ['es2017'],
},
sourceMaps: process.env.NODE_ENV === 'development',
});

View File

@ -30,8 +30,8 @@
},
"sideEffects": false,
"scripts": {
"watch": "ice-pkg start",
"build": "ice-pkg build"
"watch": "cross-env NODE_ENV=development ice-pkg start",
"build": "cross-env NODE_ENV=production ice-pkg build"
},
"keywords": [
"ice.js",
@ -52,6 +52,7 @@
"@remix-run/router": "^1.6.1",
"@types/accept-language-parser": "^1.5.3",
"@types/react": "^18.0.33",
"cross-env": "^7.0.3",
"webpack-dev-server": "^4.13.2"
},
"peerDependencies": {

View File

@ -54,7 +54,7 @@
"url": "https://github.com/alibaba/ice/tree/master/packages/plugin-icestark"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"publishConfig": {

View File

@ -37,7 +37,7 @@
"url": "https://github.com/alibaba/ice/tree/master/packages/plugin-jsx-plus"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"dependencies": {

View File

@ -29,7 +29,7 @@
"template"
],
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"dependencies": {

View File

@ -4,7 +4,7 @@
"description": "ice.js plugin for reduce moment locale size.",
"type": "module",
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"main": "./esm/index.js",

View File

@ -13,7 +13,7 @@
"*.d.ts"
],
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"dependencies": {

View File

@ -39,7 +39,7 @@
"url": "https://github.com/alibaba/ice/tree/master/packages/plugin-rax-compat"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc && cp src/rax-compat.d.ts esm/rax-compat.d.ts"
},
"publishConfig": {

View File

@ -68,7 +68,7 @@
"url": "https://github.com/alibaba/ice/tree/master/packages/plugin-request"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"publishConfig": {

View File

@ -62,7 +62,7 @@
"url": "https://github.com/alibaba/ice/tree/master/packages/plugin-store"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"publishConfig": {

View File

@ -4,4 +4,5 @@ export default defineConfig({
transform: {
formats: ['esm', 'es2017'],
},
sourceMaps: process.env.NODE_ENV === 'development',
});

View File

@ -33,8 +33,8 @@
"*.css"
],
"scripts": {
"watch": "ice-pkg start",
"build": "ice-pkg build",
"watch": "cross-env NODE_ENV=development ice-pkg start",
"build": "cross-env NODE_ENV=production ice-pkg build",
"prepublishOnly": "npm run build",
"eslint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./",
"eslint:fix": "npm run eslint -- --fix",
@ -58,6 +58,7 @@
"@types/rax": "^1.0.8",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"cross-env": "^7.0.3",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},

View File

@ -18,7 +18,7 @@
"minimatch": "^5.0.1"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"publishConfig": {

View File

@ -22,7 +22,7 @@
"@rspack/core": "^0.3.0"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"publishConfig": {

View File

@ -32,7 +32,7 @@
"bugs": "https://github.com/alibaba/ice/issues",
"homepage": "https://v3.ice.work",
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc",
"postinstall": "node ./scripts/postinstall.mjs"
},

View File

@ -31,7 +31,7 @@
"webpack-dev-server": "^4.7.4"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"publishConfig": {

View File

@ -18,7 +18,7 @@
"bugs": "https://github.com/alibaba/ice/issues",
"homepage": "https://v3.ice.work",
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"sideEffects": false,

View File

@ -4,7 +4,7 @@
"description": "automatic import style by transform code",
"type": "module",
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"main": "./esm/index.js",

View File

@ -24,7 +24,7 @@
"webpack": "^5.88.0"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"publishConfig": {

View File

@ -19,7 +19,7 @@
"webpack": "^5.88.0"
},
"scripts": {
"watch": "tsc -w",
"watch": "tsc -w --sourceMap",
"build": "tsc"
},
"publishConfig": {

View File

@ -1205,6 +1205,7 @@ importers:
'@ice/pkg': ^1.5.0
'@types/react': ^18.0.0
'@types/react-dom': ^18.0.0
cross-env: ^7.0.3
react: ^18.0.0
react-dom: ^18.0.0
style-unit: ^3.0.4
@ -1214,6 +1215,7 @@ importers:
'@ice/pkg': 1.5.5
'@types/react': 18.0.28
'@types/react-dom': 18.0.11
cross-env: 7.0.3
react: 18.2.0
react-dom: 18.2.0_react@18.2.0
@ -1330,6 +1332,7 @@ importers:
'@types/accept-language-parser': ^1.5.3
'@types/react': ^18.0.33
accept-language-parser: ^1.5.0
cross-env: ^7.0.3
universal-cookie: ^4.0.4
url-join: ^5.0.0
webpack-dev-server: ^4.13.2
@ -1346,6 +1349,7 @@ importers:
'@remix-run/router': 1.6.1
'@types/accept-language-parser': 1.5.3
'@types/react': 18.0.34
cross-env: 7.0.3
webpack-dev-server: 4.13.2
packages/plugin-icestark:
@ -1546,6 +1550,7 @@ importers:
'@types/react': ^18.0.0
'@types/react-dom': ^18.0.0
create-react-class: ^15.7.0
cross-env: ^7.0.3
react: ^18.0.0
react-dom: ^18.0.0
style-unit: ^3.0.5
@ -1559,6 +1564,7 @@ importers:
'@types/rax': 1.0.10
'@types/react': 18.0.28
'@types/react-dom': 18.0.11
cross-env: 7.0.3
react: 18.2.0
react-dom: 18.2.0_react@18.2.0
@ -10564,6 +10570,14 @@ packages:
resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==}
dev: true
/cross-env/7.0.3:
resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==}
engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'}
hasBin: true
dependencies:
cross-spawn: 7.0.3
dev: true
/cross-fetch/3.1.5:
resolution: {integrity: sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==}
dependencies:

View File

@ -5,7 +5,6 @@
"jsx": "react",
"experimentalDecorators": true,
"declaration": true,
"sourceMap": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",