提交 20cd77b7 编写于 作者: A Anthony Fu

fix: bundle typings

上级 678ee86a
export { version } from "../package.json";
const { version }: { version: string } = require("../package.json");
export { version };
const webpack = require('webpack')
const {baseConfig, defaultPlugins, DtsBundlePlugin} = require('./webpack.base.config')
const { baseConfig, defaultPlugins, DtsBundlePlugin } = require('./webpack.base.config')
const Cli = {
...baseConfig(),
......@@ -16,8 +16,8 @@ const Cli = {
],
mode: "development",
optimization: {
minimize: false,
},
minimize: false,
},
}
const Core = {
......@@ -28,7 +28,7 @@ const Core = {
plugins: [
...defaultPlugins(),
new DtsBundlePlugin({
name: 'Wenyan',
name: '@wenyanlang/core',
baseDir: 'typings/src',
main: 'typings/src/parser.d.ts',
out: '../../dist/core/index.d.ts',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册