rebuildjs 0.27.1 → 0.27.2
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/build/index.js +4 -0
- package/build/index.test.ts +14 -8
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -327,6 +327,10 @@ export function rebuildjs_plugin_() {
|
|
|
327
327
|
file_exists__waitfor(cssBundle_path))
|
|
328
328
|
await cmd(
|
|
329
329
|
cp(cssBundle_path, esbuild_cssBundle_path))
|
|
330
|
+
await cmd(
|
|
331
|
+
file_exists__waitfor(cssBundle_path + '.map'))
|
|
332
|
+
await cmd(
|
|
333
|
+
cp(cssBundle_path + '.map', esbuild_cssBundle_path + '.map'))
|
|
330
334
|
}
|
|
331
335
|
}
|
|
332
336
|
}
|
package/build/index.test.ts
CHANGED
|
@@ -209,15 +209,21 @@ test('browser__build|server__build|rebuildjs_plugin_|css', async ()=>{
|
|
|
209
209
|
equal(server__entryPoint__output.cssBundle !== server__entryPoint__output.esbuild_cssBundle, true)
|
|
210
210
|
equal(browser__entryPoint__output.cssBundle !== browser__entryPoint__output.esbuild_cssBundle, true)
|
|
211
211
|
equal(
|
|
212
|
-
await readFile(join(cwd_(app_ctx), server__entryPoint__output.cssBundle
|
|
213
|
-
=== await readFile(join(cwd_(app_ctx), server__entryPoint__output.esbuild_cssBundle
|
|
214
|
-
true
|
|
215
|
-
)
|
|
212
|
+
await readFile(join(cwd_(app_ctx), server__entryPoint__output.cssBundle + '.map')).then(buf=>buf + '')
|
|
213
|
+
=== await readFile(join(cwd_(app_ctx), server__entryPoint__output.esbuild_cssBundle + '.map')).then(buf=>buf + ''),
|
|
214
|
+
true)
|
|
216
215
|
equal(
|
|
217
|
-
await readFile(join(cwd_(app_ctx), browser__entryPoint__output.cssBundle
|
|
218
|
-
=== await readFile(join(cwd_(app_ctx), browser__entryPoint__output.esbuild_cssBundle
|
|
219
|
-
true
|
|
220
|
-
|
|
216
|
+
await readFile(join(cwd_(app_ctx), browser__entryPoint__output.cssBundle + '.map')).then(buf=>buf + '')
|
|
217
|
+
=== await readFile(join(cwd_(app_ctx), browser__entryPoint__output.esbuild_cssBundle + '.map')).then(buf=>buf + ''),
|
|
218
|
+
true)
|
|
219
|
+
equal(
|
|
220
|
+
await readFile(join(cwd_(app_ctx), server__entryPoint__output.cssBundle + '.map')).then(buf=>buf + '')
|
|
221
|
+
=== await readFile(join(cwd_(app_ctx), server__entryPoint__output.esbuild_cssBundle + '.map')).then(buf=>buf + ''),
|
|
222
|
+
true)
|
|
223
|
+
equal(
|
|
224
|
+
await readFile(join(cwd_(app_ctx), browser__entryPoint__output.cssBundle + '.map')).then(buf=>buf + '')
|
|
225
|
+
=== await readFile(join(cwd_(app_ctx), browser__entryPoint__output.esbuild_cssBundle + '.map')).then(buf=>buf + ''),
|
|
226
|
+
true)
|
|
221
227
|
} finally {
|
|
222
228
|
await rebuildjs__ready__wait()
|
|
223
229
|
server__build_context?.dispose?.()
|