Skip to content

Commit aa32117

Browse files
committed
fix(Webpack): Webpack 2 support bug fix
1 parent dd8c1d0 commit aa32117

File tree

3 files changed

+10
-21
lines changed

3 files changed

+10
-21
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"scripts": {
3232
"prepare": "node ./bin/package_prepare.js",
3333
"development": "npm run prepare && NODE_ENV=development webpack --bail --config=webpack.build.config.js",
34-
"development:watch": "npm run prepare && NODE_ENV=development webpack --bail --config=webpack.build.config.js",
34+
"development:watch": "npm run prepare && NODE_ENV=development:watch webpack --bail --config=webpack.build.config.js",
3535
"production": "npm run prepare && NODE_ENV=production webpack --bail --config=webpack.build.config.js",
3636
"production:watch": "npm run prepare && NODE_ENV=production:watch webpack --config=webpack.build.config.js --watch",
3737
"production:stat": "npm run prepare && NODE_ENV=production:stat webpack --config=webpack.build.config.js",

package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

2-
const PACKAGE = {"name":"AnimationFrame","version":"1.0.49"};
2+
const PACKAGE = {"name":"AnimationFrame","version":"1.0.50"};
33
export default PACKAGE;
44
module.exports = PACKAGE;

webpack.karma.config.js

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ module.exports = {
113113
module: {
114114
loaders: [
115115
{
116-
test: /lib\/(.*)\.ts(x?)$/,
116+
test: /\.ts(x?)$/,
117+
include: [
118+
path.resolve(__dirname, "lib")
119+
],
117120
use: [
118121
{
119122
loader: replacements
@@ -131,24 +134,10 @@ module.exports = {
131134
]
132135
},
133136
{
134-
test: /(spec|src|polyfills)\/(.*)\.ts(x?)$/,
135-
use: [
136-
{
137-
loader: replacements
138-
},
139-
{
140-
loader: "babel-loader",
141-
options: {
142-
presets: ["es2015"]
143-
}
144-
},
145-
{
146-
loader: "ts-loader"
147-
}
148-
]
149-
},
150-
{
151-
test: /package\.ts(x?)$/,
137+
test: /\.ts(x?)$/,
138+
exclude: [
139+
path.resolve(__dirname, "lib")
140+
],
152141
use: [
153142
{
154143
loader: replacements

0 commit comments

Comments
 (0)