mirror of
https://github.com/strapi/strapi.git
synced 2025-09-19 13:31:34 +00:00
20 lines
470 B
TypeScript
20 lines
470 B
TypeScript
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
import { defineConfig } from '@strapi/pack-up';
|
|
import { builtinModules } from 'node:module';
|
|
|
|
export default defineConfig({
|
|
bundles: [
|
|
{
|
|
source: './src/index.ts',
|
|
import: './dist/index.js',
|
|
require: './dist/index.js',
|
|
types: './dist/index.d.ts',
|
|
runtime: 'node',
|
|
},
|
|
],
|
|
exports: {},
|
|
dist: './dist',
|
|
externals: [...builtinModules],
|
|
preserveModules: true,
|
|
});
|