fix: sourcemaps

This commit is contained in:
cha0s 2021-01-16 16:48:22 -06:00
parent 4f554c097f
commit 4f80b804d7
6 changed files with 3457 additions and 2494 deletions

View File

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"build": "webpack --mode production", "build": "webpack --mode production",
"clean": "rm -rf yarn.lock node_modules && yarn", "clean": "rm -rf yarn.lock node_modules/* && yarn",
"dev": "webpack --mode development", "dev": "webpack --mode development",
"docker": "yarn run build && docker build", "docker": "yarn run build && docker build",
"electron": "electron build/electron.js", "electron": "electron build/electron.js",
@ -50,7 +50,8 @@
"react": "^17.0.1", "react": "^17.0.1",
"react-hot-loader": "4.13.0", "react-hot-loader": "4.13.0",
"react-router": "^5.2.0", "react-router": "^5.2.0",
"react-router-dom": "^5.2.0" "react-router-dom": "^5.2.0",
"source-map-loader": "^1.1.3"
}, },
"devDependencies": { "devDependencies": {
"@neutrinojs/airbnb": "^9.4.0", "@neutrinojs/airbnb": "^9.4.0",

File diff suppressed because it is too large Load Diff

View File

@ -48,6 +48,7 @@ module.exports = {
neutrino.options.output = '.'; neutrino.options.output = '.';
react({ react({
clean: false, clean: false,
hot: false,
})(neutrino); })(neutrino);
Object.keys(neutrino.options.mains).forEach((main) => { Object.keys(neutrino.options.mains).forEach((main) => {
neutrino.config.plugins.delete(`html-${main}`); neutrino.config.plugins.delete(`html-${main}`);

View File

@ -27,7 +27,7 @@
"devDependencies": { "devDependencies": {
"@neutrinojs/airbnb-base": "^9.4.0", "@neutrinojs/airbnb-base": "^9.4.0",
"@neutrinojs/banner": "^9.4.0", "@neutrinojs/banner": "^9.4.0",
"@neutrinojs/copy": "9.4.0", "@neutrinojs/copy": "^9.4.0",
"@neutrinojs/mocha": "^9.4.0", "@neutrinojs/mocha": "^9.4.0",
"@neutrinojs/react": "^9.4.0", "@neutrinojs/react": "^9.4.0",
"chai": "4.2.0", "chai": "4.2.0",

View File

@ -39,7 +39,7 @@
"devDependencies": { "devDependencies": {
"@neutrinojs/airbnb-base": "^9.4.0", "@neutrinojs/airbnb-base": "^9.4.0",
"@neutrinojs/banner": "^9.4.0", "@neutrinojs/banner": "^9.4.0",
"@neutrinojs/copy": "9.4.0", "@neutrinojs/copy": "^9.4.0",
"@neutrinojs/mocha": "^9.4.0", "@neutrinojs/mocha": "^9.4.0",
"@neutrinojs/react": "^9.4.0", "@neutrinojs/react": "^9.4.0",
"chai": "4.2.0", "chai": "4.2.0",
@ -47,7 +47,7 @@
"eslint-import-resolver-webpack": "0.13.0", "eslint-import-resolver-webpack": "0.13.0",
"mocha": "^8", "mocha": "^8",
"neutrino": "^9.4.0", "neutrino": "^9.4.0",
"source-map-support": "0.5.19", "source-map-support": "^0.5.19",
"webpack": "^4", "webpack": "^4",
"webpack-cli": "^3" "webpack-cli": "^3"
} }

File diff suppressed because it is too large Load Diff