Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a4102ab

Browse filesBrowse files
committed
update
1 parent 5a6ba6b commit a4102ab
Copy full SHA for a4102ab

File tree

Expand file treeCollapse file tree

5 files changed

+1831
-1381
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

5 files changed

+1831
-1381
lines changed
Open diff view settings
Collapse file

‎.eslintrc.cjs‎

Copy file name to clipboard
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"worker": true,
5+
"es6": true
6+
},
7+
"extends": "eslint:recommended",
8+
"parserOptions": {
9+
"ecmaVersion": 2020,
10+
"sourceType": "module"
11+
},
12+
"rules": {
13+
"indent": ["error", 4 ],
14+
"linebreak-style": ["error", "unix"],
15+
"quotes": ["error", "single"],
16+
"semi": ["error", "always"]
17+
}
18+
};
Collapse file

‎babel.config.js‎

Copy file name to clipboardExpand all lines: babel.config.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ export default function(context) {
1111
'@babel/preset-env', {
1212
targets,
1313
bugfixes: true,
14-
useBuiltIns: ESM ? false : 'usage',
15-
corejs: '3.39.0',
14+
// debug: true, // uncomment for debugging build issues
1615
exclude: [
1716
// we don't want these because we're using fast-async instead
1817
'transform-async-to-generator',
Collapse file

‎karma.conf.js‎

Copy file name to clipboardExpand all lines: karma.conf.js
+14-23Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
/*jshint node: true*/
1+
import babel from '@rollup/plugin-babel';
2+
import resolve from '@rollup/plugin-node-resolve';
3+
import commonjs from '@rollup/plugin-commonjs';
4+
import globals from 'rollup-plugin-node-globals';
5+
import builtins from 'rollup-plugin-node-builtins';
6+
import json from '@rollup/plugin-json';
7+
import { importAsString } from 'rollup-plugin-string-import';
28

3-
var babel = require('rollup-plugin-babel');
4-
var resolve = require('rollup-plugin-node-resolve');
5-
var commonjs = require('rollup-plugin-commonjs');
6-
var globals = require('rollup-plugin-node-globals');
7-
var builtins = require('rollup-plugin-node-builtins');
8-
var json = require('rollup-plugin-json');
9-
var string = require('rollup-plugin-string');
10-
11-
module.exports = function (config) {
9+
export default {
1210

1311
config.set({
1412
basePath: '',
1513
frameworks: ['mocha', 'sinon'],
1614
files: [
17-
'https://unpkg.com/leaflet@1.3.4/dist/leaflet.js',
15+
'https://unpkg.com/leaflet@1.3.4/dist/leaflet.js', // TODO: update leaflet version
1816
{
1917
pattern : 'test/fixtures/*',
2018
watched : false,
@@ -48,24 +46,18 @@ module.exports = function (config) {
4846
browser: true,
4947
preferBuiltins: false
5048
}),
51-
commonjs({
52-
// There hints are required for importing jszip
53-
// See https://rollupjs.org/guide/en#error-name-is-not-exported-by-module-
54-
namedExports: {
55-
'node_modules/process/browser.js': ['nextTick'],
56-
'node_modules/events/events.js': ['EventEmitter']
57-
}
58-
}),
49+
commonjs(),
5950

6051
json({
6152
exclude: ['node_modules/**', 'src/**'] // import JSON files
6253
}),
63-
string({
54+
importAsString({
6455
include: ['**/*.glsl'] // inline shader files
6556
}),
6657

6758
babel({
68-
exclude: ['node_modules/**', '*.json']
59+
exclude: ['node_modules/**', '*.json'],
60+
babelHelpers: "runtime"
6961
}),
7062

7163
// These are needed for jszip node-environment compatibility,
@@ -95,5 +87,4 @@ module.exports = function (config) {
9587

9688
});
9789

98-
99-
};
90+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.