Browse Source

external d3 and lodash

merge-requests/17/head
rozetko 3 years ago
parent
commit
a236dad58c
  1. 1
      build/webpack.base.conf.js
  2. 4323
      package-lock.json
  3. 7
      package.json
  4. 2
      src/types.ts
  5. 3
      tsconfig.json
  6. 3068
      yarn.lock

1
build/webpack.base.conf.js

@ -8,6 +8,7 @@ module.exports = {
context: resolve('src'),
entry: './index.ts',
plugins: [],
externals: ['lodash', 'd3'],
module: {
rules: [
{

4323
package-lock.json generated

File diff suppressed because it is too large Load Diff

7
package.json

@ -15,11 +15,12 @@
},
"author": "CorpGlory Inc.",
"license": "ISC",
"dependencies": {
"d3": "^5.16.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"@types/d3": "^5.7.2",
"@types/lodash": "^4.14.149",
"css-loader": "^3.4.2",
"lodash": "^4.17.15",
"style-loader": "^1.1.3",
"ts-loader": "^6.2.1",
"typescript": "^3.8.3",

2
src/types.ts

@ -1,3 +1,5 @@
import * as d3 from 'd3';
export type Margin = { top: number, right: number, bottom: number, left: number };
export type Timestamp = number;

3
tsconfig.json

@ -16,6 +16,7 @@
"noImplicitUseStrict": false,
"noImplicitAny": false,
"noUnusedLocals": false,
"baseUrl": "./src"
"baseUrl": "./src",
"moduleResolution": "node"
}
}

3068
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save