1
0
Fork 0
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:
James Cook 2022-05-24 22:36:50 +01:00
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

File diff suppressed because it is too large Load diff

View file

@ -17,7 +17,7 @@
},
"main": "./dist/index.js",
"scripts": {
"build": "tsc && webpack",
"build": "tsc",
"generateDocs": "npx typedoc --entryPointStrategy expand ./src",
"test": "jest",
"prepublishOnly": "npm run build"
@ -42,11 +42,8 @@
"jest-extended": "^2.0.0",
"prettier": "^2.5.1",
"ts-jest": "^27.1.4",
"ts-loader": "^9.2.8",
"typedoc": "^0.22.13",
"typescript": "^4.6.2",
"webpack": "^5.70.0",
"webpack-cli": "^4.9.2"
"typescript": "^4.6.2"
},
"types": "./dist/index.d.ts",
"volta": {

View file

@ -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"],
},
};