@bleedingdev/modern-js-app-tools 3.2.0-ultramodern.90 → 3.2.0-ultramodern.92

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.
@@ -204,6 +204,9 @@ function getBuilderEnvironments(normalizedConfig, appContext, tempBuilderConfig)
204
204
  outputModule: true
205
205
  }
206
206
  });
207
+ chain.output.module(true).library({
208
+ type: 'module'
209
+ }).chunkFormat('module').chunkLoading('import').workerChunkLoading('import');
207
210
  chain.target('webworker');
208
211
  chain.plugins.delete('plugin-module-federation');
209
212
  if (tanstackRouterSsrServerFile) {
@@ -150,6 +150,7 @@ const shouldCopyToWorkerBundle = (src, workerBundleDirectory)=>{
150
150
  const normalizedRelativePath = relativePath.replace(/\\/g, '/');
151
151
  const basename = external_node_path_default().basename(normalizedRelativePath);
152
152
  if (basename.startsWith('.') || normalizedRelativePath.includes('/.')) return false;
153
+ if (utils_namespaceObject.fs.statSync(src).isDirectory()) return true;
153
154
  return [
154
155
  '.cjs',
155
156
  '.js',
@@ -165,6 +165,9 @@ function getBuilderEnvironments(normalizedConfig, appContext, tempBuilderConfig)
165
165
  outputModule: true
166
166
  }
167
167
  });
168
+ chain.output.module(true).library({
169
+ type: 'module'
170
+ }).chunkFormat('module').chunkLoading('import').workerChunkLoading('import');
168
171
  chain.target('webworker');
169
172
  chain.plugins.delete('plugin-module-federation');
170
173
  if (tanstackRouterSsrServerFile) {
@@ -112,6 +112,7 @@ const shouldCopyToWorkerBundle = (src, workerBundleDirectory)=>{
112
112
  const normalizedRelativePath = relativePath.replace(/\\/g, '/');
113
113
  const basename = node_path.basename(normalizedRelativePath);
114
114
  if (basename.startsWith('.') || normalizedRelativePath.includes('/.')) return false;
115
+ if (fs.statSync(src).isDirectory()) return true;
115
116
  return [
116
117
  '.cjs',
117
118
  '.js',
@@ -170,6 +170,9 @@ function getBuilderEnvironments(normalizedConfig, appContext, tempBuilderConfig)
170
170
  outputModule: true
171
171
  }
172
172
  });
173
+ chain.output.module(true).library({
174
+ type: 'module'
175
+ }).chunkFormat('module').chunkLoading('import').workerChunkLoading('import');
173
176
  chain.target('webworker');
174
177
  chain.plugins.delete('plugin-module-federation');
175
178
  if (tanstackRouterSsrServerFile) {
@@ -113,6 +113,7 @@ const shouldCopyToWorkerBundle = (src, workerBundleDirectory)=>{
113
113
  const normalizedRelativePath = relativePath.replace(/\\/g, '/');
114
114
  const basename = node_path.basename(normalizedRelativePath);
115
115
  if (basename.startsWith('.') || normalizedRelativePath.includes('/.')) return false;
116
+ if (fs.statSync(src).isDirectory()) return true;
116
117
  return [
117
118
  '.cjs',
118
119
  '.js',
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.2.0-ultramodern.90",
20
+ "version": "3.2.0-ultramodern.92",
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "main": "./dist/cjs/index.js",
23
23
  "exports": {
@@ -99,16 +99,16 @@
99
99
  "ndepe": "^0.1.13",
100
100
  "pkg-types": "^2.3.1",
101
101
  "std-env": "4.1.0",
102
- "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.90",
103
- "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.2.0-ultramodern.90",
104
- "@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.2.0-ultramodern.90",
105
- "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.90",
106
- "@modern-js/server": "npm:@bleedingdev/modern-js-server@3.2.0-ultramodern.90",
107
- "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.2.0-ultramodern.90",
108
- "@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.2.0-ultramodern.90",
109
- "@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.2.0-ultramodern.90",
110
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.90",
111
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.90"
102
+ "@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.2.0-ultramodern.92",
103
+ "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.92",
104
+ "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.92",
105
+ "@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.2.0-ultramodern.92",
106
+ "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.2.0-ultramodern.92",
107
+ "@modern-js/server": "npm:@bleedingdev/modern-js-server@3.2.0-ultramodern.92",
108
+ "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.2.0-ultramodern.92",
109
+ "@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.2.0-ultramodern.92",
110
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.92",
111
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.92"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@rslib/core": "0.21.5",