Skip to content

Commit 1f06738

Browse files
committed
build: source maps
1 parent c8d7d0e commit 1f06738

File tree

2 files changed

+14
-21
lines changed

2 files changed

+14
-21
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
node-version: [12.x]
1010
os: [ubuntu-latest]
1111
steps:
12-
- uses: actions/checkout@v1
13-
- name: Use Node.js ${{ matrix.node_version }}
14-
uses: actions/setup-node@v1
15-
with:
16-
node-version: ${{ matrix.node_version }}
17-
- name: npm install, build, and test
18-
run: |
19-
npm install
20-
npm run test
21-
env:
22-
CI: true
12+
- uses: actions/checkout@v1
13+
- name: Use Node.js ${{ matrix.node_version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.node_version }}
17+
- name: npm install, build, and test
18+
run: |
19+
npm install
20+
npm run test
21+
env:
22+
CI: true

webpack.config.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,19 @@ module.exports = {
77
output: {
88
filename: "index.js",
99
path: path.resolve(__dirname, "build"),
10-
library: "MyLibrary",
10+
library: "react-default-memo",
1111
libraryTarget: "umd",
1212
},
13+
devtool: "source-map",
1314
module: {
1415
rules: [
1516
{
1617
test: /\.m?js$/,
17-
exclude: /(node_modules|bower_components)/,
18+
exclude: /(node_modules)/,
1819
use: {
1920
loader: "babel-loader",
2021
},
2122
},
22-
{
23-
test: /\.css$/i,
24-
use: ["style-loader", "css-loader"],
25-
},
26-
{
27-
test: /\.(png|jpe?g|gif|svg|eot|ttf|woff|woff2)$/,
28-
use: ["url-loader"],
29-
},
3023
],
3124
},
3225
plugins: [new PrettierPlugin()],

0 commit comments

Comments
 (0)