Skip to content

Commit 8e84640

Browse files
committed
webpack just support .ts
1 parent ffb556c commit 8e84640

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
"use strict";
2-
3-
const path = require("path");
4-
const webpack = require("webpack");
5-
const { CheckEsVersionPlugin } = require("@bitjourney/check-es-version-webpack-plugin");
6-
const _ = require("lodash");
1+
import path from "path";
2+
// @ts-ignore
3+
import webpack from "webpack";
4+
// @ts-ignore
5+
import { CheckEsVersionPlugin } from "@bitjourney/check-es-version-webpack-plugin";
6+
// @ts-ignore
7+
import _ from "lodash";
78

89
const config = {
910
mode: "production",
@@ -51,7 +52,7 @@ const config = {
5152
devtool: "source-map",
5253
};
5354

54-
module.exports = [
55+
export default [
5556
// default bundle does not includes wasm
5657
((config) => {
5758
config.output.filename = "msgpack.js";

0 commit comments

Comments
 (0)