@ms-cloudpack/bundler-plugin-ori
Advanced tools
Comparing version 0.18.8 to 0.19.0
@@ -69,3 +69,3 @@ import { findProjectRoot, mergeArrayDefaults } from '@ms-cloudpack/package-utilities'; | ||
const { features, mode } = config; | ||
const overrideOptions = (options.overrideOptions || {}); | ||
const bundlerOptions = (options.bundlerOptions || {}); | ||
const absWorkingDir = getAbsWorkingDir(inputPath); | ||
@@ -80,3 +80,3 @@ const relInputPath = getRelativePath(absWorkingDir, inputPath); | ||
: defaultResolveExtensions; | ||
const plugins = mergeArrayDefaults(overrideOptions.plugins, defaultPlugins); | ||
const plugins = mergeArrayDefaults(bundlerOptions.plugins, defaultPlugins); | ||
if (dynamicImports?.length) { | ||
@@ -94,5 +94,5 @@ plugins.push({ | ||
sourcemap: sourcemap ? 'linked' : 'none', | ||
// overrideOptions takes precedence over the defaults above | ||
...overrideOptions, | ||
// BundleOptions values take precedence over overrideOptions | ||
// bundlerOptions takes precedence over the defaults above | ||
...bundlerOptions, | ||
// BundleOptions values take precedence over bundlerOptions | ||
incremental, | ||
@@ -114,3 +114,3 @@ minify, | ||
// mapping (output path to input path) that ori uses, but go ahead and correct it if provided | ||
outbase: typeof overrideOptions.outbase === 'string' ? path.resolve(inputPath, overrideOptions.outbase) : undefined, | ||
outbase: typeof bundlerOptions.outbase === 'string' ? path.resolve(inputPath, bundlerOptions.outbase) : undefined, | ||
// Enabling this automatically marks all import paths that look like npm packages as external. | ||
@@ -138,12 +138,12 @@ packages: !inlined.length && mode === 'library' ? 'external' : undefined, | ||
'process.env.NODE_ENV': minify ? `"production"` : '"development"', | ||
...overrideOptions.define, | ||
...bundlerOptions.define, | ||
}, | ||
loader: { | ||
...Object.fromEntries(base64AssetExtensions.map((ext) => [ext, 'dataurl'])), | ||
...overrideOptions.loader, | ||
...bundlerOptions.loader, | ||
}, | ||
plugins, | ||
resolveExtensions: mergeArrayDefaults(overrideOptions.resolveExtensions, resolveExtensions), | ||
resolveExtensions: mergeArrayDefaults(bundlerOptions.resolveExtensions, resolveExtensions), | ||
}; | ||
} | ||
//# sourceMappingURL=getOriOptions.js.map |
{ | ||
"name": "@ms-cloudpack/bundler-plugin-ori", | ||
"version": "0.18.8", | ||
"version": "0.19.0", | ||
"description": "An abstraction to bundle source code using ori.", | ||
@@ -17,6 +17,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"@ms-cloudpack/common-types": "^0.11.0", | ||
"@ms-cloudpack/package-utilities": "^7.8.2", | ||
"@ms-cloudpack/common-types": "^0.12.0", | ||
"@ms-cloudpack/package-utilities": "^7.8.3", | ||
"@ms-cloudpack/path-string-parsing": "^1.2.3", | ||
"@ms-cloudpack/path-utilities": "^2.7.23", | ||
"@ms-cloudpack/path-utilities": "^2.7.24", | ||
"@ms-cloudpack/retry": "^0.1.2", | ||
@@ -26,3 +26,3 @@ "oribuild": "0.0.0-pre-alpha.15-2024071118-c34a614" | ||
"devDependencies": { | ||
"@ms-cloudpack/bundler-plugin-tests": "^0.12.2", | ||
"@ms-cloudpack/bundler-plugin-tests": "^0.12.3", | ||
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1", | ||
@@ -29,0 +29,0 @@ "@ms-cloudpack/scripts": "^0.0.1", |
Sorry, the diff of this file is not supported yet
41296
+ Added@ms-cloudpack/common-types@0.12.0(transitive)
- Removed@ms-cloudpack/common-types@0.11.0(transitive)