import {defineConfig} from 'tsup';
const config = defineConfig({
entry: [
'src/**/*.{js,cjs,mjs,ts,mts,json}'
],
platform: 'node',
// target: 'esnext',
outDir: './dist',
clean: true,
dts: true,
format: 'esm',
treeshake: true,
splitting: true,
bundle: false
});
export default config;
import data from '#foo/file.json' with {type: 'json'};
is being replaced with the deprecated syntax:
import data from '#foo/file.json' assert {type: 'json'};
^ SyntaxError: Unexpected identifier 'assert'