mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
15 lines
469 B
JavaScript
15 lines
469 B
JavaScript
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);
|
|
});
|
|
});
|