Commit 020556bd authored by hewenhao's avatar hewenhao

chore: build config

parent 6fb5e2b2
/* eslint-disable @typescript-eslint/no-var-requires */
const tsImportPluginFactory = require("ts-import-plugin");
const merge = require("webpack-merge");
module.exports = {
publicPath: "./",
......@@ -33,18 +34,22 @@ module.exports = {
.rule("ts")
.use("ts-loader")
.tap(options => {
return Object.assign(options || {}, {
transpileOnly: false,
options = merge(options, {
transpileOnly: true,
getCustomTransformers: () => ({
before: [
tsImportPluginFactory({
libraryDirectory: "es",
libraryName: "vant",
libraryDirectory: "es",
style: true
})
]
})
}),
compilerOptions: {
module: "es2015"
}
});
return options;
});
},
css: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment