@papillonarts/setup 0.49.1 → 0.49.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/storybook/mainSetup.d.ts.map +1 -1
- package/build/storybook/mainSetup.js +6 -4
- package/build/webpack/loader/babelLoader.d.ts +1 -0
- package/build/webpack/loader/babelLoader.d.ts.map +1 -1
- package/build/webpack/loader/babelLoader.js +4 -0
- package/build/webpack/setup/commonSetup.d.ts +1 -0
- package/build/webpack/setup/commonSetup.d.ts.map +1 -1
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mainSetup.d.ts","sourceRoot":"","sources":["../../src/storybook/mainSetup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mainSetup.d.ts","sourceRoot":"","sources":["../../src/storybook/mainSetup.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAShE,wBAAgB,qBAAqB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE;;;;CAAA,mBAoQ1E"}
|
|
@@ -6,12 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.getStorybookMainSetup = getStorybookMainSetup;
|
|
8
8
|
var _object = require("@papillonarts/library/object");
|
|
9
|
-
var _webpack = require("@papillonarts/setup/webpack");
|
|
10
9
|
var _forkTsCheckerWebpackPlugin = _interopRequireDefault(require("fork-ts-checker-webpack-plugin"));
|
|
11
|
-
var
|
|
10
|
+
var _webpack = _interopRequireDefault(require("webpack"));
|
|
11
|
+
var _webpack2 = require("../webpack");
|
|
12
12
|
// https://storybook.js.org/docs/configure#configure-story-loading
|
|
13
13
|
/* eslint-disable import-x/no-named-as-default */
|
|
14
14
|
|
|
15
|
+
// import { getBabelLoaderAdvancedSetup } from '@papillonarts/setup/webpack'
|
|
16
|
+
|
|
15
17
|
// https://storybook.js.org/docs/api
|
|
16
18
|
// https://storybook.js.org/docs/api/main-config/main-config
|
|
17
19
|
// https://storybook.js.org/docs/api/csf/csf-next#definemain
|
|
@@ -208,8 +210,8 @@ function getStorybookMainSetup({
|
|
|
208
210
|
loader: '@mdx-js/loader',
|
|
209
211
|
options: {}
|
|
210
212
|
}]
|
|
211
|
-
}, (0,
|
|
212
|
-
config.plugins.push(new
|
|
213
|
+
}, (0, _webpack2.getBabelLoaderAdvancedSetup)()]);
|
|
214
|
+
config.plugins.push(new _webpack.default.ProvidePlugin({
|
|
213
215
|
process: 'process/browser'
|
|
214
216
|
}));
|
|
215
217
|
config.plugins.push(new _forkTsCheckerWebpackPlugin.default());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"babelLoader.d.ts","sourceRoot":"","sources":["../../../src/webpack/loader/babelLoader.ts"],"names":[],"mappings":"AAIA,wBAAgB,2BAA2B
|
|
1
|
+
{"version":3,"file":"babelLoader.d.ts","sourceRoot":"","sources":["../../../src/webpack/loader/babelLoader.ts"],"names":[],"mappings":"AAIA,wBAAgB,2BAA2B;;;;;;;;;;;;;;;;;;;;;EAsC1C"}
|
|
@@ -15,6 +15,10 @@ function getBabelLoaderAdvancedSetup() {
|
|
|
15
15
|
use: {
|
|
16
16
|
loader: 'babel-loader',
|
|
17
17
|
options: {
|
|
18
|
+
// https://babeljs.io/docs/options#sourcetype
|
|
19
|
+
// polyfill-corejs3 (usage-global) injects `import` statements; without this, CJS files
|
|
20
|
+
// (e.g. packages/*/build) become ESM for webpack and fail with "exports is not defined".
|
|
21
|
+
sourceType: 'unambiguous',
|
|
18
22
|
presets: [['@babel/preset-env', {
|
|
19
23
|
modules: false,
|
|
20
24
|
targets: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonSetup.d.ts","sourceRoot":"","sources":["../../../src/webpack/setup/commonSetup.ts"],"names":[],"mappings":"AAaA,wBAAgB,qBAAqB,CAAC,EAAE,oBAAoB,EAAE,WAAW,EAAE;;;CAAA
|
|
1
|
+
{"version":3,"file":"commonSetup.d.ts","sourceRoot":"","sources":["../../../src/webpack/setup/commonSetup.ts"],"names":[],"mappings":"AAaA,wBAAgB,qBAAqB,CAAC,EAAE,oBAAoB,EAAE,WAAW,EAAE;;;CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B1E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonarts/setup",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.3",
|
|
4
4
|
"description": "Papillon Arts Setup",
|
|
5
5
|
"homepage": "https://github.com/papillonarts/papillonarts/tree/master/packages/setup",
|
|
6
6
|
"repository": {
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"exports": {
|
|
18
|
-
"./babel": "./
|
|
19
|
-
"./eslint": "./
|
|
20
|
-
"./jest": "./
|
|
21
|
-
"./prettier": "./
|
|
22
|
-
"./storybook": "./
|
|
23
|
-
"./storybook/mainSetup": "./
|
|
24
|
-
"./storybook/managerSetup": "./
|
|
25
|
-
"./storybook/previewSetup": "./
|
|
26
|
-
"./stylelint": "./
|
|
27
|
-
"./webpack": "./
|
|
18
|
+
"./babel": "./build/babel/index.js",
|
|
19
|
+
"./eslint": "./build/eslint/index.mjs",
|
|
20
|
+
"./jest": "./build/jest/index.ts",
|
|
21
|
+
"./prettier": "./build/prettier/index.js",
|
|
22
|
+
"./storybook": "./build/storybook/index.ts",
|
|
23
|
+
"./storybook/mainSetup": "./build/storybook/mainSetup.ts",
|
|
24
|
+
"./storybook/managerSetup": "./build/storybook/managerSetup.ts",
|
|
25
|
+
"./storybook/previewSetup": "./build/storybook/previewSetup.tsx",
|
|
26
|
+
"./stylelint": "./build/stylelint/index.js",
|
|
27
|
+
"./webpack": "./build/webpack/index.ts"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"cleanup": "rimraf build node_modules package-lock.json",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"build-acceptance": "npm run build",
|
|
38
38
|
"build-release": "npm run build"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "d64616c770095ce9801f9de4e2a044fb06ac1bd2"
|
|
41
41
|
}
|