mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
fix: remove webpack support
This commit is contained in:
parent
80c3f6565e
commit
10ce7bb3f8
5 changed files with 3 additions and 1282 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1245
package-lock.json
generated
1245
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -17,7 +17,7 @@
|
||||||
},
|
},
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc && webpack",
|
"build": "tsc",
|
||||||
"generateDocs": "npx typedoc --entryPointStrategy expand ./src",
|
"generateDocs": "npx typedoc --entryPointStrategy expand ./src",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"prepublishOnly": "npm run build"
|
"prepublishOnly": "npm run build"
|
||||||
|
|
@ -42,11 +42,8 @@
|
||||||
"jest-extended": "^2.0.0",
|
"jest-extended": "^2.0.0",
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.5.1",
|
||||||
"ts-jest": "^27.1.4",
|
"ts-jest": "^27.1.4",
|
||||||
"ts-loader": "^9.2.8",
|
|
||||||
"typedoc": "^0.22.13",
|
"typedoc": "^0.22.13",
|
||||||
"typescript": "^4.6.2",
|
"typescript": "^4.6.2"
|
||||||
"webpack": "^5.70.0",
|
|
||||||
"webpack-cli": "^4.9.2"
|
|
||||||
},
|
},
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"volta": {
|
"volta": {
|
||||||
|
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
||||||
/* eslint-disable no-undef */
|
|
||||||
const path = require("path");
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
mode: "production",
|
|
||||||
entry: "./src/index",
|
|
||||||
devtool: "source-map",
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.tsx?$/,
|
|
||||||
use: "ts-loader",
|
|
||||||
exclude: /node_modules/,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
library: {
|
|
||||||
name: "classchartsapi",
|
|
||||||
type: "umd",
|
|
||||||
},
|
|
||||||
sourceMapFilename: "classcharts-api.map",
|
|
||||||
path: path.resolve(__dirname, "build"),
|
|
||||||
filename: "classcharts-api.js",
|
|
||||||
},
|
|
||||||
resolve: {
|
|
||||||
extensions: [".ts", ".js"],
|
|
||||||
},
|
|
||||||
};
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue