Skip to content

Commit

Permalink
perf: fix minification regression (QwikDev#1957)
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat authored Nov 2, 2022
1 parent cf626bf commit 66ebede
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion packages/qwik-city/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.0.118",
"description": "The meta-framework for Qwik.",
"main": "./lib/index.qwik.mjs",
"module": "./lib/index.qwik.mjs",
"qwik": "./lib/index.qwik.mjs",
"types": "./lib/index.d.ts",
"type": "module",
Expand Down
1 change: 0 additions & 1 deletion packages/qwik-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
},
"type": "module",
"main": "./lib/index.qwik.mjs",
"module": "./lib/index.qwik.mjs",
"qwik": "./lib/index.qwik.mjs",
"types": "./lib/types/index.d.ts"
}
6 changes: 4 additions & 2 deletions packages/qwik/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
"version": "0.12.1",
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
"main": "./dist/core.mjs",
"module": "./dist/core.mjs",
"types": "./dist/core.d.ts",
"bin": "./dist/qwik.cjs",
"type": "module",
"sideEffects": false,
"exports": {
".": {
"browser": {
"production": "./dist/core.min.mjs",
"default": "./dist/core.mjs"
},
"import": {
"min": "./dist/core.min.mjs",
"production": "./dist/core.prod.mjs",
"default": "./dist/core.mjs"
},
Expand Down
3 changes: 0 additions & 3 deletions packages/qwik/src/optimizer/src/plugins/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,6 @@ export function qwikVite(qwikViteOpts: QwikVitePluginOptions = {}): any {
}
}
} else if (opts.target === 'client') {
if (buildMode === 'production') {
updatedViteConfig.resolve!.conditions = ['min'];
}
// Client Build
if (isClientDevOnly) {
updatedViteConfig.build!.rollupOptions!.input = clientDevInput;
Expand Down
6 changes: 4 additions & 2 deletions scripts/package-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export async function generatePackageJson(config: BuildConfig) {
description: rootPkg.description,
license: rootPkg.license,
main: './core.mjs',
module: './core.mjs',
types: './core.d.ts',
bin: {
qwik: './qwik.cjs',
Expand All @@ -25,8 +24,11 @@ export async function generatePackageJson(config: BuildConfig) {
exports: {
'.': {
types: './core.d.ts',
browser: {
production: './core.min.mjs',
default: './core.mjs',
},
import: {
min: './core.min.mjs',
production: './core.prod.mjs',
default: './core.mjs',
},
Expand Down
1 change: 0 additions & 1 deletion scripts/qwik-city.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export async function buildQwikCity(config: BuildConfig) {
const loaderPkg = {
...(await readPackageJson(inputDir)),
main: './index.qwik.mjs',
module: './index.qwik.mjs',
qwik: './index.qwik.mjs',
types: './index.d.ts',
type: 'module',
Expand Down
1 change: 0 additions & 1 deletion starters/apps/library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"private": false,
"main": "./lib/index.qwik.mjs",
"qwik": "./lib/index.qwik.mjs",
"module": "./lib/index.qwik.mjs",
"types": "./lib-types/index.d.ts",
"type": "module",
"exports": {
Expand Down

0 comments on commit 66ebede

Please sign in to comment.