blob: d78593fca12d8ff0c9c9f67201c90b9acffe9871 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import esbuild from 'esbuild';
import { expect } from 'chai';
describe('Bundle for browsers', async () => {
it('esbuild browser build should work', async () => {
const result = await esbuild.build({
platform: 'browser',
entryPoints: ['@astrojs/markdown-remark'],
bundle: true,
write: false,
});
// If some non-browser-safe stuff sneaks in, esbuild should error before reaching here
expect(result.outputFiles.length).to.be.greaterThan(0);
});
});
|