sc-component-lib v0.0.1-2.5
This is sc-component-lib for the SilenceCreative Applications
Getting Started
to add the library should be the following lines to the file "next.config" to the nextConfig json
transpilePackages: 'sc-component-lib', webpack: (config) => { config.resolve.extensionAlias = { ".js": ".ts", ".tsx", ".js", ".jsx", ".mjs": ".mts", ".mjs", ".cjs": ".cts", ".cjs", }; return config; }, }
the sample final next.config file:
/* @type {import('next').NextConfig} / const nextConfig = { transpilePackages: 'sc-component-lib', webpack: (config) => { config.resolve.extensionAlias = { ".js": ".ts", ".tsx", ".js", ".jsx", ".mjs": ".mts", ".mjs", ".cjs": ".cts", ".cjs", }; return config; }, }
module.exports = nextConfig